- Posts: 9
- Thank you received: 0
reset on category change
- hanibaltrs
-
Topic Author
- Offline
Less
More
12 years 7 months ago #150377
by hanibaltrs
reset on category change was created by hanibaltrs
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5
-- PHP version -- : 5.x.x
hi i would like to make a filter reset on category change where can i make the changes ? what changes do i have to make ?
could it be an easy javascript called on page load ?
-- Joomla version -- : 2.5
-- PHP version -- : 5.x.x
hi i would like to make a filter reset on category change where can i make the changes ? what changes do i have to make ?
could it be an easy javascript called on page load ?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 7 months ago #150437
by Mohamed Thelji
Replied by Mohamed Thelji on topic reset on category change
Hello,
The solution will probably be to set the "Show reset button" option of the page "Hikashop->System->Configuration->Features->'Filter'" to YES.
The solution will probably be to set the "Show reset button" option of the page "Hikashop->System->Configuration->Features->'Filter'" to YES.
Please Log in or Create an account to join the conversation.
- hanibaltrs
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
12 years 7 months ago #150467
by hanibaltrs
Replied by hanibaltrs on topic reset on category change
Ok i know about but this is a manual resetand im looking for auto-redet javascript on Productscategory change
Please Log in or Create an account to join the conversation.
12 years 7 months ago #150591
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic reset on category change
Hi,
Like that it won't be very easy.
The filters are stored in the user session, so if you want to reset them, you have to modify the data in the Joomla user session.
The other possibility is to put the filters in the url parameters so, when a customer will click on a category, the link will contain the reset of some filters.
So the new page will open and will read the filter parameters, to empty them.
It means that you have do override some views (I guess "category | listing...") to add the filter parameters in the category url.
Regards,
Like that it won't be very easy.
The filters are stored in the user session, so if you want to reset them, you have to modify the data in the Joomla user session.
The other possibility is to put the filters in the url parameters so, when a customer will click on a category, the link will contain the reset of some filters.
So the new page will open and will read the filter parameters, to empty them.
It means that you have do override some views (I guess "category | listing...") to add the filter parameters in the category url.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- hanibaltrs
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
12 years 7 months ago #150599
by hanibaltrs
Replied by hanibaltrs on topic reset on category change
ok this sounds good.
can u please tell me the url parameter to reset all filters ??
can u please tell me the url parameter to reset all filters ??
Please Log in or Create an account to join the conversation.
12 years 7 months ago #150699
by nicolas
Replied by nicolas on topic reset on category change
There is actually a global reset parameter that you can add to the URLs: &reseted=1
That will clear all the filter of the page automatically.
That will clear all the filter of the page automatically.
The following user(s) said Thank You: hanibaltrs
Please Log in or Create an account to join the conversation.
- hanibaltrs
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
12 years 7 months ago #150834
by hanibaltrs
Replied by hanibaltrs on topic reset on category change
thanks for this, this is what i looked for
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 38
- Thank you received: 0
10 years 9 months ago #227604
by teamtmedia
Digging this one back out
I am looking for the same but not sure about the implementation.
J! 3.4.8
Hika 2.6.1
Set-up:
SEF URLs on
mod_menu pointing to Hikashop Category views each with their own filter module
I would like the filters to automatically be reset when a visitor goes back to a category via this menu. It is fine for them to find the filters intact when hitting their back button but the session is pervasive and if they return to a category after spending time in another section of the site (i.e. account management, news, etc) it would be useful to have the filter automatically reset.
I believe the
parameter will sort this out but where to place that for this behaviour?
Replied by teamtmedia on topic reset on category change
nicolas wrote: There is actually a global reset parameter that you can add to the URLs: &reseted=1
That will clear all the filter of the page automatically.
Digging this one back out
J! 3.4.8
Hika 2.6.1
Set-up:
SEF URLs on
mod_menu pointing to Hikashop Category views each with their own filter module
I would like the filters to automatically be reset when a visitor goes back to a category via this menu. It is fine for them to find the filters intact when hitting their back button but the session is pervasive and if they return to a category after spending time in another section of the site (i.e. account management, news, etc) it would be useful to have the filter automatically reset.
I believe the
Code:
&reseted=1
Please Log in or Create an account to join the conversation.
10 years 9 months ago #227625
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic reset on category change
Hi,
I'm afraid that is not possible like that.
If you put the "reseted=1" directly into the Joomla menu ; that parameter will always be set.
Not just when a user click on the menu but really always.
So the pagination and filters won't work.
Regards,
I'm afraid that is not possible like that.
If you put the "reseted=1" directly into the Joomla menu ; that parameter will always be set.
Not just when a user click on the menu but really always.
So the pagination and filters won't work.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds