Closed
Description
Preconditions
- Magento 2.1.6
Steps to reproduce
- Create a Bundle product with options.
- Export the product, no information about
selection_can_change_qty
- Import, no possibility to set
selection_can_change_qty
Expected result
selection_can_change_qty
is exported and imported correctly
Actual result
selection_can_change_qty
is always true
/1
Suggested solution
It seems that while importing, the value is hardcoded: https://github.com/magento/magento2/blob/2.1.6/app/code/Magento/BundleImportExport/Model/Import/Product/Type/Bundle.php#L310
I suggest a parameter can_change_qty
will be added, while keeping the default on 1
to preserve BC.
'selection_can_change_qty' => (isset($selection['can_change_qty'])) ? ($selection['can_change_qty'] ? 1 : 0) : 1,
The value should also be added to the export of a bundle, to keep import <-> export in sync.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release