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

#   product price restriction decimal limit

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 7 months ago [\#331672](#331672) by [oiiahchai](/forum/user/60921-oiiahchai "View oiiahchai's Profile")  *[product price restriction decimal limit](/forum/26-product-category-display/902365-product-price-restriction-decimal-limit#331672 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  Hello, I need help how to set the product price restriction with more then 5 decimal ? Example 0.00001 is work fine, 0.000001 will become 0. Thank you.")* was created by *[oiiahchai](/forum/user/60921-oiiahchai "View oiiahchai's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3

Hello, I need help how to set the product price restriction with more then 5 decimal ? Example 0.00001 is work fine, 0.000001 will become 0.
Thank you.

- [ ![Capture.JPG](/forum/attachment/52476) ](/forum/attachment/52476 "Capture.JPG") [ ](/forum/attachment/52476?download=1 "Capture.JPG")
- [ ![2.JPG](/forum/attachment/52477) ](/forum/attachment/52477 "2.JPG") [ ](/forum/attachment/52477?download=1 "2.JPG")
- [ ![1.JPG](/forum/attachment/52478) ](/forum/attachment/52478 "1.JPG") [ ](/forum/attachment/52478?download=1 "1.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIzNjUtcHJvZHVjdC1wcmljZS1yZXN0cmljdGlvbi1kZWNpbWFsLWxpbWl0P3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

5 years 7 months ago [\#331675](#331675) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[product price restriction decimal limit](/forum/26-product-category-display/902365-product-price-restriction-decimal-limit#331675 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  Hello, I need help how to set the product price restriction with more then 5 decimal ? Example 0.00001 is work fine, 0.000001 will become 0. Thank you.")*

Hi,

Prices indeed only support 5 decimals by default.
To change that, you'll have to edit the table hikashop_price via your PHPMyAdmin and edit the options of the "price_value" column to change the number of decimals:
[ www.tutorialspoint.com/how-to-specify-de...ase-using-phpmyadmin](https://www.tutorialspoint.com/how-to-specify-decimal-precision-and-scale-number-in-mysql-database-using-phpmyadmin)
Also, note that in the settings of your currency, you can configure the number of decimals which will be applied when displaying prices in that currency. So I also recommend you to check the number of decimals setting of your currency in the menu System&gt;Currencies.

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

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 7 months ago [\#332086](#332086) by [oiiahchai](/forum/user/60921-oiiahchai "View oiiahchai's Profile")  Replied by *[oiiahchai](/forum/user/60921-oiiahchai "View oiiahchai's Profile")* on topic *[product price restriction decimal limit](/forum/26-product-category-display/902365-product-price-restriction-decimal-limit#332086 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  Hello, I need help how to set the product price restriction with more then 5 decimal ? Example 0.00001 is work fine, 0.000001 will become 0. Thank you.")*

Thank you very much.  [ ![Capture&#95;2021-04-27.JPG](/forum/attachment/52578) ](/forum/attachment/52578 "...2021-04-27.JPG")

- [ ![Capture&#95;2021-04-27.JPG](/forum/attachment/52578) ](/forum/attachment/52578 "...2021-04-27.JPG") [ ](/forum/attachment/52578?download=1 "...2021-04-27.JPG")

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 6 months ago [\#332435](#332435) by [oiiahchai](/forum/user/60921-oiiahchai "View oiiahchai's Profile")  Replied by *[oiiahchai](/forum/user/60921-oiiahchai "View oiiahchai's Profile")* on topic *[product price restriction decimal limit](/forum/26-product-category-display/902365-product-price-restriction-decimal-limit#332435 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  Hello, I need help how to set the product price restriction with more then 5 decimal ? Example 0.00001 is work fine, 0.000001 will become 0. Thank you.")*

The order process is working fine with small unit price product. Amount show correctly in cart.
However after some test I found that the display in order detail and order list will show 0.0000000000
I did set the currency decimal to 10.
[ ![cart.JPG](/forum/attachment/52681) ](/forum/attachment/52681 "cart.JPG")

[ ![productunitprice.JPG](/forum/attachment/52683) ](/forum/attachment/52683 "...tunitprice.JPG")

[ ![orderdetail.JPG](/forum/attachment/52682) ](/forum/attachment/52682 "orderdetail.JPG")

[ ![orderlist.JPG](/forum/attachment/52684) ](/forum/attachment/52684 "orderlist.JPG")

- [ ![cart.JPG](/forum/attachment/52681) ](/forum/attachment/52681 "cart.JPG") [ ](/forum/attachment/52681?download=1 "cart.JPG")
- [ ![orderdetail.JPG](/forum/attachment/52682) ](/forum/attachment/52682 "orderdetail.JPG") [ ](/forum/attachment/52682?download=1 "orderdetail.JPG")
- [ ![productunitprice.JPG](/forum/attachment/52683) ](/forum/attachment/52683 "...tunitprice.JPG") [ ](/forum/attachment/52683?download=1 "...tunitprice.JPG")
- [ ![orderlist.JPG](/forum/attachment/52684) ](/forum/attachment/52684 "orderlist.JPG") [ ](/forum/attachment/52684?download=1 "orderlist.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIzNjUtcHJvZHVjdC1wcmljZS1yZXN0cmljdGlvbi1kZWNpbWFsLWxpbWl0P3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

5 years 6 months ago [\#332442](#332442) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[product price restriction decimal limit](/forum/26-product-category-display/902365-product-price-restriction-decimal-limit#332442 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  Hello, I need help how to set the product price restriction with more then 5 decimal ? Example 0.00001 is work fine, 0.000001 will become 0. Thank you.")*

Hi,

Yes. That comes from the number of decimal setting of your currency.
This defines how many decimals you want to use for the display of the prices. Since you configured 10 in there, you'll get 10 decimals for all the prices.
There is no easy way to make the display of the number of decimals dynamic based on each price. That would require some complex code to be written in the file administrator/components/com_hikashop/classes/currency.php in the format function to dynamically adapt the number of decimals based on the trailing zeros.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIzNjUtcHJvZHVjdC1wcmljZS1yZXN0cmljdGlvbi1kZWNpbWFsLWxpbWl0P3RtcGw9bWFya2Rvd24=) 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.076 seconds

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