Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I only want to sell products per tray/box.
Let’s say there are 6 bottles in a tray, then I only want to sell these bottles per 6 pieces. However, the price of the product must be shown for 1 bottle. If the customer puts the bottles in his/her shopping cart, this should only be possible in increments of 6.
I have made some kind of workaround that when I enter a number in the ‘vendor’ field of a product, it only adds this product to the shopping cart per that amount. So with the example of the bottles, I entered a 6 in the vendor field.
On the front end it looks like this:
When a customer presses the ‘+’, it flicks to 12, then 18, 24 and so on. The price of the product will be multiplied by the amount added to the cart.
The problem is that this sometimes gives errors when customers try to check out. It refuses to accept the amount and keep saying that the customer should change it.
Translation: 'Please enter a valid value. The two closest valid values are 12 and 24.'
Deleting the product from the shopping cart and re-adding it helps, but it then sometimes shows this error immediately for another product in the cart. Which makes it very frustrating for customers to finish their order.
TLDR: I’m not very good with custom code so I am looking for an app that lets me sells products only per set amount, but shows the price in the store of just 1 piece.
Let me know if you need more info in order to help.
Thank you for your reply!
Variants are not really an option since there are customers that order 6 pieces, but also customers that order 6000 pieces. That would mean I would have to add a loooot of variants to each product.
Could you maybe tell a bit more about the metafields option?
I do have the 'Metafields Custom Field Manager' app.
I think you should set the unit price per set-o- 6 and then show the price per bottle in the product description for information purposes. Since you don't sell per bottle, it's not of any use to set the price on Shopify per bottle.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025