[Skip to main content](#vessel-content)

#   Order editing

##

- **[inetis](/forum/user/7157-inetis "View inetis's Profile")**
- [![inetis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7157.png)](/forum/user/7157-inetis "View inetis's Profile") Topic Author
- [ Offline](/forum/user/7157-inetis)

Less More

- Posts: 30
- Thank you received: 1
-
-
- [](http://www.inetis.ch/)
-

12 years 2 months ago [\#171313](#171313) by [inetis](/forum/user/7157-inetis "View inetis's Profile")  *[Order editing](/forum/23-market-how-to/871080-order-editing#171313 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 2.5.24 -- PHP version -- : 5.3.29  After editing the order in frontend. Adding a product for example.  The TVA is updated but the value of coupon code and payment are not updated   take.ms/jF6f8  In my case payment/coupon code are set in % of the Total  Do you know a way to update them too ? Thanks")* was created by *[inetis](/forum/user/7157-inetis "View inetis's Profile")*

-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.3
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.3.29

After editing the order in frontend. Adding a product for example.

The TVA is updated but the value of coupon code and payment are not updated
[ take.ms/jF6f8](http://take.ms/jF6f8)
In my case payment/coupon code are set in % of the Total

Do you know a way to update them too ?
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDgwLW9yZGVyLWVkaXRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 2 months ago [\#171335](#171335) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Order editing](/forum/23-market-how-to/871080-order-editing#171335 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 2.5.24 -- PHP version -- : 5.3.29  After editing the order in frontend. Adding a product for example.  The TVA is updated but the value of coupon code and payment are not updated   take.ms/jF6f8  In my case payment/coupon code are set in % of the Total  Do you know a way to update them too ? Thanks")*

Hi,

In HikaMarket or in HikaShop, the order management works the same.
When you edit an existing order, you process a manual operation. HikaShop or HikaMarket won't reprocess the discount price so if you want to change it, you need to edit the discount value.
The discount can be applied on specific products, on specific categories, on the shipping (or not) ; so it's not possible to recalculate the discount price without having the full configuration of the discount (which could be changed since the order has been made).

That's why, you need to edit it manually ; because you edit the order content manually.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [inetis](/forum/user/7157-inetis "View inetis's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDgwLW9yZGVyLWVkaXRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[inetis](/forum/user/7157-inetis "View inetis's Profile")**
- [![inetis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7157.png)](/forum/user/7157-inetis "View inetis's Profile") Topic Author
- [ Offline](/forum/user/7157-inetis)

Less More

- Posts: 30
- Thank you received: 1
-
-
- [](http://www.inetis.ch/)
-

12 years 2 months ago [\#171937](#171937) by [inetis](/forum/user/7157-inetis "View inetis's Profile")  Replied by *[inetis](/forum/user/7157-inetis "View inetis's Profile")* on topic *[Order editing](/forum/23-market-how-to/871080-order-editing#171937 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 2.5.24 -- PHP version -- : 5.3.29  After editing the order in frontend. Adding a product for example.  The TVA is updated but the value of coupon code and payment are not updated   take.ms/jF6f8  In my case payment/coupon code are set in % of the Total  Do you know a way to update them too ? Thanks")*

Thanks for the reply.
I'll try to code something to have the automatic calculation of Shipping/Coupon when we do a manual editing
I have a project where the client have always the same discounts.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDgwLW9yZGVyLWVkaXRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 2 months ago [\#171943](#171943) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Order editing](/forum/23-market-how-to/871080-order-editing#171943 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 2.5.24 -- PHP version -- : 5.3.29  After editing the order in frontend. Adding a product for example.  The TVA is updated but the value of coupon code and payment are not updated   take.ms/jF6f8  In my case payment/coupon code are set in % of the Total  Do you know a way to update them too ? Thanks")*

Hi,

You can use the HikaShop trigger "onBeforeOrderUpdate".
In this trigger you will have the update content of the order and the old content too.
So you can see if the order price/products changed and update the discount value + reprocess the full price.
[ www.hikashop.com/support/support/documen...#onBeforeOrderUpdate](https://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onBeforeOrderUpdate)

Thanks to this trigger, you will be compatible with the all kind of updates (Front-end with HikaMarket ; back-end with HikaShop).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDgwLW9yZGVyLWVkaXRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[inetis](/forum/user/7157-inetis "View inetis's Profile")**
- [![inetis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7157.png)](/forum/user/7157-inetis "View inetis's Profile") Topic Author
- [ Offline](/forum/user/7157-inetis)

Less More

- Posts: 30
- Thank you received: 1
-
-
- [](http://www.inetis.ch/)
-

12 years 2 months ago [\#171946](#171946) by [inetis](/forum/user/7157-inetis "View inetis's Profile")  Replied by *[inetis](/forum/user/7157-inetis "View inetis's Profile")* on topic *[Order editing](/forum/23-market-how-to/871080-order-editing#171946 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 2.5.24 -- PHP version -- : 5.3.29  After editing the order in frontend. Adding a product for example.  The TVA is updated but the value of coupon code and payment are not updated   take.ms/jF6f8  In my case payment/coupon code are set in % of the Total  Do you know a way to update them too ? Thanks")*

Thanks to have show me the right direction.
I love triggers ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDgwLW9yZGVyLWVkaXRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
