Shopify Community
How to inject product.id or shop.id from liquid code to js file in app blocks?
Shopify Apps
getInfoSol
March 24, 2022, 4:12am
2
Hi
@test6A
,
Try like this
‘{{product.id}}’
, It has worked for us.
show post in topic
Related topics
Topic
Replies
Views
Activity
How to get app block setting from its javascript asset file
Shopify Apps
shopify-apps
4
147
September 4, 2024
Inserting app embed to existing shopify's liquid code
Technical Q&A
javascript
2
73
March 20, 2024
How can I pass variables to an App block in a Shopify theme?
Shopify Apps
shopify-apps
3
214
June 11, 2023
Failed to add js Code into a shop using app embed(theme app extension)
Technical Q&A
javascript
,
liquid
,
shopify-theme
0
16
December 4, 2024
Unable to retrieve product attributes inside theme extension app block
Shopify Apps
shopify-apps
0
15
December 25, 2023