increase the number of decimal digits in the currency section

  • Posts: 17
  • Thank you received: 0
1 week 3 days ago #364338

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2.2

I have an important request from you.
Unfortunately, my country is suffering from severe inflation and my country's currency has little value and its value is decreasing every day, so that in the currency settings, the parity rate of the dollar against my country's currency is currently 0.0000014 and it is decreasing. In order not to always change the prices, we have to enter their dollar price in the product settings, but we have to display the price in our country's currency for the site viewers.
Due to the fact that only 7 decimal digits are displayed in the currency section, this problem causes a large price difference between 0.0000014 and 0.0000013 for our products, which can be solved by increasing the decimal digits in the next updates.
I request you to provide the possibility to increase the number of decimal digits in the currency section.
thank you

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
1 week 2 days ago #364340

Hi,

Increasing the number of decimals of the currency rates don't require any code modification.
Go in your PHPMyAdmin, open the structure of the hikashop_currency table, and edit the "currency_rate" column. There, you can increase the number of decimals and save.
The default is seven decimals: decimal(18,7)
You could for example set 10 decimals like this: decimal(21,10)

This modification will continue after updates, so no worry.

The following user(s) said Thank You: HadiTak

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

Time to create page: 0.054 seconds
Powered by Kunena Forum