Top

Minimum Cart Value or Product Count before Checkout Required

Warning!

This is an unsupported theme customization. You can request this customization by emailing our Professional Services Team.

Customer Specific Pricing is designed to create price points for different types of customers (wholesale, trade, VIP and more). Customization can be done for stores that require their customers to reach a predefined cart value before checking out.

Note: This will not work with an Ajax theme (also known as a "slide","drawer", or "pop-out" cart).

  1. From "Shopify Admin", select Online Store.

    select online store 

  2. Select Actions.

    Select Actions 

  3. Select Edit code.

    Select Edit code 

  4. Under "Templates", select cart.liquid.

    Note: If your theme contains sections, this may be found under "sections" in cart-template.liquid instead.

     select cart.liquid

  5. Find the Checkout button; the code will be similar to this:

    <input id="checkout" name="checkout" type="submit" value="Check Out" />

    find the checkout button 

  6. Copy and paste this code immediately above the line:

    {% if cart.total_price >= ### %}

    Note: Replace ### with the minimum cart value, without decimals (i.e. $150.00 is entered as 15000).

    copy and paste the code 

  7. Immediately below the input statement from Step 5, copy and paste:

    {% else %}
    You need to spend $150 to check out.
    {% endif %}

    Note: You can replace "You need to spend $150 to check out." with the text you want to display here.

    The final code should look like this:

    {% if cart.total_price >= ### %}
    <input id="checkout" name="checkout" type="submit" value="Check Out" />
    {% else %}
    You need to spend $150 to check out.
    {% endif %}

    final code should look like this 

  8. Select Save.

    select save 

That's it!

Other Variations: