Skip to content

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" #22004

Closed
Listed in
@khouloudbelguith

Description

@khouloudbelguith
Contributor

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:

  1. Create a cart rule "free gift demo_12" without code
    image
  2. Go to FO
  3. Add demo_12 to the cart (free gift well added)
    image
  4. Continue checkout
  5. Place Order
  6. Go to BO > Order page >Last order created
    image
  7. Decrease the quantity of the product from 2 to 1 and save
  8. See error
    image
  9. Refresh the page: The quantity is updated in the product line, so is the price. But the summary is not updated.
  10. Change the status of the order to "Payment accepted": The invoice only has the quantity updated, but not the total prices
  11. 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

Activity

added
BugType: Bug
MajorSeverity: major bug > https://build.prestashop.com/news/severity-classification
BOCategory: Back Office
OrderComponent: Which BO section is concerned
InvoicesLabel: Which BO under menu is concerned
DiscountsLabel: Which BO under menu is concerned
Cart rulesLabel: Which BO under menu is concerned
ReadyStatus: Issue is ready to be worked on
migrationsymfony migration project
on Nov 19, 2020
changed the title [-]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"[/+] on Nov 19, 2020
jolelievre

jolelievre commented on Nov 19, 2020

@jolelievre
Contributor

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

self-assigned this
on Nov 19, 2020
added
Must-haveKanban prioritization: issue must be included in next version
on Nov 19, 2020
added
WIPStatus: Work In Progress
and removed
ReadyStatus: Issue is ready to be worked on
on Nov 19, 2020
added this to the 1.7.7.0 milestone on Nov 20, 2020
Progi1984

Progi1984 commented on Nov 23, 2020

@Progi1984
Member

Fixed by #22013

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

Metadata

Metadata

Assignees

Labels

1.7.7.xBranchBOCategory: Back OfficeBugType: BugCart rulesLabel: Which BO under menu is concernedDiscountsLabel: Which BO under menu is concernedFixedResolution: issue closed because fixedInvoicesLabel: Which BO under menu is concernedMajorSeverity: major bug > https://build.prestashop.com/news/severity-classificationMust-haveKanban prioritization: issue must be included in next versionOrderComponent: Which BO section is concernedRegressionType: regressionmigrationsymfony migration project

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @Progi1984@marionf@jolelievre@khouloudbelguith

    Issue actions

      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" · Issue #22004 · PrestaShop/PrestaShop