Rounding of the amount

  • Posts: 13
  • Thank you received: 0
11 years 2 months ago #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_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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #123165

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 13
  • Thank you received: 0
11 years 2 months ago #123244

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #123256

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 13
  • Thank you received: 0
11 years 2 months ago #123320

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #123324

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum