首页 > 解决方案 > 批发商店 - 如果声明不起作用

问题描述

我正在建立一个批发商店,但有多个用户组。第一个用户组rdg000141工作正常,但在elsif部分之后,代码停止工作。

{% if template contains 'rdg000141' or template contains 'wholesale' %}
    {% if customer.tags contains 'rdg000141' and template contains 'rdg000141' %}
        {{ content_for_layout }}
    {% else %}
        {% include 'wholesale-note' %}
    {% elsif customer.tags contains 'wholesale' and template contains 'wholesale' %}
        {{ content_for_layout }}
    {% else %}
        {% include 'rdg000141-note' %}
    {% endif %}
{% else %}
    {{ content_for_layout }}
{% endif %}
{% endif %}

干杯

标签: if-statementshopifyliquid

解决方案


推荐阅读