How I can round prices?

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #316993

-- HikaShop version -- : 4.2.3
-- Joomla version -- : Joomla! 3.9.16

Hello. I am adding price in USD but I need it to display in local Ukrainian currency, but it is not rounded. How to fix this?
Thanks

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
4 years 7 months ago #317001

Hi,

In the settings of your currency, you can configure how you want the prices to be rounded. You can find them when you edit the currency via the menu System>Currencies.

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317040

I'll try, thank you

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317041

I've tried to change from 0 to 10 - the price was the same. screenshots attached.
What I can do else?

Attachments:
Last edit: 4 years 7 months ago by serg4erkassy.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
4 years 7 months ago #317042

Hi,

Then try to activate the "round prices during calculations" setting of the HikaShop configuration.
Also, I would recommend a round increment of 10, not 3.

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317069

it is activated from beginning and round increment is 10 now - nothing.
All screenshots attached

Attachments:
Last edit: 4 years 7 months ago by serg4erkassy.

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317073

I deactivated "round prices during calculations" and it started to work - it is very strange=)

The following user(s) said Thank You: HadiTak

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317080

There're prices that are not rounded in JD Hikashop Category module on the main page smart.ck.ua/ .
Each product separately has a rounded price. How to fix this? Screenshots attached

smart.ck.ua/component/hikashop/product/7..._Bluetooth_P47_White
it is a link to a product with rounded price, but it is not rounded in the Hikashop Category module of favirite products

Attachments:

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
4 years 7 months ago #317075

Hi,

Well, if it works, that's great.

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317091

There was my last comment
There're prices that are not rounded in JD Hikashop Category module on the main page smart.ck.ua/ .
Each product separately has a rounded price. How to fix this? Screenshots attached

smart.ck.ua/component/hikashop/product/7..._Bluetooth_P47_White
it is a link to a product with rounded price, but it is not rounded in the Hikashop Category module of favirite products

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
4 years 7 months ago #317081

Hi,

For the JD Hikashop Category module, I don't know. I would recommend to check with the support of that module as I don't know how is their code to display the price. Normally, it needs to call the format function of the class.currency class which does the increment rounding before the display. But if the module doesn't call that function and does the display differently, then it it probably requires some code modifications to support that rounding capability.

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

  • Posts: 37
  • Thank you received: 4
4 years 7 months ago #317099

Thanks

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

Time to create page: 0.075 seconds
Powered by Kunena Forum