Setup Minimum order dollar amounts

WholesaleWorld1
Tourist
4 0 1

Hi,

We have out wholesale website nearly compelted and we're looking to restrict small orders and only allow checkout if the amount is $500 or more. How can I do this with the basic Shopify plan? I've found some older threads, but they all look outdated so I'm afraid they won't work.

Thanks,

Replies 28 (28)
Alex23
Shopify Staff (Retired)
Shopify Staff (Retired)
529 1 111

Hi there!

My name is Alex, I'm a guru here at Shopify!

No problem!  There's a couple solutions I can suggest for this:

  • You could select your shipping rates by price, and start the rates based on a cart parameter of $500 to start and go up from there.  That way, if a customer attempts to go through the checkout with less value in their cart, they'll be informed that there are no shipping options for their location; you could make sure that customers are aware of this with notifications on your homepage and/or your product pages.
  • If that's not going to work for you, I'd recommend an app - Order Limits (MinMaxify) was designed with exactly this function in mind, and should suit your needs admirably!  It's a third party, paid app, but it does offer a 14 day free trial period, so you're free to try it out and see if it's right for your needs.

Hope that's helped!  Please feel free to give us a call or start a live chat at any time, we're open 24/7 for your convenience and always happy to assist!

Cheers,

Alex | Shopify Guru

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Mihai_Bulic
Shopify Partner
7 0 3

This is a trivial feature to add yourself, totally not worth throwing away $60/year on an app.  Our approach isn't full proof, and anyone that is tech savy could defeat it, but it hasn't ever been a problem for us and I doubt it would for anyone:

I edited our store's code and on the cart.liquid page, I added an if statement that checked if the subtotal of the cart was below a certain amount, If it was it doesn't display the checkout options and instead shows some text that says "Minimum checkout is $X":

George_Bou-Rizk
Shopify Partner
2 0 8

Hi,  

I found the most fullproof way is to do both what mihai suggested as well as what Alex suggested. 

1) Edit the code in cart-template.liquid. I used the following code as I found it to be neater: in the code below, if the order is below your minimum, then it will display a message "minimum order is $X" above the "continue shopping" and the "update" buttons. i found this to be neater then the message being displayed  in line with the two buttons.

<div class="cart__shipping">{{ 'cart.general.shipping_at_checkout' | t }}</div>
            <div> 
                  {% if cart.total_price < 5000 %}
                 <font color="#990000"> 
                   Minimum order is $50
                   </font>
               {% endif %}
            </div>
            <a href="collections/all" class="btn btn--secondary cart__update cart__continue--large small--hide" >{{ 'cart.general.continue_shopping' | t }}</a>
            <input type="submit" name="update" class="btn btn--secondary cart__update cart__update--large small--hide" value="{{ 'cart.general.update' | t }}">
            {% if cart.total_price > 4999 %}
            <input type="submit" name="checkout" class="btn btn--small-wide" value="{{ 'cart.general.checkout' | t }}">
            {% endif %} 

2) go into your admin home page, settings, select edit next to the country you wish to edit then under price based rates, select  "Add rate". In the window that pops up, set whatever shipping name you like, then in the minimum order price put the minumum order you as the same minumum you set in the above code. Select Done and then save your changes.

This method is fullproof in that if someone is a little tech savy and decided to trick the system by using a perma link to go into the checkout page without having reached the minimum order, they will have no shipping options to choose from.     

George_Bou-Rizk
Shopify Partner
2 0 8

PS: Pic of using permalink to enter checkout while still under minimum spend

TheAdamKramer
Tourist
3 0 2

I'll add that if you want to change the standard message from Shopify that there are no shipping options, you can go to Admin > Themes > Edit Languages > (search) "no rates". This will return a list of the messages that are shown to users when they haven't met the requirements, which you can alter to say anything you like (these are also liquid-compatible fields so you can get pretty creative with them).

GistApplication
Shopify Partner
27 0 1

Hi @WholesaleWorld1 ,

 

We've actually just released a wholesale app, which includes this feature, that can be applied on a per customer basis.

 

The app is called "Wholester" and is a plug-and-play wholesale sales channel connected with your Shopify account.

 

You can check it out here: https://wholester.io

 

Here is an example of this, where a "Customer Group" is created, which can then be applied to each customer:

 

Screen Shot 2019-06-28 at 6.59.11 PM.png

 

Screen Shot 2019-06-28 at 7.00.58 PM.png

 

 

Then, when creating orders, this customer will be forced to reach a minimum order value prior to checking out:

 

Screen Shot 2019-06-28 at 7.02.50 PM.png

Community_Wines
New Member
4 0 0

