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.
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.
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
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