首页 > 解决方案 > 有没有办法在shopify中获取另一个片段的设置值?

问题描述

我为块中的每个项目制作了一个块和片段文件。```

{% for block in section.blocks %}
<div {{ block.shopify_attributes }}>
    {% case block.type %} 
        {% when 'cart_header' %} 
        {% include 'cart_header' %}         
        {% when 'Countdown_Timer' %}
        {% include 'Countdown_Timer' %}         
        {% when 'Announcement_Bar' %} 
        {% include 'Announcement_Bar' %}   
        {% when 'Free_Shipping_Bar' %} 
        {% include 'Free_Shipping_Bar'%} 
    {% endcase %}
</div>
{% endfor %}```

有什么方法或技巧可以让我在 countdown_timer 片段文件上获取 cart_header 的 block.settings.xxx 值?

标签: shopify

解决方案


推荐阅读