Hi George

Are you able to use similar code to apply to quantity rather than value? So minimum order is say 3 units rather than a value of $X?

Thanks

Nigel

Tonyhui
New Member
1 0 0

Dear George Bou-Rizk,

Can you simply share which part of the script should insert to which line? or replace which line?

I am not familiar with the code.

Or can you show me what is before or after.

Thanks.

 

B Rgds,

Tony

SallyTan
New Member
1 0 0

Hi George Bou-Rizk,

 

I have the same concern as Tony.  I am not familiar with the code.  It will be very helpful if you can share exactly where and how we can update Shopify store so that when customer order is below minimum order value, they will not be able to proceed with the check out and at the same time, a message “Minimum order is $X” appear and customer will have to click on the continue shopping button to continue shopping.  Appreciate your help and advise. 

 

 

MuzammilMalik
Explorer
186 0 12

Hi, dear, my name is honeymalk  let's check this app for manage your product quantities by setting the desired limits. Shopify minimum order quantity app enables you to manage product stock. It helps to distribute the equal amount of products between all users. Store owners can set a restriction on customers' order informs of minimum and the maximum limits.  

cc1345d72ec6398ef904474137fefe02

7b897cc5739093f96171687197505b7a

 

Search Engine Marketing Specialist
lunsay
Excursionist
20 0 1

Hi! Between what lines of code should we paste this? Thank you.

ATMarkt
Tourist
4 0 2

Hi @Tonyhui@SallyTan,

 

I edited the code in "carte-template.liquid" like this:

Existing code (rows 179 - 183)

 

<div>
    {% if additional_checkout_buttons %}
          <div class="additional-checkout-buttons">{{ content_for_additional_checkout_buttons }}</div>
            {% endif %}
 </div>

Changed to

 

 

<div class="cart__shipping">{{ 'cart.general.shipping_at_checkout' | t }}</div>
            <div> 
                  {% if cart.total_price < 3000 %}
                 <font color="#990000"> 
                   Minimum order is Eur 30
                   </font>
               {% endif %}
            </div>
            <a href="collections/all" class="btn btn--secondary cart__update cart__continue--large small--hide" >{{ 'cart.general.continue_shopping' | t }}</a>
            <input type="submit" name="update" class="btn btn--secondary cart__update cart__update--large small--hide" value="{{ 'cart.general.update' | t }}">
            {% if cart.total_price > 2999 %}
            <input type="submit" name="checkout" class="btn btn--small-wide" value="{{ 'cart.general.checkout' | t }}">
            {% endif %} 

If you need another value or another currency, you can change it where I marked it in red.

 

Thank you @George_Bou-Rizk for your post 🙂

 

 

 

ATMarkt
Tourist
4 0 2

"If you need another value or another currency, you can change it where I marked it in red." - This is now incorrect because when i wrote was ok but now are red another words.

Variable: 

- % if cart.total_price < 3000 %... (4000, 5000...)

- Minimum order is Eur 30... (20, 30, 40... other $)

if cart.total_price > 2999 (3999, 4999...)

TheSeaMarket
Tourist
32 0 1

is there any way we can set a min quantity per product?

MuzammilMalik
Explorer
186 0 12

Yes You can set minimum limitations on each product, lets try this wonderful app for manage your stock easily. The shopify minimum order amount  app helping you to put restriction on cart for your specific products. You can set such a limit on the cart products item and amount as well. http://bit.ly/2u9pSTk

 

305ff4353e00022fc0a83b43ee9f6c61

 

 

 

Search Engine Marketing Specialist
TheSeaMarket
Tourist
32 0 1
I managed to code that into my website. Thank you 😊
pritamdey
Tourist
6 0 2

@ATMarkt I Have Pasted This Solution but Not working Properly for Debut Theme. Basically, minimum INR when I'm giving its going to checkout directly

redblock
New Member
2 0 1

this worked perfectly , thank you ! however mine just lied underneath "cart.liquid" and worked perfectly! 

i swopped if statements for "above" $x instead of below, so it would be if > x , it would show buttons, else do not show buttons,  - the way you did it , it just showed the message & still the buttons, so clients could still checkout 

amanda-91
Shopify Partner
48 1 26

This is really helpful and I think close to a solution I need, to be able to react to “Brexit”, I want to implement UK orders having a minimum of £125 to avoid having to register as a US merchant collecting VAT.

Can this code and shipping profile be adapted to include an if-statement to only apply this minimum order amount of 125 euros for UK addresses only and display this requirement in the cart?

I really don’t want to have to install a third party app for this so I’m hopeful it can be implemented in the theme.