Skip to main content

Hide filter name if non value is visible

More
6 years 9 months ago - 6 years 9 months ago #314490 by nico1979
-- url of the page with the problem -- : www.erboristeriazambrini.it/i-prodotti-del-momento
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2.26
-- Browser(s) name and version -- : Safari, Chrome, Firefox, Opera, etc.

Hi,
If I set "Dinamic display" in the filter options, it is possible and correct that no fields are shown in the filter list on front end.
The problem is that, if no fields are shown, the filter name is still shown.
Is it possible to hide the filter name if no fields are shown?
Thank you.
Nico
Last edit: 6 years 9 months ago by nico1979.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #314491 by nicolas
Hi,

Well, there is no option for that.
That would require some development.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #314520 by nico1979
I've found the solution.
Change product/filter.php on line 160

FROM:
if(!empty($html[$count])){

TO:
if(!empty($html[$count]) && strpos(@$html[$count], 'checkbox') !== false){
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #314525 by nicolas
Hi,

Yes, that's a solution if you're using checkboxes only for your filters.

Please Log in or Create an account to join the conversation.

Time to create page: 0.266 seconds
Powered by Kunena Forum