Migrating Size Chart app to OS2.0
Before
Before the end of 2023, Shopify allows storefront apps to make changes to theme code via API calls.
In 2024, we can no longer make API calls to add snippet to theme.liquid
which forced us to migrate to
OS 2.0 approach.
<!-- Avada Size Chart Script -->
{% include 'avada-sc-setting' %}
<!-- /Avada Size Chart Script -->
Now
Since we can no longer make changes to the theme code via API, previous customer who we used to add
snippet to theme.liquid
file cannot make any changes to their campaigns and see it reflected.
However, they can still see the current setting applied, the size chart on the storefront.
In order to fix this, you need to convert this customer to OS 2.0 approach.
Convert previous customer to OS 2
Update from dev zone
Go to dev zone, update this:
Remove the snippet in the theme
Go to theme.liquid
file, remove our snippet: