Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
864 B
6
Indexable
Never
{% comment %} This code has been copied for the AB test 1.02 {% endcomment %}

<button type="submit" class="{{ quick_buy_classes }} vwo-1-02-button" data-action="add-to-cart" onclick="add_to_cart()" style="display: none;"></button>

{%- unless product.tags contains 'noprice_instore' or product.tags contains 'noprice_contact' -%}
<button type="submit" class="{{ quick_buy_classes }} vwo-1-02-button" data-action="add-to-cart" onclick="add_to_cart()" style="display: none;">
  {%- if product.tags contains "pre-order_2-weeks" or product.tags contains "pre-order_3-weeks" or product.tags contains "pre-order_4-weeks" or product.tags contains "pre-order_5-weeks" or product.tags contains "pre-order_6-weeks" -%}
    {{- 'collection.product.pre_order' | t -}}
  {%- else -%}
    {{- 'collection.product.add_to_cart' | t -}}
  {%- endif -%}
</button>
{%- endunless -%}
Leave a Comment