We have designed our products to be sold in sets of 5 of the exact same item. We have over 1200 variations across the site.
We now want to sell individual items as well.
Under the per-set model, when we receive 100 items we were setting the quantity in shopify to 20. A sale of 1 set deducted 1 from the quantity leaving 19 sets available. We knew the actual stock count is quantity on hand *5. Works perfectly and this is how the shop is currently set up.
To sell individually this won’t work, so we need to change all of our SKU quantities to the actual values (IOW 5 x current stock at hand). But that leads to a problem for those pages where we still sell sets of 5.
We need something that will run behind the scenes that effectively says, "when a sale is made and the page has a ‘setsonly’ tag, the quantity deducted from the SKU should be 5 x the quantity purchased. Otherwise it should be 1x.
This would cause the stock count to drop by 10 when 2 sets were purchased from a ‘setsonly’ page, but for the pages selling individual items the quantity selected (2) is deducted.
Is there a way to establish this different handling of inventory adjustment in Shopify, so that the correct number of items sold is deducted from stock regardless of whether the buyer is on a page that sells items in sets of 5, or on pages selling them individually? Our goal is to have a solution that to our customers does not require them to think or interact with the site any differently than they do today. In other words, with minimal to no change to the user experience.