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

#   limit the display of number digits in the price

##

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

Less More

- Posts: 37
- Thank you received: 3
-
-

10 years 6 months ago [\#239451](#239451) by [Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")  *[limit the display of number digits in the price](/forum/19-hikamarket/884379-limit-the-display-of-number-digits-in-the-price#239451 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hello, how can I limit the display of number digits in the price in the front vendor panel?")* was created by *[Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")*

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0

Hello,
how can I limit the display of number digits in the price in the front vendor panel?
[ ![10&#95;2016-05-08.jpg](/forum/attachment/31278) ](/forum/attachment/31278 "10&#95;2016-05-08.jpg")

- [ ![10&#95;2016-05-08.jpg](/forum/attachment/31278) ](/forum/attachment/31278 "10&#95;2016-05-08.jpg") [ ](/forum/attachment/31278?download=1 "10&#95;2016-05-08.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg0Mzc5LWxpbWl0LXRoZS1kaXNwbGF5LW9mLW51bWJlci1kaWdpdHMtaW4tdGhlLXByaWNlP3RtcGw9bWFya2Rvd24=) 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: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

10 years 6 months ago [\#239454](#239454) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[limit the display of number digits in the price](/forum/19-hikamarket/884379-limit-the-display-of-number-digits-in-the-price#239454 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hello, how can I limit the display of number digits in the price in the front vendor panel?")*

Hi,

HikaShop have a limitation of 5 digits for the prices.
In HikaMarket you can set limitations for the vendor about the minimum price and the maximum price but you can't influence the number of digits.

If you have some taxes, the price with tax will be generally a rounded one, but the price without tax could have several digits and in that case, having 5 digits is essential.

You can see to customize the product edition view for the price edition part.
In your customization, you can see to remove the extra "0" digits (by converting the string into a float).

Regards,

---

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

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

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

Less More

- Posts: 37
- Thank you received: 3
-
-

10 years 6 months ago [\#239496](#239496) by [Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")  Replied by *[Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")* on topic *[limit the display of number digits in the price](/forum/19-hikamarket/884379-limit-the-display-of-number-digits-in-the-price#239496 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hello, how can I limit the display of number digits in the price in the front vendor panel?")*

Thank you Jerome,
I do not understand how I savsem remove extra display 5 digits

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg0Mzc5LWxpbWl0LXRoZS1kaXNwbGF5LW9mLW51bWJlci1kaWdpdHMtaW4tdGhlLXByaWNlP3RtcGw9bWFya2Rvd24=) 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: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

10 years 6 months ago [\#239513](#239513) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[limit the display of number digits in the price](/forum/19-hikamarket/884379-limit-the-display-of-number-digits-in-the-price#239513 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hello, how can I limit the display of number digits in the price in the front vendor panel?")*

Hi,

It's hard to give you a precise answer because depending your ACL configuration ; it could affect different parts in the view "productmarket / form_price".
But the idea is to display a number instead of a string.
Like in the view, you can find the display of the price value Code:

echo @$price-&gt;price_value;

And you can convert it into a float number before the display Code:

echo (float)hikamarket::toFloat(@$price-&gt;price_value);

And the extra digits won't be display.

Regards,

---

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

The following user(s) said Thank You: [Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")

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

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

Less More

- Posts: 37
- Thank you received: 3
-
-

10 years 6 months ago [\#239680](#239680) by [Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")  Replied by *[Ilya.bps](/forum/user/40127-ilya-bps "View Ilya.bps's Profile")* on topic *[limit the display of number digits in the price](/forum/19-hikamarket/884379-limit-the-display-of-number-digits-in-the-price#239680 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0  Hello, how can I limit the display of number digits in the price in the front vendor panel?")*

Thanks Jerome.

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

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