diff --git a/themes/meraki/sections/product.liquid b/themes/meraki/sections/product.liquid index b1bbd63f..c03227e0 100644 --- a/themes/meraki/sections/product.liquid +++ b/themes/meraki/sections/product.liquid @@ -170,12 +170,6 @@ "type": "checkbox", "default": true }, - { - "type": "checkbox", - "id": "skip_cart", - "label": "Skip cart", - "default": false - }, { "label": "Background color", "id": "background_color", diff --git a/themes/meraki/snippets/add-to-cart.liquid b/themes/meraki/snippets/add-to-cart.liquid index 5af3c60a..cd1ad97b 100644 --- a/themes/meraki/snippets/add-to-cart.liquid +++ b/themes/meraki/snippets/add-to-cart.liquid @@ -31,17 +31,19 @@ class='spinner hidden' id='loading__cart' > - - {{ text }} - + {% if skip_cart %} + {{ 'snippets.product_preview.cta_button' | t }} + {% else %} + + {{ text }} + + {% endif %} {% javascript %} - const TRANSLATED_TEXT = { empty_inventory: "{{ 'errors.empty_inventory' | t }}" } - - const IS_CART_SKIPED = "{{ skip_cart }}"; + const IS_CART_SKIPED = Boolean("{{ skip_cart }}"); {% endjavascript %} diff --git a/themes/meraki/snippets/product-preview.liquid b/themes/meraki/snippets/product-preview.liquid index 3363dfa5..581ea83f 100644 --- a/themes/meraki/snippets/product-preview.liquid +++ b/themes/meraki/snippets/product-preview.liquid @@ -35,7 +35,7 @@ {% endif %}