Magento 2 Bundle Items Inventory
Installation and User Guide for Magento 2 Bundle Items Inventory
Table of Contents
- Installation
- Download Extension
- Installation via app/code
- Installation via Composer
- Configuration Settings for Bundle Items
- General Settings
- Workflow
- Setting Up Bundle Items Association
- Associating Bundle Items & Defining Quantities
- Updating or Removing Bundle Associations
- Inventory Automation
- On Purchase
- On Refund
- Out-of-Stock Handling
- What Customers See
- Bulk Import & Export
- Bulk Import
- Bulk Export
Installation
-
Download Extension: Once you have placed the order from our site then go to Account section and click on My Downloadable Products and download the extension package.
-
Installation via app/code: Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory.
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy
text
- Installation via Composer: Please follow the guide provided in the below link to complete the installation via composer.
{% content-ref url="../installation-via-composer.md" %} installation-via-composer.md {% endcontent-ref %}
Configuration Settings for Bundle Items
Go to Admin > Stores > Configuration > Scommerce Configuration > Security Base
General Settings
- Enabled – Select "Yes" or "No" to enable or disable the module.
- License Key – Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at support@scommerce-mage.com.
Workflow
The Magento 2 Bundle Items Inventory extension allows store administrators to associate any number of component products with simple items in their catalogue—each with a precise quantity. This setup enables inventory deduction and restoration for both main and associated (bundle) items during purchases and refunds, streamlining complex product management and keeping total inventory accurate.
Setting Up Bundle Item Associations
Associating Bundle Items & Defining Quantities
Example:
If "Family Baking Kit" requires 1 rolling pin, 2 spatulas, and 3 mixing bowls per kit, add each as a bundle item and specify quantities accordingly.
Updating or Removing Bundle Associations
- To change quantities: Edit the relevant field next to each bundle item.
- To remove an item: Use the remove/delete option within the grid.
Inventory Automation
On Purchase
When an order containing the main product is placed:
- The main product stock decreases by the quantity purchased.
- Each bundle item's stock decreases based on the quantity defined per main product × number of mains sold.
Example:
Purchasing 4 "Spa Kits" (each requires 2 candles and 1 bottle of oil):
- Main product: 4 deducted
- Candles: 8 deducted (4 × 2)
- Oil bottles: 4 deducted (4 × 1)
On Refund
When an order for the main product is refunded:
- The main product stock increases by the quantity refunded.
- Each bundle item's stock increases based on the refund quantity and their association.
Example:
Refund 2 "Family Baking Kits":
- Main product: +2
- Rolling pins: +2
- Spatulas: +4 (2 × 2)
- Mixing bowls: +6 (2 × 3)
Out-of-Stock Handling
By default, the main product can be purchased even if bundle items are out of stock.
(Future versions will allow configuration to prevent purchase if bundle items are unavailable.)
What Customers See
On the main product's page, your customers will see all associated bundle items and the quantities per unit (e.g. "Includes: 2 Candles, 1 Essential Oil Bottle per kit").
Bulk Import & Export
Bulk Import
- Prepare a CSV File: Each row should include:
- Main Product SKU
- Bundle Item SKU
- Quantity per main product
- Go to:
System > Data Transfer > Import - Choose Entity Type:
"Bundle Item Associations" - Upload and Import:
- The system validates:
- All SKUs exist
- Quantities are whole numbers
- No duplicate relationships are present
- Errors will appear with guidance to fix.
- The system validates:
Sample CSV Format
| main_product_sku | bundle_item_sku | quantity_per_unit |
|---|---|---|
| spa-kit | candle | 2 |
| spa-kit | oil-bottle | 1 |
| baking-kit | spatula | 2 |
Bulk Export
- Go to:
System > Data Transfer > Export - Choose "Bundle Item Associations" as entity.
- Download the CSV:
The export will show:- Each main SKU
- Associated bundle SKUs
- Quantities for each link
If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact support@scommerce-mage.com.




