Hi dev community,
I would like to know some informations for my shopify app development as there is no information provided in official documentations. I have a developed a theme app extension with an app-embed block to display a dynamic content in the cart page based on the cart details.
Similarly, I want to show another block in the products page. The block will be displayed only to specific products based on some details, which means, when user views a specific product the block will be displayed. For this, I need to get the product details which is being currently viewed by the user. Can someone tell me how to get this product details in the theme app extensions. I’m not using liquid code because I need to display dynamic content based on the storefront details. So I code in js which is kept under assets directory and included in the schema in liquid file.