[Skip to main content](#vessel-content)

#   customising filter module

##

- **[Bower](/forum/user/31321-bower "View Bower's Profile")**
- [![Bower's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31321-bower "View Bower's Profile") Topic Author
- [ Offline](/forum/user/31321-bower)

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 6 months ago [\#240680](#240680) by [Bower](/forum/user/31321-bower "View Bower's Profile")  *[customising filter module](/forum/45-filters-search/884629-customising-filter-module#240680 "-- url of the page with the problem -- : working locally -- HikaShop version -- : HikaShop 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7 -- Browser(s) name and version -- : firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : n/a  Hi I want to customise the filter module and make it into an accordion - was wondering where I could find the relevant file to do this myself?  Can only find the following code in the template override  so I need to know where $html can be found!  Thanks")* was created by *[Bower](/forum/user/31321-bower "View Bower's Profile")*

-- url of the page with the problem -- : working locally
-- HikaShop version -- : HikaShop 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7
-- Browser(s) name and version -- : firefox 46.0.1
-- Error-message(debug-mod must be tuned on) -- : n/a

Hi
I want to customise the filter module and make it into an accordion - was wondering where I could find the relevant file to do this myself?

Can only find the following code in the template override
Code:

&lt;div class="hikashop_filter_module"&gt; &lt;?php echo $html;?&gt; &lt;div style="clear:both;"&gt;&lt;/div&gt; &lt;/div&gt;

so I need to know where $html can be found!

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4NDYyOS1jdXN0b21pc2luZy1maWx0ZXItbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

10 years 6 months ago [\#240685](#240685) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customising filter module](/forum/45-filters-search/884629-customising-filter-module#240685 "-- url of the page with the problem -- : working locally -- HikaShop version -- : HikaShop 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7 -- Browser(s) name and version -- : firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : n/a  Hi I want to customise the filter module and make it into an accordion - was wondering where I could find the relevant file to do this myself?  Can only find the following code in the template override  so I need to know where $html can be found!  Thanks")*

Hi,

It's the file "filter" that you want to edit via the menu Display&gt;Views of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4NDYyOS1jdXN0b21pc2luZy1maWx0ZXItbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Bower](/forum/user/31321-bower "View Bower's Profile")**
- [![Bower's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31321-bower "View Bower's Profile") Topic Author
- [ Offline](/forum/user/31321-bower)

Less More

- Posts: 51
- Thank you received: 0
-
-

10 years 5 months ago [\#240874](#240874) by [Bower](/forum/user/31321-bower "View Bower's Profile")  Replied by *[Bower](/forum/user/31321-bower "View Bower's Profile")* on topic *[customising filter module](/forum/45-filters-search/884629-customising-filter-module#240874 "-- url of the page with the problem -- : working locally -- HikaShop version -- : HikaShop 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7 -- Browser(s) name and version -- : firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : n/a  Hi I want to customise the filter module and make it into an accordion - was wondering where I could find the relevant file to do this myself?  Can only find the following code in the template override  so I need to know where $html can be found!  Thanks")*

Ok - I got that!

Now I think I'm looking for the actual code which renders the checkboxes
Code:

&lt;?php echo '&lt;div class="hikashop_filter_'.$filters[$count]-&gt;filter_namekey.'"&gt;'.$html[$count].'&lt;/div&gt;'; ?&gt;

I want to be able to add some css classes to the following span tags in the output and to delete the &lt;br&gt;
Code:

&lt;div class="hikashop_filter_Country_1"&gt; &lt;span class="hikashop_filter_title"&gt;Country&lt;/span&gt; &lt;br&gt; &lt;span id="filter_values_container_Country_1_module_100" class="filter_values_container"&gt;

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4NDYyOS1jdXN0b21pc2luZy1maWx0ZXItbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

10 years 5 months ago [\#240887](#240887) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customising filter module](/forum/45-filters-search/884629-customising-filter-module#240887 "-- url of the page with the problem -- : working locally -- HikaShop version -- : HikaShop 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7 -- Browser(s) name and version -- : firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : n/a  Hi I want to customise the filter module and make it into an accordion - was wondering where I could find the relevant file to do this myself?  Can only find the following code in the template override  so I need to know where $html can be found!  Thanks")*

Hi,

In that case you would have to edit the file administrator/components/com_hikashop/classes/filter.php
But I don't see why you want to do that ?
There are already classes on them, so I would rather recommend to adapt your CSS to use these classes. That way, you wouldn't loose your extra classes in that file each time you update HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4NDYyOS1jdXN0b21pc2luZy1maWx0ZXItbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
