Price per unit weight - 3 decimal places

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 2 weeks ago #270823

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.30

Hi

I would like to change the price per unit weight to display 3 decimal places. Which file should I look in?



Regards
Trevor

Attachments:

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 2 weeks ago #270831

Hello,

That display is made in the view "product / listing_price".
But because the price is displayed via the currency helper (and his "format" function) ; the round is made directly in that function depending the settings of your currency.
It means that if you edit your currency to have more digits, it will impact every prices everything in your website.
So if you want to change the way that price is displayed ; you'll need some custom code to display the price manually and have your own rounding.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 2 weeks ago #270874

Thanks Jerome

We will only be working in one currency so it was easy to do.

regards
Trevor

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

Time to create page: 0.055 seconds
Powered by Kunena Forum