Skip to main content

Rounding of the amount

13 years 2 months ago #123151 by innovoweb
-- 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_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 or Create an account to join the conversation.

13 years 2 months ago #123165 by Jerome
Replied by Jerome on topic Rounding of the amount
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

13 years 2 months ago #123244 by innovoweb
Replied by innovoweb on topic Rounding of the amount
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 or Create an account to join the conversation.

13 years 2 months ago #123256 by Jerome
Replied by Jerome on topic Rounding of the amount
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

13 years 2 months ago #123320 by innovoweb
Replied by innovoweb on topic Rounding of the amount
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 or Create an account to join the conversation.

13 years 2 months ago #123324 by Jerome
Replied by Jerome on topic Rounding of the amount
Hi,

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

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

Regards,

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum