App Theme Integration without App Extension and ScriptTag

App Theme Integration without App Extension and ScriptTag

Shabalinski___A
Shopify Partner
21 4 2

Hi all, I'm a part of development team of one of Shopify sales channels.

Right now we need to create integration with vendors themes. Shopify provides 2 ways, a new one App Extension and old one ScriptTag and Assets.

We want to use Shopify.Liquid to get needed data from page and create a custom script to work with this data. The App Extension solution doesn't work for us for a number of reasons.

Does Shopify Team can have questions about this solution, because it doesn't specified in docs and for Shopify it looks like a black box (random script take data and make smth)?

Frontend (Shopify) Engineer at SpiralScout

  • - Was my reply helpful? Click Like to let me know!
  • - Was your question answered? Mark it as an Accepted Solution!
Replies 2 (2)

Dynasort
Shopify Partner
56 5 14

Does your channel have access to the Asset API? You could just grab theme.liquid, add your <script> and PUT the new version of the file. Script tags are being phased out for app extensions as you most likely already know, but liquid is just a templating engine (no higher functions to make an HTTP request, or even process arrays or objects for that matter).

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
Shabalinski___A
Shopify Partner
21 4 2

Hi  @Dynasort, u are right it's just a templating engine, but it gives possibility to get some data on SSR stage, that what we need.

Frontend (Shopify) Engineer at SpiralScout

  • - Was my reply helpful? Click Like to let me know!
  • - Was your question answered? Mark it as an Accepted Solution!