- Posts: 75
- Thank you received: 6
Hide filter name if non value is visible
6 years 9 months ago - 6 years 9 months ago #314490
by nico1979
Hide filter name if no field is visible was created 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
-- 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.
6 years 9 months ago #314491
by nicolas
Replied by nicolas on topic Hide filter name if non value is visible
Hi,
Well, there is no option for that.
That would require some development.
Well, there is no option for that.
That would require some development.
Please Log in or Create an account to join the conversation.
6 years 9 months ago #314520
by nico1979
Replied by nico1979 on topic Hide filter name if non value is visible
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){
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.
6 years 8 months ago #314525
by nicolas
Replied by nicolas on topic Hide filter name if non value is visible
Hi,
Yes, that's a solution if you're using checkboxes only for your filters.
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