Description
Describe the bug
In the BO > Orders page > Order details page > An error is displayed when decreasing the gifted product quantity "Could not find the product in the cart, meaning Order and Cart are out of sync"
Steps to Reproduce
Steps to reproduce the behavior:
- Create a cart rule "free gift demo_12" without code
- Go to FO
- Add demo_12 to the cart (free gift well added)
- Continue checkout
- Place Order
- Go to BO > Order page >Last order created
- Decrease the quantity of the product from 2 to 1 and save
- See error
- Refresh the page: The quantity is updated in the product line, so is the price. But the summary is not updated.
- Change the status of the order to "Payment accepted": The invoice only has the quantity updated, but not the total prices
- Go to FO > Customer orders > Order details: The quantity is updated, but not the total prices.
PS:1768 => ok
https://drive.google.com/file/d/1zokwIsVqnDwie65aI_tUcm8E1_5E15Ct/view?usp=sharing
Additional information
- PrestaShop version: 1770rc1build4, 177x
- PHP version: 7.2
Metadata
Metadata
Assignees
Labels
BranchCategory: Back OfficeType: BugLabel: Which BO under menu is concernedLabel: Which BO under menu is concernedResolution: issue closed because fixedLabel: Which BO under menu is concernedSeverity: major bug > https://build.prestashop.com/news/severity-classificationKanban prioritization: issue must be included in next versionComponent: Which BO section is concernedType: regressionsymfony migration project
Activity
[-]BO - Order page - An error is displayed when increasing the gifted product quantity "Could not find the product in cart, meaning Order and Cart are out of sync"[/-][+]BO - Order page - An error is displayed when decreasing the gifted product quantity "Could not find the product in cart, meaning Order and Cart are out of sync"[/+]jolelievre commentedon Nov 19, 2020
Actually in this case since there is no other product in the order the quantity will be 0, the cart rule can't apply on an empty cart/order I guess that's where the bug comes from
Progi1984 commentedon Nov 23, 2020
Fixed by #22013