在商品里面选择商品分类,并输出商品分类里面的所有元字段和该商品的所有元字段
可以参考shopline官网:SHOPLINE API reference docs
{
{ assign 'collectionMetafield' (get key product.metafields.collection_y.collection_y.value) }}
<div class="accordion__content rte" id="CollapsibleAccordion-{
{id}}-{
{global.section.id}}">
<div class="sll-container">
<div class="sll-left">
{
{#if product.metafields.nei1.nei1.value}}
<div>
{
{collectionMetafield.metafields.can1.can1.value}}
</div>
{
{/if}}
{
{#if product.metafields.nei2.nei2.value}}
<div>
{
{collectionMetafield.metafields.can2.can2.value}}
</div>
{
{/if}}
{
{#if product.metafields.nei3.nei3.value}}
<div>
{
{collectionMetafield.metafields.can3.can3.value}}