Quantity of an item not updating when changed in Edit Order Admin View

Hace 2 meses
Hi,

I can currently see in 4.6 following behaviour

Change the quantity of an Item in the Order Edit View will not work as expected.

If you change the quantity, it will stay at the prior quantity.

if you add the same Item again, It will add a new "same" Item into the order with quantity 1, instead of increasing the quantity of the already existing item.

Regards
Hace 2 meses
It works fine in the online demo.

Are you clicking the "Save"?  Do you then see a popup that says "... are you sure..."?
Maybe you have a popup blocker?
Also, open the browser developer tools (F12) and look at the Console tab to see if any error messages.
Hace 2 meses
Hi,

I found the Issue

"Auto update order totals" in order settings.



as soon es it is set, parts of the order are not updated.

and in the demo store i also can reproduce the 2nd finding..



Regards
Hace 2 meses
Hi,

I guess i found something more...

https://github.com/nopSolutions/nopCommerce/issues/8

it looks like an open Bug...
It looks like it is a part of 4.7 ?

Thx
Hace 2 meses
As to "2nd finding", it's per design as mentioned here
https://www.nopcommerce.com/en/boards/topic/43139/adding-products-to-existing-order-without-all-product-information#171078

As per the that GitHub issue : "removed this from the Version 4.70 milestone on Jan 19, 2023"
Hace 2 meses
I have looked at this before and making a new plugin now trying to use this function. I do not know what the logic and setting are for ?

If the ordersettings.autoupdateordertotalsoneditingorder is set to True then
- It does not update the OrderItem values when changed to new values
- It does update the order total based on the current unchanged values

If the ordersettings.autoupdateordertotalsoneditingorder is set to False then
- It does update the OrderItem values when changed to new values
- It does not update the order total based on the new values entered

To me if someone clicks the edit button and changes the Order item values then they should be saved regardless.
Then depending on the above setting the admin can decide if they do or do not want the order totals to be automatically updated
Hace 1 semana
Yidna wrote:
I have looked at this before and making a new plugin now trying to use this function. I do not know what the logic and setting are for ?

If the ordersettings.autoupdateordertotalsoneditingorder is set to True then
- It does not update the OrderItem values when changed to new values
- It does update the order total based on the current unchanged values

If the ordersettings.autoupdateordertotalsoneditingorder is set to False then
- It does update the OrderItem values when changed to new values
- It does not update the order total based on the new values entered

To me if someone clicks the edit button and changes the Order item values then they should be saved regardless.
Then depending on the above setting the admin can decide if they do or do not want the order totals to be automatically updated



You're right,but also there is another problem. Even it's true, it ignores quantity of items, so it can't calculate correct total amount