- Posts: 178
- Thank you received: 5
Filter's mechanics
Eliot wrote: Hi Marius,
I found the source of the issue, it's because you activated the joomla's cache.
That's why the filter is working but not displaying the right informations, the page is cached.
So you ahve to disable the joomla's cache and if you really want to have a cache you must find an extension to specify the pages you want to cache (not the Hikashop ones)
I disabled Joomla cache but still see the filter selected though all products of categories are shown. Why?
Please Log in or Create an account to join the conversation.
Xavier wrote: Hi,
You have to edit the file "administrator/components/com_hikashop/classes/filter.php" and in the function "addFilter()" replace the line:By:Code:$infoGet = $app->getUserStateFromRequest( 'com_hikashop.'.$cid .'_filter_'.$filter->filter_namekey.$completion, 'filter_'.$filter->filter_namekey.$completion, $infoGet, 'array' );Code:$infoGet = JRequest::getString('filter_'.$filter->filter_namekey.$completion);
The filters are not stored in cookies but in session.
If i replace
Please Log in or Create an account to join the conversation.
Either way, make sure you have the last version of Hikashop
Please Log in or Create an account to join the conversation.
i use the latest business version of hikashop .
1. i dont what to save any selection after the user leaves the page.
topriderscycles.co.uk/index.php?option=c...oad-bikes&Itemid=850
for example if i select GIANT when i am on ROAD category and then go to MOUNTAIN BIKES page and then back to ROAD i want the filter to be clear without have any reset button .
2. when i use the filter and select to go back from the browser back button i get this error docs.google.com/a/webarts.com.cy/file/d/...2c/edit?usp=drivesdk
how can avoid that? this happens after i use the filter
please advice asap thx
Please Log in or Create an account to join the conversation.
1. Xavier provided the code modification at the beginning of this thread in order to achieve that, and PeterChain later provided the new code to look for for the modification:
www.hikashop.com/forum/2-general-talk-ab...?limitstart=0#108378
2. That's not an error. That's your browser telling you that the previous page needs a form resubmission. It's the way your browser want to handle the reloading of the page and we can't do anything about it. This has to be modified in the browser itself:
superuser.com/a/374246
If you press the F5 key at that point and validate the form resubmission, you'll see the page.
Please Log in or Create an account to join the conversation.
about point 2.
for example why the browser its not telling me the same on that website www.evanscycles.com/categories/bikes/road-bikes when i use the fitler and then try to go back . just let me know the different to can explain to my clients.
Please Log in or Create an account to join the conversation.
It's actually possible to have HikaShop to do the same by changing the line:
Please Log in or Create an account to join the conversation.
i change the code but when you use the filter it redirects to the homepage.
please try to use the filter here. use the brand field
topriderscycles.co.uk/index.php?option=c...oad-bikes&Itemid=850
Please Log in or Create an account to join the conversation.
I see that it also need to add hidden fields for the parameters which are in the URL normally, otherwise, they are ignored.
So to do that, you need to also add such code as well after the previous line of my previous message:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.