On the cart page on the debut theme, when ‘update’ button is pressed next to ‘continue shopping’ the page progresses to checkout instead of updating the cart numbers. This is rather important as the ‘checkout’ button should be hidden until the minimum spend of $30 is reached. Customers can now bypass the minimum spend by clicking ‘update’ which is a bit of a problem for us…
Here’s my code for the cart-template.liquid:
{{ 'cart.general.remove' | t }}
{{ item.price | money }}{% for discount in item.discounts %}
{% for discount in item.discounts %}
{{ 'cart.general.note' | t }} {{ cart.note }}
{%- capture taxes_shipping_checkout -%}
{%- if shop.taxes_included and shop.shipping_policy.body != blank -%}
{{ ‘cart.general.taxes_included_and_shipping_policy_html’ | t: link: shop.shipping_policy.url }}
{%- elsif shop.taxes_included -%}
{{ ‘cart.general.taxes_included_but_shipping_at_checkout’ | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ ‘cart.general.taxes_and_shipping_policy_at_checkout_html’ | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ ‘cart.general.taxes_and_shipping_at_checkout’ | t }}
{%- endif -%}
{%- endcapture -%}
{% if additional_checkout_buttons %}
Uh Oh! You need to spend £30 or more before you can checkout
{% endif %}