How to set minimum order amount by collection or customer tag?

How to set minimum order amount by collection or customer tag?

missperfumes
Visitor
1 0 1

I created a "wholesale" collection and I tagged customers that are allowed to purchase from this collection with the tag "wholesale". Now, I want to set a code that only allows purchases if the order quantity is 24 or more. The 24 items can any mix of items but only from this collection. I am using the Feather theme.

 

Thank you in advance

Replies 3 (3)

JoesIdeas
Shopify Partner
2427 225 652

One idea, you could add a javascript with a listener on the add to cart button. If quantity < 24 then prevent the form submission and show a message.

 

If you want to have it check multiple products (from a whole collection), that would be more complicated, you might have to hardcode in the product ids, or you could experiment with adding some Liquid in there, maybe get the current collection, then get all products, then use the cart ajax api to see what items are in the cart.

 

Might be easier to use an app. I don't know of one specifically, but try searching the app store for apps that do volume discounts / quantity discounts. Seems like they would specialize in the type of behavior you're looking for and maybe could come up with a solution.

• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tools

gr_trading
Shopify Partner
1943 145 203

Hi @missperfumes ,

 

You have to add script code which will run when product will have the tag specified by you. Which will validate the quantity but this code will be placed at multiple places like product, cart-drawer or cart page as user can change the quantity at these places too.

 

Please refer the below URL where we implemented the same logic.

https://ninjapatches.com/products/print-stitch-patches

 

Let me know if interested in the same.

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

topshop
Shopify Partner
160 15 18

@missperfumes , I'm assuming by "code", you mean a discount code. If so, I recommend our appDiscount Bot, that can be used to set up what you need.

 

On the admin, setup a code discount with the collection and customer tag:

topshop_1-1729137597243.png

Also setup the minimum quantity of items to 24:

topshop_2-1729137631845.png

 

If the cart has 24 or more items from the collection, they get the wholesale discount:

topshop_3-1729137790674.png

 

Does that answer your question?

 

 

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion