Reputation: 11
I've been searching Google all day for code that will prevent customers from being able to checkout until a minimum cart total is reached. If anyone can be of assistance, I would greatly appreciate it.
Upvotes: 0
Views: 1388
Reputation: 945
You can modify the Cart page in Customize Design > Advanced > Cart. Find the code for the Checkout button at the bottom of the page, and replace it with this:
{% if cart.total > 500 %}
<button id="checkout-btn" class="button" type="submit" title="Checkout">Checkout</button>
{% else %}
You must have at least $500 in your cart to checkout.
{% endif %}
The exact code for the button will depend on your theme, but this should give you a good start.
Upvotes: 1