price rounded to "modulo 1"

  • Posts: 17
  • Thank you received: 0
11 years 6 months ago #132543

Hi there,

I like the item prices to be rounded like this 10.20 EUR (Effective price is 10.24 EUR)
How can I achive this?

Thanks

Beat


Attachments:
Last edit: 11 years 6 months ago by bmeier.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 6 months ago #132646

There's no option to do that.

I think that you would have to add the code:
$price = round(round($price,1),2);
after the code:
function _round($price,$round=2){

in the file administrator/components/com_hikashop/classes/currency.php in order to be able to do that.

The following user(s) said Thank You: bmeier

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

  • Posts: 17
  • Thank you received: 0
11 years 6 months ago #132664

Thanks,

you may consider to implement this feature in a future version of HikaShop?
This is really a fundamnetal feature when working with various currencies.

Thanks

Beat

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 6 months ago #132682

So far we didn't had much request for it and it's more complex to properly implement than the code I gave as I would have to also support 5/10/15/20/25... modulos, and it wouldn't work properly with taxes.
We'll see but I can't say that it will be done soon.

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

Time to create page: 0.086 seconds
Powered by Kunena Forum