- Posts: 33
- Thank you received: 0
Different décimal number for unit price
8 years 8 months ago #289256
by dylis
Different décimal number for unit price was created by dylis
-- 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
-- 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.
8 years 8 months ago #289257
by nicolas
Replied by nicolas on topic Different décimal number for unit price
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.
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.
8 years 8 months ago #289273
by dylis
Replied by dylis on topic Different décimal number for unit price
I see,
didnt think about that, great!
didnt think about that, great!
Please Log in or Create an account to join the conversation.
Time to create page: 0.093 seconds