How to set Minimum Order Value by Customer Tag or Collection?

How to set Minimum Order Value by Customer Tag or Collection?

BHBC
Visitor
2 0 0

I need to set a minimum purchase amount of $300 for the Customer Tag 'wholesaler' or the Collection 'Wholesale'. The site is using the Impulse theme. 

Replies 6 (6)

Ninthony
Shopify Partner
2343 354 1039

So you can do this by redirecting from the cart with a js snippet. In your main-cart-page.liquid you can add something to the bottom of the file before the schema

 

 

{% if customer.tags contains "wholesaler" %}
  {% if cart.total_price < 30000 %}
  <script>
    alert('You need to spend at least $300 as a wholesaler')
    window.location.href="/collections/all"
  </script>
  {% endif %}
{% endif %}

 

Something like that. If you get the gist of that I'm sure you'll be able to tweak it.

 

Unfortunately you need to have Shopify plus to edit the checkout, so if someone manually enters the checkout page you won't be able to redirect that.

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish 😄
BHBC
Visitor
2 0 0

Thank you for your response! I appreciate you reaching out with a solution.

 

I do not have Shopify Plus. Does that mean I cannot add your code to main-cart-page.liquid or does that mean in some instances it might not work?

 

Ninthony
Shopify Partner
2343 354 1039

You can use the solution but yes, they would be able to go into the url bar and add /checkout to the main url in order to access the checkout. They are however making changes to the checkout process as we speak, though it's a little unclear to me how this will work. I am constantly in the space so when I understand a bit more I can update.

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish 😄

gr_trading
Shopify Partner
1926 145 200

Hi @BHBC 

 

You can disabled checkout button at cart page and put the validation code provided by @Ninthony 

 

Once validation is success trigger the click of checkout.

 

Hope it helps...

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

WholesaleHelpe
Excursionist
17 0 7

Hello,

Wholesale Pricing Discount offers minimum cart requirements. You can set either, minimum cart quantity or minimum order amount ($), or both for the discount to be applied for a specific tag as per your requirement.

If a minimum cart requirement is in place, then the price in the cart for the product is going to be based on its retail price. When the minimum purchase amount (in local currency) is reached, the discount applies immediately.

I am a customer success specialist at Wholesale Helper. Happy to walk you through too if you’d like a personalized demo.

 

I hope this helps 🙂

Ahmed Talha

Wholesale Helper

JimJong
New Member
56 0 0

It is possible to set minimum order value $300 by customer tag or collection using the Cart Lock https://apps.shopify.com/cart-lock app. For this you have to do this:

 

  1. Open the app and click on the "Add a new rule" button.
  2. Click "Add a new condition" and select the "Cart subtotal" then add 300 in the "Block if less than" field.
  3. Click "Add a new condition" again and select the "Customer tags" then add "wholesaler" in that field.
  4. In the "Error message" field, add an appropriate message which will be displayed in the checkout page.
  5. Save the rule.

 

min300.png

 

That's it. Now your wholesale customer cannot buy less than $300.