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

#   Request - Don't show filters for empty Values

##

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

Less More

- Posts: 43
- Thank you received: 3
-
-

12 years 2 weeks ago [\#177989](#177989) by [webconcept](/forum/user/30332-webconcept "View webconcept's Profile")  *[Request - Don't show filters for empty Values](/forum/45-filters-search/872752-request-dont-show-filters-for-empty-values#177989 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Fire Fox 32.0.3  Hi,  I just want to request if possible in next HikaShop Version to have some button that disables Filter to show empty fields.  I had to create a Field in each Personalized Field like &quot;Choose Value&quot; but it's empty, just the Title, this field is to use when a product don't have one characteristic even all the rest had, so if I don't have this field I had to choose some other that is wrong for visitors to see.  The problem is that this field is shown in the filters and everytime I update the hikashop component I have to go to administrator/components/com&#95;hikashop/classes/filters and add this  in line 1617  I remove the BR to, no need this, just CSS.  Thanks for all your help")* was created by *[webconcept](/forum/user/30332-webconcept "View webconcept's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Fire Fox 32.0.3

Hi,

I just want to request if possible in next HikaShop Version to have some button that disables Filter to show empty fields.

I had to create a Field in each Personalized Field like "Choose Value" but it's empty, just the Title, this field is to use when a product don't have one characteristic even all the rest had, so if I don't have this field I had to choose some other that is wrong for visitors to see.

The problem is that this field is shown in the filters and everytime I update the hikashop component I have to go to administrator/components/com_hikashop/classes/filters and add this
Code:

if(empty($val[0])) continue; $html.='&lt;span class="hikashop_filter_checkbox"&gt;'.$input.'&lt;label for="field_'.$filter-&gt;filter_id.'_'.$key.'_'.$divName.'"&gt;'.JText::_(JText::_($val[1])).'&lt;/label&gt;'.$deleteButton.'&lt;/span&gt;';

in line 1617

I remove the BR to, no need this, just CSS.

Thanks for all your help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3Mjc1Mi1yZXF1ZXN0LWRvbnQtc2hvdy1maWx0ZXJzLWZvci1lbXB0eS12YWx1ZXM/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: 86576
- Thank you received: 14320
-
-

12 years 2 weeks ago [\#178029](#178029) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Request - Don't show filters for empty Values](/forum/45-filters-search/872752-request-dont-show-filters-for-empty-values#178029 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Fire Fox 32.0.3  Hi,  I just want to request if possible in next HikaShop Version to have some button that disables Filter to show empty fields.  I had to create a Field in each Personalized Field like &quot;Choose Value&quot; but it's empty, just the Title, this field is to use when a product don't have one characteristic even all the rest had, so if I don't have this field I had to choose some other that is wrong for visitors to see.  The problem is that this field is shown in the filters and everytime I update the hikashop component I have to go to administrator/components/com&#95;hikashop/classes/filters and add this  in line 1617  I remove the BR to, no need this, just CSS.  Thanks for all your help")*

Hi,

That's not possible.
Other users have custom fields with an empty value for a real choice of their custom field that they are using so we can't just remove from the filter choices for everyone because you don't want it.
In that case, the solution is to use a class override :
[ www.hikashop.com/support/forum/product-c...php-file.html#149777](http://www.hikashop.com/support/forum/product-category-display/866821-where-is-the-filter-php-file.html#149777)

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

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

Less More

- Posts: 43
- Thank you received: 3
-
-

12 years 2 weeks ago [\#178312](#178312) by [webconcept](/forum/user/30332-webconcept "View webconcept's Profile")  Replied by *[webconcept](/forum/user/30332-webconcept "View webconcept's Profile")* on topic *[Request - Don't show filters for empty Values](/forum/45-filters-search/872752-request-dont-show-filters-for-empty-values#178312 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Fire Fox 32.0.3  Hi,  I just want to request if possible in next HikaShop Version to have some button that disables Filter to show empty fields.  I had to create a Field in each Personalized Field like &quot;Choose Value&quot; but it's empty, just the Title, this field is to use when a product don't have one characteristic even all the rest had, so if I don't have this field I had to choose some other that is wrong for visitors to see.  The problem is that this field is shown in the filters and everytime I update the hikashop component I have to go to administrator/components/com&#95;hikashop/classes/filters and add this  in line 1617  I remove the BR to, no need this, just CSS.  Thanks for all your help")*

Hi nicolas,

I think the Overwrite will be something like I'm doing because when I need to update I will always need to check the overwrites for different things in the code.

If you put a button in Configuration &gt; Functions &gt; Filters (don't know if it's the write spelling, mine is in a different language)
Just saying, disable empty values from filters so people like me can turn it on if needed. by default it could be showing everything.

Thanks again

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