You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change underneath resulted in the creation of multiple itemRequests for configurableProducts. 5e46cef
When ordering a configurable product, a row is created for the simple and the configurable. However Magento uses the SKU of the simple for both on the order item. The mapping that was created above results in allowing configurable order items to be deducted on the SKU of the simple.
The reason this has been unnoticed is because the itemRequests are not grouped as in 'GetItemsToDeductFromOrder'. Magento loops over these requests and overwrites SKU based in the array. Always using the latest value. In this case the simple.
The change underneath resulted in the creation of multiple itemRequests for configurableProducts.
5e46cef
When ordering a configurable product, a row is created for the simple and the configurable. However Magento uses the SKU of the simple for both on the order item. The mapping that was created above results in allowing configurable order items to be deducted on the SKU of the simple.
The reason this has been unnoticed is because the itemRequests are not grouped as in 'GetItemsToDeductFromOrder'. Magento loops over these requests and overwrites SKU based in the array. Always using the latest value. In this case the simple.
TLDR;
The text was updated successfully, but these errors were encountered: