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

#   Price slider 4 decimal places

##

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367322](#367322) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367322 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")* was created by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")*

-- HikaShop version -- : 5.1.6
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.2.28
-- Browser(s) name and version -- : Firefox 1385.0.4
-- Error-message(debug-mod must be tuned on) -- : none

Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?

Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?

If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.

I did not change anything in administrator/components/com_hikashop/classes/filter.php

For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDk0NTgtcHJpY2Utc2xpZGVyLTQtZGVjaW1hbC1wbGFjZXM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

1 year 5 months ago [\#367329](#367329) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367329 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Hi,

Try changing the line: Code:

'&lt;input class="slider_input slider_input_start" id="slider_'.$filter-&gt;filter_namekey.'_'.$divName.'_start" value="'.$minVal.'"/&gt;'.

to: Code:

'&lt;input type="number" step="0.01" class="slider_input slider_input_start" id="slider_'.$filter-&gt;filter_namekey.'_'.$divName.'_start" value="'.$minVal.'"/&gt;'.

and the line: Code:

'&lt;input class="slider_input slider_input_end" id="slider_'.$filter-&gt;filter_namekey.'_'.$divName.'_end" value="'.$maxVal.'"/&gt;'.

to: Code:

'&lt;input type="number" step="0.01" class="slider_input slider_input_end" id="slider_'.$filter-&gt;filter_namekey.'_'.$divName.'_end" value="'.$maxVal.'"/&gt;'.

in the file administrator/components/com_hikashop/classes/filter.php
That should help.
Please let us know how it goes. If it works fine, we'll include the change on our end for the next version of HikaShop.

The following user(s) said Thank You: [EnerW](/forum/user/38634-enerw "View EnerW's Profile")

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367332](#367332) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367332 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Evening Nicolas,

well that was a quick fix, it does work as intended 2 decimal places and a comma thank you!

The only odd thing that I have left is that if you assign the price filter to a main category without products or prices, or an empty category, it will still show the price slider with a strange price range, but any other filter item like brand or colour is not displayed. The sub categories of that main category will display the price slider and the other filter items like brand and colour correctly, as long as there are items with prices to display.

In the above situation the nouislider.min.css will load after the site template.css so any css override will be lost or you need to use !important (not a fan). The only neat option is to not use the main category and assign each sub category individually to the price filter or use Regular Labs Conditions paid version to block the display of the module to the main category.

On pages with products and prices the nouislider.min.css will load before the site template.css so changes to the display of the slider will be possible.

I think it's the last 1% that will take 99% of the effort to get it perfect ![;-)](/media/kunena/emoticons/24.png ";-)")

So thank you again for the fix!

Regards, Rene

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDk0NTgtcHJpY2Utc2xpZGVyLTQtZGVjaW1hbC1wbGFjZXM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

1 year 5 months ago [\#367336](#367336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367336 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Hi,

Try changing the line: Code:

$cursorMax=1000;

to: Code:

return '';

in the same file. It should hopefully not display the filter when no products is available on the current listing.

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367342](#367342) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367342 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Morning Nicolas,

there are 3 positions with $cursorMax=1000; (line 2592 and lower), I only need to change the first one?

from:

}else{
$cursorMax=1000;
}

to:

}else{
return '';
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDk0NTgtcHJpY2Utc2xpZGVyLTQtZGVjaW1hbC1wbGFjZXM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

1 year 5 months ago [\#367344](#367344) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367344 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Yes, that's the one.

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367352](#367352) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367352 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Did test it early on, not really working. The module will still display with the filter button -&gt; [ 84.26.189.171:8195/webshop/category/weerstanden](http://84.26.189.171:8195/webshop/category/weerstanden)

If you click it it will display some unrelated prices.

Not sure if it is worth your time to put more effort in this. In the final version I will not display the empty sub-categories and I can suppress the main category.

- [ ![filter-3A.png](/forum/attachment/60557) ](/forum/attachment/60557 "filter-3A.png") [ ](/forum/attachment/60557?download=1 "filter-3A.png")
- [ ![filter-3B.png](/forum/attachment/60558) ](/forum/attachment/60558 "filter-3B.png") [ ](/forum/attachment/60558?download=1 "filter-3B.png")

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367355](#367355) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367355 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Oeps, did check on mobile view and there it is working with the last modification. I do use the recently viewed and carousel modules in de desktop view but not on mobile.

So it will display the correct filter module on the pages with items and prices but not on pages without.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDk0NTgtcHJpY2Utc2xpZGVyLTQtZGVjaW1hbC1wbGFjZXM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

1 year 5 months ago [\#367354](#367354) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367354 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Hi,

Well, I would need to look deeper into it, with backend and FTP access.
If that's not needed for you, we can leave it at that.
We can always revisit the issue in the future if necessary.

The following user(s) said Thank You: [EnerW](/forum/user/38634-enerw "View EnerW's Profile")

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367385](#367385) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367385 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Leave it for now, if I use Chromium there are 4 decimal places again but not in Firefox. If I use my phone (Pixel 7) with Firefox 2 decimal places, Google Chrome 4 decimal places and a decimal point.

Thank you for the great support!

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

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago [\#367453](#367453) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367453 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Afternoon Nicolas,

had some time this morning and did read up on noUiSlider and Wnumb.

If you change line 2744 in filter.php from:

$value = 'parseFloat(values[handle]).toFixed('.(int)$currencies[$currency_id]-&gt;currency_locale.')';

to:

$value = 'parseFloat(values[handle]).toFixed(2)';

You get the 2 decimals instead of 4 from Hikashop itself, regardless of the type of browser you use.

As far as I can see code from line 2756 and lower with the formatting settings is not passed on to NoUiSlider and should also be changed, but I did not spend time on that.

else {
$options = '[true, true]';
$format = null;
if(in_array($filter-&gt;filter_data, array('price', 'b.product_sort_price'))) {
$format = array(
'mark' =&gt; '.',
'thousand' =&gt; ' ',
'prefix' =&gt; '',
'suffix' =&gt; $currency,
'decimals' =&gt; '2'
);
I did remove the previous changes to filter.php but I suppose that I need to change filter.php on a Hikashop update.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDk0NTgtcHJpY2Utc2xpZGVyLTQtZGVjaW1hbC1wbGFjZXM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

1 year 5 months ago [\#367454](#367454) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367454 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Hi,

If that's the case, then it means the problem is that you configured your currency to have 4 decimals instead of 2 in the System&gt;Currencies menu.
So please check there.

The following user(s) said Thank You: [EnerW](/forum/user/38634-enerw "View EnerW's Profile")

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

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

Less More

- Posts: 101
- Thank you received: 8
-
-

1 year 5 months ago -  1 year 5 months ago [\#367464](#367464) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367464 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

Evening Nicolas,

yes indeed International fractional digits was set to 4 and Local fractional digits was set to 2. No idea why since it has been this way since version 2.6 and only became a problem for me with 5.1.6 with the changed code in filter.php

In the end there are no changes needed at all, so sorry for wasting your time ;-(

Regards, Rene

Last edit: 1 year 5 months ago by [EnerW](/forum/user/38634-enerw "View EnerW's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDk0NTgtcHJpY2Utc2xpZGVyLTQtZGVjaW1hbC1wbGFjZXM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

1 year 5 months ago [\#367465](#367465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price slider 4 decimal places](/forum/26-product-category-display/909458-price-slider-4-decimal-places#367465 "-- HikaShop version -- : 5.1.6 -- Joomla version -- : 5.3.0 -- PHP version -- : 8.2.28 -- Browser(s) name and version -- : Firefox 1385.0.4 -- Error-message(debug-mod must be tuned on) -- : none  Maybe I did tweak things to much but my cursor price slider, with or without input fields, has 4 decimal places any idea how to change that to 2 decimal places?  Also the decimal separator is a dot (.) not a comma (,) it’s always been this way but can that be changed as well?  If I set the use of the input fields to “No” and change the format for the cursors label it still will display the the dot and not the comma and the decimal places setting does not have any effect.  I did not change anything in administrator/components/com&#95;hikashop/classes/filter.php  For some items I did make some changes (custom field) to display 3 decimal places, but that did not effect the slider decimal places display in Hikashop 4.2.2.")*

No worries ! I'm glad it works for you ![:)](/media/kunena/emoticons/3.png ":)")

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