Updating Information About Shopify Embedded App Blocks

Updating Information About Shopify Embedded App Blocks

codeconfig
Shopify Partner
1 0 0

I hope you're doing well! I'm currently working on a Shopify embedded app, and I'm trying to update the information related to specific app blocks (e.g., toggling the disabled state). However, I'm unsure how to correctly retrieve and post the updated information back to Shopify.

Specifically, I'm looking for guidance on:

  1. How to properly fetch the current configuration of an embedded app block (including block settings like disabled).
  2. The best approach to post updated configuration data back to Shopify, ensuring the changes are reflected in the store's theme or app block settings.

If you have any experience with this or know the best practices for handling embedded app updates, I would really appreciate your insights!

Thank you so much for your time and help!

 

 

 

Reply 1 (1)

gojiberry-des
Shopify Partner
6 0 0

You can simply include what should be configurable by your users in the "settings" under "schema" of your app block.

 

The settings will be saved and managed by Shopify and you can read is using liquid syntax.

 

See this example in Shopify's documentation: https://shopify.dev/docs/apps/build/online-store/theme-app-extensions/configuration#example-app-bloc...

 

Alternatively, you can manage the values in your own app's backend where users will set the value in your app and you can do an API fetch call to your own app to fetch the value.

If you like my suggestion please give it a LIKE or mark it as a solution! ★★★★★

Gojiberry - Best post-purchase survey and feedback app for Shopify | Install on App Store for free
Shopify Community is helpful, BUT... why not start asking your customers for feedback instead?