【发布时间】:2017-02-23 19:45:17
【问题描述】:
目前我可以全部或没有自定义字段。像这样
{{#each product.custom_fields}}
{{ id }} : {{ name }} : {{ value }}
{{/each}}
但是如果我只想通过 id 或名称调用其中一个,如下所示。有没有办法用模板或其他方式做到这一点?
{{product.custom_fields.id:4.name}}
【问题讨论】:
标签: handlebars.js shopify bigcommerce