调用特定的custom_field BigCommerce模板

时间:2017-02-23 19:45:18

标签: handlebars.js shopify bigcommerce

目前我可以获得全部或全部自定义字段。喜欢这个

{{#each product.custom_fields}} {{ id }} : {{ name }} : {{ value }} {{/each}}

但是,如果我想通过ID或名称只调用其中一个,如下所示。有没有办法用模板或其他方式做到这一点?

{{product.custom_fields.id:4.name}}

0 个答案:

没有答案