A space to discuss online store customization, theme development, and Liquid templating.
Hi Mircea,
Great to hear you're trying out the new app sections, we expect they will add a lot more flexibility to online stores 🙂 If I understand you correctly, you are wondering how changes that a merchant makes on the app itself will be transferred to the app section? It will be possible to set up apps so that when a merchant interacts with an app, these changes will be automatically reflected on the app section/ snippet. Similarly, when an app developer makes an update to an app, this update will be automatically pushed to the app section/ snippet.
Hope this helps Mircea 🙂
Liam Griffin
Shopify | Partner Education
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
Thank you for the fast response.
If I understand you correctly, you are wondering how changes that a merchant makes on the app itself will be transferred to the app section?
Yes this is correct.
I will try to give you an example:
The Liquid section contains the following entry in schema:
{ "type": "color", "id": "bg", "label": "Background", "default": "#ffffff" }
In the APP the user assigns a new color: #000000.
What would be the mechanism that would allow me to modify the Liquid section code to reflect this change?
The desired output would be:
{ "type": "color", "id": "bg", "label": "Background", "default": "#000000" }
My best bet is the "overrides property" insert_content: https://help.shopify.com/en/api/reference/online-store/sections#the-overrides-property.
Am I on the right track? Is this something that can be tested at this moment.
Thank you.
I am looking for the same thing. How can you pass the settings from the app to the section liquid file?
It's easy to create a section setting to be edited in the theme editor. But I don't find a way to pass from app to section?