Skip to content

Conversation

@ahasAmp
Copy link
Contributor

@ahasAmp ahasAmp commented Oct 22, 2025

#142

Description

Bundle products containing duplicate selections (same SKU and quantity) did not result in correct stock deductions.
When the same option was included multiple times in a bundle (e.g., selected twice from different option groups), the system recognized both selections during checkout, but only deducted stock for one instance, resulting in under-deduction and inaccurate inventory.

Solution

We updated the bundle handling logic in the module to detect and consolidate duplicate option selections before stock deduction occurs. This ensures:
The correct total quantity is deducted from inventory.
Inventory stays consistent with the actual order contents.
A new acceptance test was also added to validate the fix: bundleWithDuplicateOptionsDeductsCorrectly

Checklist

  • Pull request has a meaningful description of its purpose, include affected Magento versions if it is a bug.
  • All commits are accompanied by meaningful commit messages
  • Tests have been ran / updated (see ./dev/README.md for how to run tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants