Warning!
This is an unsupported theme customization. You can request this customization by emailing our Professional Services Team.
Custom Pricing is designed to create price points for different types of customers (wholesale, trade, VIP and more). A customization can be done for stores that require their customers, with a specific tag, 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).
To install this customization on your site, please follow these steps:
- From Shopify's admin, select Online Store.
- Select Actions.
- Select Edit code.
-
Under "Templates", select cart.liquid.
Note: If your theme contains sections, this may be found under "sections" in cart-template.liquid instead.
-
Find the Checkout button, the code will be similar to this:
<input id="checkout" name="checkout" type="submit" value="Check Out" />
-
Copy and paste this code immediately above the line:
{% if cart.total_price >= ### %} {% if customer.tags contains 'wholesale' %}
Note: Replace "wholesale" with the tag required. Replace ### with the minimum cart value, without decimals (ie. $150.00 is entered as 15000).
-
Immediately below the input statement from Step 5, copy and paste:
{% else %} You need to spend $150 to check out. {% endif %} {% else %} ***** {% endif %}
Note: You can replace "You need to spend $150 to check out." with the text you want to display here. Replace the ***** with the input statement from step 5.
The final code should look like this:
{% if customer.tags contains 'wholesale' %} {% if cart.total_price >= 15000 %} <input id="checkout" name="checkout" type="submit" value="Check Out" /> {% else %} You need to spend $150 to check out. {% endif %} {% else %} <input id="checkout" name="checkout" type="submit" value="Check Out" /> {% endif %}
- Select Save.
That's it!
Next Steps:
- Create a Customer Pricing Tag
- Create Product Groups
- Apply a Customer Pricing Tag to a Customer Account
Comments
Please sign in to leave a comment.