I play with the development of the Shopify application, which uses the DaisyAPI dynamic image service for Shopify. To make the correct Daisy API call, I need to know which product the client belongs to. It seems that having done this securely, I will need to manipulate my product.liquid theme to insert a hidden value containing the product identifier so that JQuery can get that value and insert it into the API call.
What is the best way to ensure that each product page contains a product identifier so that jQuery can reliably find it? Can I ignore something obvious?
Many thanks!
source share