I am new to corvid and JavaScript, but have been a C++ and Pascal developer for years.
I wanted to show on our home page how many items we have in stock (I have only one product)
I was able to get it working on the product page
$w( ‘#productPage1’ ).getProduct()
But $w( ’ #productPage1 ’ ) can not be referenced from the home page
how do I do something like:
$w( ’ #home.productPage1 ’ )