【问题标题】:Shop Information on Shopify Theme App Extension Embed BlockShop Information on Shopify Theme App Extension Embed Block
【发布时间】:2022-12-27 21:30:13
【问题描述】:

As a sudden request from Shopify to make Theme App Extensions for App, I'm trying to move my JS files in app embed block so my JS will be available on all the pages. But I'm stucked on how i can get a shop information in app embed block files. Can anyone help?

【问题讨论】:

  • what do you mean by shop information and where do you want to access JS or Liquid?
  • Actually it is a rails app and we have shop model. Now we are using Script_tag api and upload our js with shop information like shop offers etc. I'm trying to move my JS files in app embed block so my JS will be available on all the pages. But I'm stucked on how i can get a shop information in app embed block files.
  • I have done this before, You need to copy the script tag code into the app embedded extension works the same as the script tag and enables the app to block from the theme editor.

标签: shopify shopify-app shopify-api


【解决方案1】:

Check this reply, it may solve your problem I mentioned how I access data via API calls in app block

https://stackoverflow.com/a/74852285/13987596

【讨论】:

    猜你喜欢
    • 2022-12-20
    • 2019-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-19
    • 2016-01-09
    • 1970-01-01
    相关资源
    最近更新 更多