reset on category change

  • Posts: 9
  • Thank you received: 0
10 years 7 months ago #150377

-- 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 ?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #150437

Hello,
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.

  • Posts: 9
  • Thank you received: 0
10 years 7 months ago #150467

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 7 months ago #150591

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 9
  • Thank you received: 0
10 years 7 months ago #150599

ok this sounds good.
can u please tell me the url parameter to reset all filters ??

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
10 years 7 months ago #150699

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.

The following user(s) said Thank You: hanibaltrs

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

  • Posts: 9
  • Thank you received: 0
10 years 7 months ago #150834

thanks for this, this is what i looked for

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

  • Posts: 38
  • Thank you received: 0
8 years 10 months ago #227604

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 :) 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
&reseted=1
parameter will sort this out but where to place that for this behaviour?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 10 months ago #227625

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum