Shopify themes, liquid, logos, and UX
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
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.
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.
@missperfumes , I'm assuming by "code", you mean a discount code. If so, I recommend our app, Discount Bot, that can be used to set up what you need.
On the admin, setup a code discount with the collection and customer tag:
Also setup the minimum quantity of items to 24:
If the cart has 24 or more items from the collection, they get the wholesale discount:
Does that answer your question?
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024