Hide filter name if non value is visible

  • Posts: 27
  • Thank you received: 1
  • Hikashop Business
4 years 3 months 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: 4 years 3 months ago by nico1979.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
4 years 3 months 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: 27
  • Thank you received: 1
  • Hikashop Business
4 years 3 months 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: 81539
  • Thank you received: 13069
  • MODERATOR
4 years 3 months 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.060 seconds
Powered by Kunena Forum