Jump to content

Incorrect recalculation when editing an order


sergiorx8

Recommended Posts

Hello everyone, I'm sharing my problem in case someone else has experienced it. I have a PrestaShop 8.0.5 store (PHP 8.1), and for some time now, I've noticed an issue when editing orders. Within a customer's order, when I try to edit the products they have added to modify the stock, I receive an error in a small window that appears saying "Could not find the product in cart, meaning Order and Cart are out of sync" when I click save after editing the quantity. When this happens, it seems that it doesn't save, but when I refresh the page, it does save the modified quantity. The problem is that it doesn't recalculate the total with the modifications made to the product stack.

When I modify the quantities and receive the mentioned error, I noticed that a 400 error pops up in the console in the main.bundle.js file at line 1641.

I've checked everything and can't figure out where the error is coming from, and the Apache server log doesn't give me any file blocking errors either. I also saw that this error or a similar one occurred in one of the PS 1.7 versions (if I remember correctly) but was fixed.

 

P.S.: The error I mentioned that I saw elsewhere is this one on GitHub, but mine does not have any discount rules or coupons applied. It just gives that error on a regular order.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...