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

#   Dynamic filter shpw all the options when no product is found.

##

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

Less More

- Posts: 282
- Thank you received: 42
-
-

5 years 8 months ago -  5 years 8 months ago [\#330001](#330001) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330001 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.3.27

Hi,

All the filters from my page are set to "Dynamic display: ON".
I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: **No products found.**
But also, the filter that shows the Author's, it will show all of them, is this how it should work?
I'm expecting that the filter to not show any of the authors.
And the same thinck is happening with all the filters that are set to Dynamic Display

- [ ![oxido&#95;filter&#95;dynamic.jpg](/forum/attachment/52055) ](/forum/attachment/52055 "...er&#95;dynamic.jpg") [ ](/forum/attachment/52055?download=1 "...er&#95;dynamic.jpg")
- [ ![oxido&#95;filter&#95;dynamic&#95;show&#95;all&#95;2021-02-24.jpg](/forum/attachment/52057) ](/forum/attachment/52057 "...2021-02-24.jpg") [ ](/forum/attachment/52057?download=1 "...2021-02-24.jpg")

Last edit: 5 years 8 months ago by [oxido](/forum/user/29793-oxido "View oxido's Profile").

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

5 years 8 months ago -  5 years 8 months ago [\#330007](#330007) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330007 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

Hello,

in order to better understand the situation can you provide these elements :
- An **Url link** to the issue.
- A **step by step** process in order to reproduce your issue
- your relative filter settings **screenshot**

Awaiting your returns to be able to progress on your subject.
regards

Last edit: 5 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 282
- Thank you received: 42
-
-

5 years 8 months ago [\#330024](#330024) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330024 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

- This message contains confidential information

- From the first filter select the last checkbox (500,00 lei and above), that is the price.
There is no product with the price of 500 or above, so theresult it will be "No products found".
In the second filter "Autori", witch it means "Authors" you will see the entire list, but in back-end, only 2 Authors are set for 2 or 3 products.

Thank you.

- [ ![oxido&#95;price&#95;filter.jpg](/forum/attachment/52066) ](/forum/attachment/52066 "...ice&#95;filter.jpg") [ ](/forum/attachment/52066?download=1 "...ice&#95;filter.jpg")
- [ ![oxido&#95;authors&#95;filter.jpg](/forum/attachment/52067) ](/forum/attachment/52067 "...ors&#95;filter.jpg") [ ](/forum/attachment/52067?download=1 "...ors&#95;filter.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMjAxNS1keW5hbWljLWZpbHRlci1zaHB3LWFsbC10aGUtb3B0aW9ucy13aGVuLW5vLXByb2R1Y3QtaXMtZm91bmQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

5 years 8 months ago -  5 years 8 months ago [\#330035](#330035) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330035 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

Hi,

I've made a patch for that. Please download the filter.zip file attached and replace the file administrator/components/com_hikashop/classes/filter.php by the file in the zip and it should hopefully change that behavior to work like you want.
Please report the result of the test so that we can add that for the next version of HikaShop on our end.

Last edit: 5 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 282
- Thank you received: 42
-
-

5 years 8 months ago [\#330057](#330057) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330057 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

The filter behaves the same.
I made sure I put the file where it should be, cleared the cache and tried several times.

- [ ![download1.jpg](/forum/attachment/52072) ](/forum/attachment/52072 "download1.jpg") [ ](/forum/attachment/52072?download=1 "download1.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMjAxNS1keW5hbWljLWZpbHRlci1zaHB3LWFsbC10aGUtb3B0aW9ucy13aGVuLW5vLXByb2R1Y3QtaXMtZm91bmQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

5 years 8 months ago [\#330059](#330059) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330059 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

Hi,

Then I would need to do some debugging on your website to check on the situation and better understand what's going on.
Could you provide a FTP access via our contact form along with a link to this thread for reference ?
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMjAxNS1keW5hbWljLWZpbHRlci1zaHB3LWFsbC10aGUtb3B0aW9ucy13aGVuLW5vLXByb2R1Y3QtaXMtZm91bmQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

5 years 8 months ago [\#330102](#330102) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330102 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

Hi,

I got your backend access but I have a hard time adding debug code to the filter system. It seems that there is some caching system which messes with my tests and I'm not sure how your filters are configured.
Could you provide a backend access in the same manner so that I could check your backend settings too ?

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

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

Less More

- Posts: 282
- Thank you received: 42
-
-

5 years 8 months ago [\#330108](#330108) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330108 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

I have create a new menu 'This message contains confidential information

"
This new menu use a normal template, the problem with the caching it's because of the template I use, gantry 5

This message contains confidential information

The account is Administrator with access to Hikashop.

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

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

Less More

- Posts: 282
- Thank you received: 42
-
-

5 years 8 months ago [\#330140](#330140) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330140 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

You can also find jdump and jump for hikashop installed in plugins

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMjAxNS1keW5hbWljLWZpbHRlci1zaHB3LWFsbC10aGUtb3B0aW9ucy13aGVuLW5vLXByb2R1Y3QtaXMtZm91bmQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

5 years 7 months ago [\#330210](#330210) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dynamic filter shpw all the options when no product is found.](/forum/45-filters-search/902015-dynamic-filter-shpw-all-the-options-when-no-product-is-found#330210 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.3.27  Hi,  All the filters from my page are set to &quot;Dynamic display: ON&quot;. I have a filter that show a list of checkbox's with Authors and is working well until I use another filter and that filter doesnt applay to any product, so the result it is: No products found. But also, the filter that shows the Author's, it will show all of them, is this how it should work? I'm expecting that the filter to not show any of the authors. And the same thinck is happening with all the filters that are set to Dynamic Display")*

Hi,

Thanks for the access.
The patch I had made was almost working.
I had to change : Code:

if(!empty($datas['products']) &amp;&amp; (empty($values) &#124;&#124; !in_array($temp[0],$values))) {

to: Code:

if(isset($datas['products']) &amp;&amp; (empty($values) &#124;&#124; !in_array($temp[0],$values))) {

and then it now seems to be working fine.
We'll add the modifications on our end for the next version of HikaShop.

Note that you still have caching on your website. However, it's apparently not a page cache, but a PHP file cache I think. So it's something at the server level like opcache. So I had to wait a few minutes between each modification to the file to see the change on the page.

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

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

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

[](#top)
