Accardion like filter display

  • Posts: 43
  • Thank you received: 3
1 month 3 weeks ago #363611

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.1.13
-- Browser(s) name and version -- : Firefox dev

Hi,
Hope you do great,
Is it possible to display each filter accordion like? For example, the title of filter display and by click on it its content will be open and display.
Thanks in advance

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
1 month 2 weeks ago #363612

Hi,

It's actually quite easy, with pure HTML to have an expand/collapse system with the summary / details tags :
stackoverflow.com/questions/15095933/pur...-collapse-expand-div
For example:
jsfiddle.net/thurstanh/emtAm/2/
However, the code displaying the title of the filter and the filter itself is not easily accessible to be able to change the HTML elements to use summary / details.
You'll have to make an override of the class filter:
www.hikashop.com/support/documentation/6...ntation.html#classes
in order to override the method "titlePosition" for the class of your filter type. You can base yourself on the titlePosition method of the class hikashopFilterTypeClass in the filter class file.
So, it's possible, but it requires PHP developer skills.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum