Best Practices for Managing Theme App Extension Settings Programatically

Best Practices for Managing Theme App Extension Settings Programatically

sakshigupta
Shopify Partner
8 0 0

Hey folks, I had a question regarding the schema object for Theme App Extensions.

With Shopify removing write access to assets, apps can no longer modify the theme schema JSON directly. We’ve had special cases where this access was approved, but it’s not a scalable approach.

Is there a recommended way to programmatically update settings for Theme App Extensions without relying on asset access? Curious to hear how others are handling this!
Apps need to be able to predefine dynamic defaults per merchant so just a static schema default does not work. Unless we had a way to set the settings via an api

Replies 2 (2)

CafeDelMar
Shopify Partner
163 36 45

You set the settings in metafields or metaobjects and then source them in your extension. This is a standard approach. If I understood your question correctly.

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution

Promer-Aila
Shopify Partner
191 14 64

Hi @sakshigupta 

 

Because Shopify has restricted write access, the best approach is to use Theme App Extensions with App Blocks and Metafields. Use Metafields for store dynamic settings per merchant and retrieve them in your extension. Shopify's Admin API allows you to update metafields programmatically.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Promer AI: AI-powered CRO Agents audit stores, uncover conversion blockers & bulk-generate high-impact content.
- Start your FREE trial today!