Different décimal number for unit price

  • Posts: 33
  • Thank you received: 0
6 years 8 months ago #289256

-- HikaShop version -- : 3.3.0 business
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.1.14
-- Browser(s) name and version -- : Firefox 58.0.2 (64 bits)

Hi,

Im selling products in big quantities but with very small unit prices, so the total order needs only 2 decimal, but I understand that it's legaly mandatory to display the unit price in invoice, and so then I need to display it with 6 decimal (if not unit price x quantity will not be equal to total price displayed)

so, How can I set the unit price to be displayed with a different decimal number (6 decimals) from all others prices (2 decimals) ?

Thanks

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
6 years 8 months ago #289257

Hi,

You'll have to configure the different view files where you want to change the unit price display via the menu Display>Views:
www.hikashop.com/support/documentation/1...-display.html#layout
There, when the format() function is called to display the unit price, you'll want to force the second parameter to the id of a new currency that you'll create in the menu System>Currencies and configure to display more decimals.

The following user(s) said Thank You: dylis

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

  • Posts: 33
  • Thank you received: 0
6 years 8 months ago #289273

I see,

didnt think about that, great!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum