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

#   Rounding of the amount

##

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 2 months ago [\#123151](#123151) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  *[Rounding of the amount](/forum/40-taxes/861916-rounding-of-the-amount#123151 "-- url of the page with the problem -- :   mywebsite.com/mypage  work in progress and still offline -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox latest version -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I work with the latest version of Hika shop. There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35. I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?  Thanks for your support")* was created by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage) work in progress and still offline
-- HikaShop version -- : 2.2.1
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Firefox latest version
-- Error-message(debug-mod must be tuned on) -- : Error_message

I work with the latest version of Hika shop.
There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35.
I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?

Thanks for your support

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MTkxNi1yb3VuZGluZy1vZi10aGUtYW1vdW50P3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123165](#123165) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Rounding of the amount](/forum/40-taxes/861916-rounding-of-the-amount#123165 "-- url of the page with the problem -- :   mywebsite.com/mypage  work in progress and still offline -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox latest version -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I work with the latest version of Hika shop. There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35. I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?  Thanks for your support")*

Hi,

I don't understand your message.
More precisely, I don't understand the values you're talking about. "CHF 92.35" is for me, coming from nowhere. So I am a little bit lost.
For the number you gave, I don't think that such "rounding" is possible. Or I missed something, around CHF 57.77

Regards,

---

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

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

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 2 months ago [\#123244](#123244) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  Replied by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")* on topic *[Rounding of the amount](/forum/40-taxes/861916-rounding-of-the-amount#123244 "-- url of the page with the problem -- :   mywebsite.com/mypage  work in progress and still offline -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox latest version -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I work with the latest version of Hika shop. There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35. I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?  Thanks for your support")*

Hi,
What I mean is, a rounding of the amount of VAT and the final amount. In Switzerland it is customary to round the amount if, for example, the final amount is 57.77, this rounded off to 57.75, or if the amount is, for example 57.78, rounded up to 57.80 - these are just examples.

Well, I think that I could achieve with a "formula" in PHP, but I do not know exactly where.

Regards Esther

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MTkxNi1yb3VuZGluZy1vZi10aGUtYW1vdW50P3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123256](#123256) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Rounding of the amount](/forum/40-taxes/861916-rounding-of-the-amount#123256 "-- url of the page with the problem -- :   mywebsite.com/mypage  work in progress and still offline -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox latest version -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I work with the latest version of Hika shop. There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35. I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?  Thanks for your support")*

Hi,

For what I understand orf your requirement, it won't be something "supported" by HikaShop.

I still don't understand clearly what you want to do, if it's just "cosmetic / display" or if it's really a price modification.
For the cosmetic, you can override some views (but there are several views to override), if it's price modification... It will be very very difficult.

Regards,

---

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

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

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 2 months ago [\#123320](#123320) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  Replied by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")* on topic *[Rounding of the amount](/forum/40-taxes/861916-rounding-of-the-amount#123320 "-- url of the page with the problem -- :   mywebsite.com/mypage  work in progress and still offline -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox latest version -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I work with the latest version of Hika shop. There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35. I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?  Thanks for your support")*

Thank you for your reply.

You're right, it's basically a cosmetic display for proper display on the invoice. I know with the euro currency or dollars it is normal to see the unrounded amounts, but not with Swiss Francs.

Hika Shop is a very good shop component, therefore I have also chosen this component. I've tried before JoomShopping and VirueMart, and with these two components, it was no problem, the amounts have been rounded. So I thought that this is also possible with Hika shop.
You mentioned that I can override some views, where can I do that?

Regards Esther

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MTkxNi1yb3VuZGluZy1vZi10aGUtYW1vdW50P3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123324](#123324) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Rounding of the amount](/forum/40-taxes/861916-rounding-of-the-amount#123324 "-- url of the page with the problem -- :   mywebsite.com/mypage  work in progress and still offline -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox latest version -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I work with the latest version of Hika shop. There is a problem with the calculation of VAT or the calculation of the total amount at all. Example: I have a net price of CHF 139.00, the tax is 8% = CHF 11.12, which means the total amount is then CHF 150.12. The problem is the rounding of the amount it would have to be rounded up to CHF 92.35. I've heard that the rounding issue is resolved with the latest version - but unfortunately that is not the case. Where can I customize it?  Thanks for your support")*

Hi,

For the product page (and product listing) you can override the view "product &#124; listing_price" in order to add your rounding.
An override of the "product &#124; cart" will be required as an override of the "checkout &#124; cart".

There are the three main points which display prices in the front-end.

Regards,

---

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

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

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

Time to create page: 0.068 seconds

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