cancel
Showing results for 
Search instead for 
Did you mean: 

Edit Order Magento 2

Edit Order Magento 2

Why default magento is not allowing to edit the order without cancel the existing order? 

3 REPLIES 3

Re: Edit Order Magento 2

Hello @gkarthick87,

 

We are not probably the ones who can answer why there is no such functionality in the core.

 

Possibly,


The major problem when editing orders is that the total calculation is made based on the actual store settings. These settings can get changed from the moment of order creation to the moment of order editing, which can trigger unpredictable outcomes after the total gets calculated.


For example,


Changing the tax rate after the order is placed will result in an absolutely different grand total when adding a product to the order (when editing) as the new tax rate will influence other products as well.


The correct workaround would be not to edit an existing order but create a new one and thus avoid any unpredictable results.


It can be on the conscience of store admins but cause plenty of new bugs and issues. Or, there could be some other reason. =)

 

Anyways,

 

Order editing is possible with the help of extensions, including some products of ours:

 

https://marketplace.magento.com/mageworx-module-ordereditor.html

https://marketplace.magento.com/mageworx-module-ordereditormeta.html

 

---------------------------------------------------------

If you find our answer useful, please give 'Kudos' or 'Accept as Solution'.

Re: Edit Order Magento 2

Programming and all challenges are deformed for success. The shape of the goal and telemedicine app is vital for the themes. Improvement is observed for the full use of the offered data for the cycled element for the turns for the shows.

Re: Edit Order Magento 2

Dear gkarthick87,

 

We haven't read your code in detail, but on a general level: From a business logic standpoint editing an existing order should be restricted/avoided as it is tied to accounting/bookkeeping. Respecting accounting standards, the correct way is to create some kind of order that will adjust the existing order (cancel, add, change price, etc).

 

Best, 

Sloboda Studio