Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发 Shopify 公共应用程序。我已经定制了一个产品图像并将该图像链接存储在该特定产品的元字段中。
我想显示我在将产品添加到购物车和其他订单产品列表部分时创建的自定义图像,而不更新实际产品图像。
这怎么可能?请帮我
这是可能的,您可以修改模板以使用存储在元字段中的 URL,例如
{% assign custom_images = product.metafields.custom_images %} {% assign key = 'url' %} <img src="{{ custom_images.url }}" />>