Using the javascript inserted into Square Online page through Snippet API, how do I get product or item id, as well as variant id if there are multiple variation of a product?
Sorry for the delay. With the Square Online Store the item ID or item variation ID isn’t available on the page with the Snippets API.
Hello @Bryan-Square, If it’s not possible to get information of a product using injected javascript through Snippets API then how can developers build UI elements that work for that product/item such as display bulk discount, product recommendation, etc?
I’m very interested to hear your thought on this.