- Posts: 91
- Thank you received: 5
Decrease decimal numbers on price edit
7 years 11 months ago #299411
by bolando
Decrease decimal numbers on price edit was created by bolando
-- 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
-- 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
Please Log in or Create an account to join the conversation.
7 years 11 months ago #299414
by nicolas
Replied by nicolas on topic Decrease decimal numbers on price edit
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
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.165 seconds