Decrease decimal numbers on price edit

  • Posts: 91
  • Thank you received: 5
5 years 5 months ago #299411

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.1.8
-- Browser(s) name and version -- : Chrome

My clients wants to reduce decimal numbers on price edit to 2, instead of 7 now. I know that after price save the displayed number is 2 (correct), but on edit there are more. I attach the screenshot to explain it better. Is it possible?

Thank you

Attachments:

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

  • Posts: 81508
  • Thank you received: 13064
  • MODERATOR
5 years 5 months ago #299414

Hi,

It shouldn't be 7 but 5 decimals.
There is no system to restrict the number of decimals when editing the prices.
It's only during the display of the prices that the restriction in the number of decimals of the currency is enforced.
Now, you can change the type of the column price_value in the table hikashop_price in your database via your phpmyadmin in order to reduce the number of decimals.
stackoverflow.com/questions/23877487/how...atabase-using-phpmya

The following user(s) said Thank You: bolando

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

Time to create page: 0.056 seconds
Powered by Kunena Forum