Hide filter name if non value is visible

  • Posts: 6
  • Thank you received: 1
2 weeks 3 days ago #314490

-- 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: 2 weeks 3 days ago by nico1979.

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

  • Posts: 67916
  • Thank you received: 10111
  • MODERATOR
2 weeks 2 days ago #314491

Hi,

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

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

  • Posts: 6
  • Thank you received: 1
2 weeks 2 days ago #314520

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.

  • Posts: 67916
  • Thank you received: 10111
  • MODERATOR
2 weeks 1 day ago #314525

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.058 seconds
Powered by Kunena Forum