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

#   Cursor Filter JQuery values

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 7 months ago [\#44615](#44615) by [lenki](/forum/user/6508-lenki "View lenki's Profile")  *[Cursor Filter JQuery values](/forum/3-bug-report/44615-cursor-filter-jquery-values#44615 "Hi,  I am not 100% sure, but I think you might have a bug in the way you pass values to the jQuery script of cursor filter ($minVal and $maxVal). the values get filtered correctly, but they do not display well. The minimum value sets to 0 and the maximum sets to the $minVal. I checked the filter class and noticed that you use &quot;explode(' - ',$values)&quot;, but the $values are already divided in array. When I uncomment rows 2445 - 2449 (version 1.5.7), everything works perfect.  However I must tell you, that this is really a great script. I really appretatiate the API functionality, which makes the cart so customisable without loosing the possibility to update:o)  Best Regards, Lenka")* was created by *[lenki](/forum/user/6508-lenki "View lenki's Profile")*

Hi,

I am not 100% sure, but I think you might have a bug in the way you pass values to the jQuery script of cursor filter ($minVal and $maxVal). the values get filtered correctly, but they do not display well. The minimum value sets to 0 and the maximum sets to the $minVal. I checked the filter class and noticed that you use "explode(' - ',$values)", but the $values are already divided in array. When I uncomment rows 2445 - 2449 (version 1.5.7), everything works perfect.

However I must tell you, that this is really a great script. I really appretatiate the API functionality, which makes the cart so customisable without loosing the possibility to update:o)

Best Regards,
Lenka

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80NDYxNS1jdXJzb3ItZmlsdGVyLWpxdWVyeS12YWx1ZXM/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: 86541
- Thank you received: 14304
-
-

14 years 7 months ago [\#44776](#44776) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cursor Filter JQuery values](/forum/3-bug-report/44615-cursor-filter-jquery-values#44776 "Hi,  I am not 100% sure, but I think you might have a bug in the way you pass values to the jQuery script of cursor filter ($minVal and $maxVal). the values get filtered correctly, but they do not display well. The minimum value sets to 0 and the maximum sets to the $minVal. I checked the filter class and noticed that you use &quot;explode(' - ',$values)&quot;, but the $values are already divided in array. When I uncomment rows 2445 - 2449 (version 1.5.7), everything works perfect.  However I must tell you, that this is really a great script. I really appretatiate the API functionality, which makes the cart so customisable without loosing the possibility to update:o)  Best Regards, Lenka")*

Thanks for the feedback.

I think that changing the code: Code:

if(( isset($data) &amp;&amp; !in_array($data,array(" ",'')))){ $data=explode(' - ',$data); $minVal=(int)@$data[0]; $maxVal=(int)@$data[1]; }

to Code:

if( isset($data) &amp;&amp; (is_array($data) &#124;&#124; !in_array($data,array(" ",'')))){ if(!is_array($data)){ $data=explode(' - ',$data); } $minVal=(int)@$data[0]; $maxVal=(int)@$data[1]; }

should handle all the cases and solve the problem too in your case.

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

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

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