Shopify客群批发
Shopify customer group wholesale
我创建了两组客户,他们被标记为批发
- "first time wholesaler"
- "wholesaler"
我目前正在使用此代码,我无法过滤谁是第一次批发商,因为这 2 个组被标记为批发商。
{% if customer.tags contains 'wholesale' %}
<p> minimum order is 0</p>
{% else %}
<p> minimum order is 0</p>
{% endif %}
是否有可用于这些组的variable/codes?
(例如)
{% 如果 customer.accepts_marketing %}
或者有什么方法可以解决?
{% if customer.tags contains 'wholesale' %}
<!--if first time wholesale customer-->
{% if customer.orders_count == 0 %}
{% if cart.total_price >= 50000 %}
<span><input type="submit" name="checkout" class="btn uppercase btn--large checkout__button" value="{{ 'cart.general.checkout' | t }}"></span>
{% else %}
<p style="color: red;">Order must be minimum of 0 <br />for first time wholesaler.</p>
{% endif %}
<!--if not first time wholesale customer-->
{% else %}
{% if cart.total_price >= 30000 %}
<span><input type="submit" name="checkout" class="btn uppercase btn--large checkout__button" value="{{ 'cart.general.checkout' | t }}"></span>
{% else %}
<p style="color: red;">Order must be minimum of 0 <br />for wholesaler.</p>
{% endif %}
{% endif %}
{% else %}
<!--just a regular customer-->
{% if cart.total_price >= 30000 %}
<span><input type="submit" name="checkout" class="btn uppercase btn--large checkout__button" value="{{ 'cart.general.checkout' | t }}"></span>
{% else %}
<p style="color: red;">Order must be minimum of 0 <br /></p>
{% endif %}
{% endif %}
我创建了两组客户,他们被标记为批发
- "first time wholesaler"
- "wholesaler"
我目前正在使用此代码,我无法过滤谁是第一次批发商,因为这 2 个组被标记为批发商。
{% if customer.tags contains 'wholesale' %}
<p> minimum order is 0</p>
{% else %}
<p> minimum order is 0</p>
{% endif %}
是否有可用于这些组的variable/codes?
(例如)
{% 如果 customer.accepts_marketing %}
或者有什么方法可以解决?
{% if customer.tags contains 'wholesale' %}
<!--if first time wholesale customer-->
{% if customer.orders_count == 0 %}
{% if cart.total_price >= 50000 %}
<span><input type="submit" name="checkout" class="btn uppercase btn--large checkout__button" value="{{ 'cart.general.checkout' | t }}"></span>
{% else %}
<p style="color: red;">Order must be minimum of 0 <br />for first time wholesaler.</p>
{% endif %}
<!--if not first time wholesale customer-->
{% else %}
{% if cart.total_price >= 30000 %}
<span><input type="submit" name="checkout" class="btn uppercase btn--large checkout__button" value="{{ 'cart.general.checkout' | t }}"></span>
{% else %}
<p style="color: red;">Order must be minimum of 0 <br />for wholesaler.</p>
{% endif %}
{% endif %}
{% else %}
<!--just a regular customer-->
{% if cart.total_price >= 30000 %}
<span><input type="submit" name="checkout" class="btn uppercase btn--large checkout__button" value="{{ 'cart.general.checkout' | t }}"></span>
{% else %}
<p style="color: red;">Order must be minimum of 0 <br /></p>
{% endif %}
{% endif %}