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

#   Selecting the close button in the filter module

##

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

Less More

- Posts: 26
- Thank you received: 2
-
-

9 years 10 months ago [\#257343](#257343) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#257343 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")* was created by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6.23

I have 2 menu's for my shop; a category listing and a product listing.

Normally the category listing is used.
The product listing is used if I want to search for a product code or description. Working fine.
When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).

Is it possible to redirect the site to the category listing instead?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4Nzg4NS1zZWxlY3RpbmctdGhlLWNsb3NlLWJ1dHRvbi1pbi10aGUtZmlsdGVyLW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

9 years 10 months ago -  9 years 7 months ago [\#257373](#257373) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#257373 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Hi,

There is no option to do that.
With the next version of hikaShop (the 3.0 which should be out next month), you'll be able to edit the file "listing" of the view "product" via the menu Display&gt;Views and add the code below at the top and it will work: Code:

&lt;?php if($_REQUEST['ctrl']=='product' &amp;&amp; !$this-&gt;module &amp;&amp; empty($this-&gt;filter_set)){ $app = JFactory::getApplication(); $app-&gt;redirect('http://mywebsite.com/link/to/my/categories/listing'); } ?&gt;

with the current version the variable $this-&gt;filter_set is not yet available in that view so the code won't work.

Last edit: 9 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")

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

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

Less More

- Posts: 26
- Thank you received: 2
-
-

9 years 10 months ago [\#257410](#257410) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  Replied by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#257410 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Thanks for the answer. Will have to be patient for some weeks (no problem).

Will react on result when the new version is out.

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

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

Less More

- Posts: 26
- Thank you received: 2
-
-

9 years 7 months ago -  9 years 7 months ago [\#265858](#265858) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  Replied by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#265858 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Nicolas,
It took some time, but finaly got the new version of HikaShop and changed the file.
It works the way I wanted.

By the way, you forgot an closing "}" at the end of your code. :side:

Last edit: 9 years 7 months ago by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile").

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

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

Less More

- Posts: 26
- Thank you received: 2
-
-

8 years 10 months ago [\#285052](#285052) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  Replied by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#285052 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

On a desktop the filter module is shown left from the main site content. On a smaller device (tablet / phone) the module is shown below the main site content.

If the filter option is used on a tablet / phone this does not work.
Actually in the file classes/filter.php on line 508 the filter value is not determined, so nothing happens when I enter a filter value and try to filter the result.

Is this familiar to you ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4Nzg4NS1zZWxlY3RpbmctdGhlLWNsb3NlLWJ1dHRvbi1pbi10aGUtZmlsdGVyLW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

8 years 10 months ago [\#285053](#285053) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#285053 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Hi,

No. Could you provide a link to the page with the issue so that we could look at the situation ?
Also, which version of HikaShop are you using now ?

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

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

Less More

- Posts: 26
- Thank you received: 2
-
-

8 years 10 months ago -  8 years 10 months ago [\#285121](#285121) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  Replied by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#285121 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Nicolas,
I am using version 3.2.12 of the Business Edition.
The URL of the site (in Dutch) is [ www.volvokv.nl](http://www.volvokv.nl); the URL of the webshop is [ www.volvokv.nl/onderdelenshop](https://www.volvokv.nl/onderdelenshop)

In order to see the filter module you have to login to the site (account send by Private Mail).
The public search module is a regular Joomla search.

A good value to search for is 1003.

Thanks in advance

Last edit: 8 years 10 months ago by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4Nzg4NS1zZWxlY3RpbmctdGhlLWNsb3NlLWJ1dHRvbi1pbi10aGUtZmlsdGVyLW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

8 years 10 months ago [\#285127](#285127) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#285127 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Hi,

The issue is that you have the same filter module displayed twice on the page:
[ monosnap.com/file/LuCUw9GO4vfyqOIVm7gikrEZG3kKdn](https://monosnap.com/file/LuCUw9GO4vfyqOIVm7gikrEZG3kKdn)
And since they are the same module with the same id, when you click on the submit button it always validates the last one on the page.
When you are on a desktop, you get to see and use the last one so it works fine.
But when you are on a mobile, you get to see and use the first one even though it's the last one that is submited to the website and that's why it doesn't do anything since the text you entered is not in the data sent.

So the problem is actually not the module. It's the way you/your template duplicated the display of the modules on the page to handle the responsive display of the page.
I would rather recommend to use two different position with two different sets of module instances. That would avoid duplicated ID in your HTML and thus avoid such conflicts.
Or use only one set of modules, and improve your CSS to rearrange the divs on the page without the need for duplication of the elements.

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

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

Less More

- Posts: 26
- Thank you received: 2
-
-

8 years 10 months ago [\#285162](#285162) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  Replied by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#285162 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Nicolas,

Problem is clear to me now.
Will work on the solution as provided by you.

Thanks for the quick response!

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

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

Less More

- Posts: 26
- Thank you received: 2
-
-

7 years 1 month ago [\#310622](#310622) by [Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")  Replied by *[Luchen6](/forum/user/29573-luchen6 "View Luchen6's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#310622 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

When updating Hikashop 4.1.0 to 4.2.1 the code for resetting the filter is not working anymore.

Is there a change in the code?
What happens is that the variable $this-&gt;filter_set is not resetted after emptying the search value.

Could you pleas have a look on this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4Nzg4NS1zZWxlY3RpbmctdGhlLWNsb3NlLWJ1dHRvbi1pbi10aGUtZmlsdGVyLW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

7 years 1 month ago [\#310626](#310626) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting the close button in the filter module](/forum/45-filters-search/887885-selecting-the-close-button-in-the-filter-module#310626 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.23  I have 2 menu's for my shop; a category listing and a product listing.  Normally the category listing is used. The product listing is used if I want to search for a product code or description. Working fine. When I select the close button in the filter module the filtering is cleared, but the site shows an overview of all the products (after some time).  Is it possible to redirect the site to the category listing instead?")*

Hi,

Yes, we had to do many changes in some of the view files of the product view in order to support AJAX filters. So if you have view overrides on product / filter.php or product / listing.php or product / listing_div.php I'm afraid you'll have to redo the override with the new version of the view file in order to get all the modifications for the filters to work properly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4Nzg4NS1zZWxlY3RpbmctdGhlLWNsb3NlLWJ1dHRvbi1pbi10aGUtZmlsdGVyLW1vZHVsZT90bXBsPW1hcmtkb3du) 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.096 seconds

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

[](#top)
