Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am trying to make it so I can sell up to 7 of any combination of size and bagginess of pants. For example 3 M baggy+, and 4 L baggy++ would cause the listing to be deemed out of stock. Is this even possible?
Solved! Go to the solution
This is an accepted solution.
Hey @HenrySanderson
Yes, it is possible to set up a system where you can sell up to 7 of any combination of size and bagginess of pants. You would need to track the inventory of each specific combination and update it accordingly when sales are made. Here's an example of how you could approach it:
Define the inventory combinations: Create a list of all possible combinations of size and bagginess for your pants. For example, you might have combinations like "S baggy+", "M baggy++", "L baggy+", etc.
Set the initial inventory count: Assign an initial inventory count of 7 to each combination. This means that you have 7 available for sale for each combination at the beginning.
Track inventory: Whenever a customer purchases a pair of pants, deduct one from the corresponding inventory combination. For example, if a customer buys "M baggy+", subtract 1 from the inventory count of that combination.
Check inventory availability: Before allowing a purchase, you need to check if the desired combination is in stock. If the inventory count for a specific combination reaches 0, mark it as out of stock and prevent customers from selecting it.
Display stock availability: Provide a user interface or display on your website where customers can see the available stock for each combination. This helps them make informed choices and avoids the situation of selling more than 7 of any combination.
Manage restocking: Periodically, you may need to restock your inventory. You can reset the inventory count to 7 for all combinations or use a different restocking strategy based on demand and sales patterns.
By implementing these steps, you can ensure that you can sell up to 7 of any combination of size and bagginess of pants while also managing stock availability.
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @HenrySanderson
Yes, it is possible to set up a system where you can sell up to 7 of any combination of size and bagginess of pants. You would need to track the inventory of each specific combination and update it accordingly when sales are made. Here's an example of how you could approach it:
Define the inventory combinations: Create a list of all possible combinations of size and bagginess for your pants. For example, you might have combinations like "S baggy+", "M baggy++", "L baggy+", etc.
Set the initial inventory count: Assign an initial inventory count of 7 to each combination. This means that you have 7 available for sale for each combination at the beginning.
Track inventory: Whenever a customer purchases a pair of pants, deduct one from the corresponding inventory combination. For example, if a customer buys "M baggy+", subtract 1 from the inventory count of that combination.
Check inventory availability: Before allowing a purchase, you need to check if the desired combination is in stock. If the inventory count for a specific combination reaches 0, mark it as out of stock and prevent customers from selecting it.
Display stock availability: Provide a user interface or display on your website where customers can see the available stock for each combination. This helps them make informed choices and avoids the situation of selling more than 7 of any combination.
Manage restocking: Periodically, you may need to restock your inventory. You can reset the inventory count to 7 for all combinations or use a different restocking strategy based on demand and sales patterns.
By implementing these steps, you can ensure that you can sell up to 7 of any combination of size and bagginess of pants while also managing stock availability.
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you so much!
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