[Skip to main content](#vessel-content)

#   Different décimal number for unit price

##

- **[dylis](/forum/user/4744-dylis "View dylis's Profile")**
- [![dylis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4744-dylis "View dylis's Profile") Topic Author
- [ Offline](/forum/user/4744-dylis)

Less More

- Posts: 33
- Thank you received: 0
-
-

8 years 8 months ago [\#289256](#289256) by [dylis](/forum/user/4744-dylis "View dylis's Profile")  *[Different décimal number for unit price](/forum/27-checkout/894047-different-decimal-number-for-unit-price#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")* was created by *[dylis](/forum/user/4744-dylis "View dylis's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDA0Ny1kaWZmZXJlbnQtZGVjaW1hbC1udW1iZXItZm9yLXVuaXQtcHJpY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 8 months ago [\#289257](#289257) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different décimal number for unit price](/forum/27-checkout/894047-different-decimal-number-for-unit-price#289257 "-- 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")*

Hi,

You'll have to configure the different view files where you want to change the unit price display via the menu Display&gt;Views:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-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&gt;Currencies and configure to display more decimals.

The following user(s) said Thank You: [dylis](/forum/user/4744-dylis "View dylis's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDA0Ny1kaWZmZXJlbnQtZGVjaW1hbC1udW1iZXItZm9yLXVuaXQtcHJpY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dylis](/forum/user/4744-dylis "View dylis's Profile")**
- [![dylis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4744-dylis "View dylis's Profile") Topic Author
- [ Offline](/forum/user/4744-dylis)

Less More

- Posts: 33
- Thank you received: 0
-
-

8 years 8 months ago [\#289273](#289273) by [dylis](/forum/user/4744-dylis "View dylis's Profile")  Replied by *[dylis](/forum/user/4744-dylis "View dylis's Profile")* on topic *[Different décimal number for unit price](/forum/27-checkout/894047-different-decimal-number-for-unit-price#289273 "-- 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")*

I see,

didnt think about that, great!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDA0Ny1kaWZmZXJlbnQtZGVjaW1hbC1udW1iZXItZm9yLXVuaXQtcHJpY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.104 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
