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

#   Recalculate full order value

##

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

11 years 4 months ago [\#207661](#207661) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  *[Recalculate full order value](/forum/23-market-how-to/878028-recalculate-full-order-value#207661 "Hi Jerome!  I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.  How can I force the component to recalculate the full gross price and the full tax of the order as well?  Thanks for your help and patience in advance!  Best Regards, PePe")* was created by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")*

Hi Jerome!

I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.

How can I force the component to recalculate the full gross price and the full tax of the order as well?

Thanks for your help and patience in advance!

Best Regards,
PePe

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MDI4LXJlY2FsY3VsYXRlLWZ1bGwtb3JkZXItdmFsdWU/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)
-

11 years 4 months ago [\#207674](#207674) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Recalculate full order value](/forum/23-market-how-to/878028-recalculate-full-order-value#207674 "Hi Jerome!  I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.  How can I force the component to recalculate the full gross price and the full tax of the order as well?  Thanks for your help and patience in advance!  Best Regards, PePe")*

Hi,

Well, I don't know what modifications you made exactly and what you want to reprocess exactly but if it's just the order full price and the order taxes ; you need to call the function of the HikaShop order class.
HikaMarket is processing special stuff, but if HikaShop already have code for that, I prefer to not rewrite and just use it ![:)](/media/kunena/emoticons/3.png ":)")

Regards,

---

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

11 years 4 months ago [\#207697](#207697) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Recalculate full order value](/forum/23-market-how-to/878028-recalculate-full-order-value#207697 "Hi Jerome!  I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.  How can I force the component to recalculate the full gross price and the full tax of the order as well?  Thanks for your help and patience in advance!  Best Regards, PePe")*

Yeah, I know I shouldn't overwrite it, but some parts needed to be do that unfortunately.

I tried to solve my problem with these lines, but with no luck: Code:

$orderClass = hikamarket::get('shop.class.order'); $order = $orderClass-&gt;loadFullOrder($order_id, true, false); $orderClass-&gt;recalculateFullPrice($order);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MDI4LXJlY2FsY3VsYXRlLWZ1bGwtb3JkZXItdmFsdWU/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)
-

11 years 4 months ago [\#207734](#207734) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Recalculate full order value](/forum/23-market-how-to/878028-recalculate-full-order-value#207734 "Hi Jerome!  I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.  How can I force the component to recalculate the full gross price and the full tax of the order as well?  Thanks for your help and patience in advance!  Best Regards, PePe")*

Yes, and ?

That function works pretty well for me... I used it a lot of times in HikaMarket.

---

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

11 years 4 months ago [\#207781](#207781) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Recalculate full order value](/forum/23-market-how-to/878028-recalculate-full-order-value#207781 "Hi Jerome!  I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.  How can I force the component to recalculate the full gross price and the full tax of the order as well?  Thanks for your help and patience in advance!  Best Regards, PePe")*

Oh... My logic stopped yesterday.
I just had to add the save line, and now everything works fine! Thanks! Code:

$orderClass-&gt;save($order);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MDI4LXJlY2FsY3VsYXRlLWZ1bGwtb3JkZXItdmFsdWU/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)
-

11 years 4 months ago [\#207785](#207785) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Recalculate full order value](/forum/23-market-how-to/878028-recalculate-full-order-value#207785 "Hi Jerome!  I've made a small modification in hikamarket/ordermarket view to easily update/modify products in the order. It seems that everything works fine, products fields and the full net price is changed to the new one correctly, but the tax and the full gross price remains the same.  How can I force the component to recalculate the full gross price and the full tax of the order as well?  Thanks for your help and patience in advance!  Best Regards, PePe")*

![:)](/media/kunena/emoticons/3.png ":)")

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MDI4LXJlY2FsY3VsYXRlLWZ1bGwtb3JkZXItdmFsdWU/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.092 seconds

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