How to edit order item (add/edit/remove products, chanage services, add/remove coupons?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

How to edit order item (add/edit/remove products, chanage services, add/remove coupons?

Post by Ahmad » 30 Jun 2021, 14:11

laravel/framework v7.30
aimeos/laravel 2020.10.6

I want to edit an stored order like as add/edit/remove products, change delivery/payment service provider and add or remove coupons similar to the basket process so that order price and costs update after edit, for example change delivery service provider and recalculate order costs based on new delivery service provider.

how can I do this?

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: How to edit order item (add/edit/remove products, chanage services, add/remove coupons?

Post by aimeos » 01 Jul 2021, 06:24

Usually, orders can't be changed after they have been placed by the customer because most often the customer already paid the total amount of the order and if you change products/services/coupons, the paid amount is different from the new order total.

If that doesn't bother you because customers only pay afterwards, you can overwrite the code for the order panel in you own extension:
https://github.com/aimeos/ai-admin-jqad ... QAdm/Order

The order managers and items are available here:
https://github.com/aimeos/aimeos-core/t ... Shop/Order
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ritesh
Posts: 5
Joined: 29 Sep 2021, 10:41

Re: How to edit order item (add/edit/remove products, chanage services, add/remove coupons?

Post by ritesh » 08 Nov 2021, 08:22

Ahmad wrote: 30 Jun 2021, 14:11 laravel/framework v7.30
aimeos/laravel 2020.10.6

I want to edit an stored order like as add/edit/remove products, change delivery/payment service provider and add or remove coupons similar to the basket process so that order price and costs update after edit, for example change delivery service provider and recalculate order costs based on new delivery service provider.

how can I do this?
Hi Ahmad, did you manage to do this? I would also like to add the order editing feature (update/change shipping provider). Thanks!

Post Reply