shopify - 有没有办法在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 值?
解决方案
推荐阅读
- c - 如何制作 abc pyrmid
- jms - IBM MQ 消息组
- javascript - react native:缩小列的方法是什么?
- sql - PostgreSQL 中的 SQL 改进
- python - 将基于烧瓶的 Web 界面添加到现有应用程序
- android - react-native android:关于基于角色加载屏幕的安全性
- dataframe - 在 Pyspark Dataframe 的一个字段中将(年、月、日、小时、分钟、秒)的嵌套值分解为日期时间类型
- apache-camel - 如何使用骆驼 pollEnrich 读取多个文件?
- java - Spring boot - 更正应用程序的类路径,使其包含一个兼容的 org.hibernate.Session 版本
- agrep - agrep 模糊搜索 - 结果数量没有意义