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

#   How to make unit price to be only 2 decimal point

##

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

Less More

- Posts: 14
- Thank you received: 1
-
-

7 years 8 months ago [\#304340](#304340) by [razlie](/forum/user/57026-razlie "View razlie's Profile")  *[How to make unit price to be only 2 decimal point](/forum/19-hikamarket/897023-how-to-make-unit-price-to-be-only-2-decimal-point#304340 "-- HikaShop version -- : 4.0.2 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : Chrome  Hi, When I edit product, and then click load product data, the item unit price is automatically set to five decimal point. How to change it to only show 2 decimal point . I already change the Update updateTaxValueFields in order/show.php but it still not working. I change the tofix(2) but still it shows 5 decimal point.  Hope you can help me.")* was created by *[razlie](/forum/user/57026-razlie "View razlie's Profile")*

-- HikaShop version -- : 4.0.2
-- HikaMarket version -- : 3.0.0
-- Joomla version -- : 3.8.13
-- PHP version -- : 5.6.0
-- Browser(s) name and version -- : Chrome

Hi,
When I edit product, and then click load product data, the item unit price is automatically set to five decimal point. How to change it to only show 2 decimal point . I already change the Update updateTaxValueFields in order/show.php but it still not working. I change the tofix(2) but still it shows 5 decimal point.

Hope you can help me.

- [ ![ordermarket.png](/forum/attachment/46270) ](/forum/attachment/46270 "ordermarket.png") [ ](/forum/attachment/46270?download=1 "ordermarket.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

7 years 8 months ago [\#304344](#304344) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to make unit price to be only 2 decimal point](/forum/19-hikamarket/897023-how-to-make-unit-price-to-be-only-2-decimal-point#304344 "-- HikaShop version -- : 4.0.2 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.8.13 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : Chrome  Hi, When I edit product, and then click load product data, the item unit price is automatically set to five decimal point. How to change it to only show 2 decimal point . I already change the Update updateTaxValueFields in order/show.php but it still not working. I change the tofix(2) but still it shows 5 decimal point.  Hope you can help me.")*

Hello,

Prices are loaded directly from the database where HikaShop store them with 5 digits.
There is no option for that ; there is a huge difference with the price which can be displayed rounded and the real prices which are stored in the database.
Just like when you edit a product price in the front-end (or backend), the edition of item prices in the order are with all the possible digits (as in the backend).

Changing that would have unwanted side effects like, impacting existing orders when the price stored in the database do not feet perfectly on 2 digits

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODk3MDIzLWhvdy10by1tYWtlLXVuaXQtcHJpY2UtdG8tYmUtb25seS0yLWRlY2ltYWwtcG9pbnQ/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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.079 seconds

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