Liquid, JavaScript, themes, sales channels
Should app block deep linking work with draft themes or by using a theme id?
I can get the deep link to work if I use "current" in the url but using a theme id does not seem to work. I believe this
WORKING:
https://<storeurl>.myshopify.com/admin/themes/current/editor?template=cart&addAppBlockId=<blockid>/<handle>
NOT WORKING:
https://<storeurl>.myshopify.com/admin/themes/234234234234/editor?template=cart&addAppBlockId=<blockid>/<handle>
Is there some other way to deep link to a theme by id?
So i seem to have found a partial solution.
If i add a url parameter "previewPath" it seems to work.
This is find for cart page but if i want to install an app block to a product page this url parameter requires a product slug as well.
Example:
Works fine for cart page:
previewPath=%2Fcart
Doesnt work on a product page:
previewPath=%2Fproducts
Works on a product page but not possible as i don't know a product to preview with in a random store.
previewPath=%2Fproducts%2Fpizza
Is there some value i can include that indicates first product found or something?
User | RANK |
---|---|
37 | |
28 | |
13 | |
13 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023