Description
Describe the bug
Related to this PR
In the FO, when we add product A to the cart then checkout, the Order must contain Product A and Product B
In the BO > Order detail page => when we remove the Product A from the order, the cart rule is removed and Product B is not removed, we need to reload the page
Expected behavior
The ProductB should be removed
SPECS:
When a product is successfully added to the order, a notification of success is displayed: "The item was successfully added." in Admin.Notifications.Success.
Then the product list is reloaded behind the loading spinner to check if any new products could be added through automatics carts rules. The user is redirected to the first page of the product list.
When a product is removed from the order, a notification is displayed: "The item was successfully removed." in Admin.Notifications.Error.
Then the product list is refreshed behind the loading spinner to check if any gift product has to be removed as well. The user is redirected to the page where the user removed the product. If the removed product was on the last page, the user is redirected to the second-last page.
FYI: specs are updated
Steps to Reproduce
Steps to reproduce the behavior:
- Go to BO > Catalog > Discounts page
- Create a cart rule "free gift "demo_6 60*90"
- Go to FO > Add any other product to cart
- Apply the discount
- Continue checkout
- in the BO > Order detail page > remove the product Ordered
- See the error "The gift Product is not removed"
- if you reload the page => OK
Screenshots
https://drive.google.com/file/d/1N06UU3WrfwgVwgeiTDnB26R_3PEOtc3v/view?usp=sharing
Additional information
- PrestaShop version: 177x
- PHP version: 7.2
Activity
prestashop-issue-bot commentedon Oct 19, 2020
Thanks for opening this issue! We will help you to keep its state consistent
29 remaining items