Shopify应用程序可以自动在商店主题内注入液态代码吗? [英] Can Shopify app automatically inject liquid code inside shop's theme?

查看:82
本文介绍了Shopify应用程序可以自动在商店主题内注入液态代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建Shopify应用程序,并且我有兴趣自动将液态内容添加到商店的主题中.

I'm building a Shopify application and I'm interested in automatically adding a liquid content into the shop's theme.

推荐答案

扩展名为.liquid的文件被视为资产.由于您可以向商店添加资产,因此答案是肯定的,您确实可以将Liquid模板代码注入商店的主题中.

A file with a .liquid extension is considered to be an asset. Since you can add assets to a shop, the answer is yes, you can indeed inject Liquid template code into a shop's theme.

如果您使用应用程序代理,您还可以发送Shopify Liquid字符串,Shopify会直接在Shop中为您呈现该字符串.很整洁的东西.

If you use an App Proxy you can also send Shopify Liquid strings and Shopify will render that right in the Shop for you. Pretty neat stuff.

这篇关于Shopify应用程序可以自动在商店主题内注入液态代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