I’m working on my wholesale website and was wondering how doable it would be to have the default quantity of a product start at a certain number, like 12, instead of 1 when you go to add it to the cart? In addition, it would also be nice if it could then go up in multiples of 12 (24, 36, 48, etc.)
Is that something that could be coded in based on product type or would it need to be done for each individual listing?
I would imagine that you could set it up in variants for products? For example:
Variant Name: Count (Comes In Packs of 12)
Variants: 12, 24, 36, 48, 60
and then set the prices to match the quantity of items sold.
If you wanted to mass-run this, you could probably automate it in Flow, starting out with the “check if the product has only default variant” option under products (within conditions). I’m not sure if you’d have to add a metafield or if something else within Flow would work, but I would be willing to bet there’s a way to program an excel formula that would be able to automate it via CSV Export and Import. If you want to go that route, I would strongly recommend this site, the guy who made it is super kind and helpful if you’re a nice human being to him in the chat. https://excelformulabot.com/
Hi @tschris yes this can be code for the online sales channel this can be done with a theme customization. If you need the below done you can contact me via the info in my signature, please provide context.
For the minimum basically this is setting the qty input in product forms to be that amount.
Basing the behavior on product type is doable, but you can also use alternate templates, or metafield definitions depending on needs of the business logic and management:
Themes vary so the related inputs may be in product.liquid, a section called main-product.liquid or product-template.liquid etc ,or a snippet called product-form.liquid etc.
Also note some themes may use text inputs instead of number inputs for qty fields either on the product page or in the cart page or cart-drawers; complicating the customization.
Thanks for the reply! So that’s essentially how we have it set up right now but it doesn’t play nicely with inventory tracking and syncing across other platforms because it will only subtract 1 item from the quantity instead of 12, as it stands. For example, our current listing is set up like this:
X Item (Pack of 12)
We also need to be able to restrict the ability to buy just one item, as our products must be sold in case packs of varying quantities and ordered in multiples only.
I’ll check out that link and see if I can learn more. Appreciate your help.