sales that affect other product inventory? How can I accomplish this? Help please!

I apologize if this has been asked already. I also posted this in the magento forums, and am trying to figure out how this can work. I am using the latest version. Here’s my scenario. I have configurable products available in three different package quantities.

50-pack 5-pack single

Here’s the behavior I am after.

Let’s assume that I have 2x 50 packs in stock. I want the inventory to look like this:

50-pack: 2

5-pack: 20

single: 100

Assuming that a single is sold, inventory would look like this:

50-pack: 1

5-pack: 19

single: 99

Assuming that a 5-pack is sold, it would look like this:

50-pack: 1

5-pack: 19

single: 95

and if a 50-pack was sold, it would be:

50-pack: 1

5-pack: 10

single: 50

lastly, if a quantity of 12 was sold it would look like:

50-pack: 1

5-pack: 17

single: 88

Please let me know how I can clarify.

What’s the best approach to achieve this? whether built-in or through an extension, doesn’t matter. I apologize if this has been covered already. I’m not exactly sure on what to search for. I’ve looked at grouped products, and I’m not sure that will meet my needs.


Better approach could be to set this up using Bundle products instead of Configurable. You could have following products then:

  • single (simple product)
  • 50-pack (bundle product with "single" added as option with qty of 50)
  • 5-pack (bundle product with "single" added as option with qty of 5)

This way Magento would handle stock properly. For example if there are 19 "single" items in stock, you should be able to add to cart 3 pieces of "5-pack", 4 pieces of "single" and nothing more.

However, Magento may still display these products in frontend as "In Stock" and validate stock levels at the time of adding product to cart.

Similar questions

Magento 2: Product Edit page Error 503 PLEASE HELP
When I try to add or edit a product, I get blank page with Error 503: Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. In the past 2 month I have created a lot of extensions and all are working fine. The products are shown in the product grid, no p...
Any help - Magento 2.3 - After migration Add Product via admin return Fatal error, any help for this error
Installed Magento 2.3.4 using Github Installation, After migration from Magento version to 2.3.4 If click Add Product i am getting the following error, Errors: System.log : debug.log: Cron.log : Note : Add product using API its added API :
Magento Customer Address Please enter first name please enter last name
I'm creating a website for a client, and I ordered a template with demo data from someone in America. But in the website there is an error. When I logged in in the site as customer and I'm editing my address there is an error: Although these fields are filled. Even when you proceed to the basked and paymend through onestep checkout when you fill in...
Access denied Please try to logout and sign in again. If this message persists, please contact the store owner
i getting the error "Access denied Please try to logout and sign in again. If this message persists, please contact the store owner." when i try to login in admin panel. i have no other username and password.I also tried to log out and login again but same problem. please tell me any solution.
Certification - how will magento 2 release affect it?
I am about to shortly sit my certification exam but am now seeing a lot of hype around magento 2. Does anyone know how the release of Magento 2 will affect the current certificaiton? Will it sill be valid? Will it need updated/replaced etc?
Multiple configurable attributes for products (that may not affect the price)
I have products that have two(-three) configurable attributes: The price is only affected by the first two options, and not the colour. However, I have to show the style and colour options together like: Style 1 - Red - Blue Style 2 - Red - Blue etc.. So my question is, *is there a way to avoid creating 3*3*20 simple products*, and create only 9 wh...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.