- Posts: 3
- Thank you received: 0
Product Filter Search - Link using URL variable
-- HikaShop version -- : HikaShop Business: 2.2.0
-- Joomla version -- : Joomla! 2.5.14
-- PHP version -- : 5.3.21
-- Browser(s) name and version -- : Chrome / All
-- Error-message(debug-mod must be tuned on) -- : Need to link to search results by passing URL variable
Hi, i have implemented a search filter for product, it works well
My urgent problem is, I need to create links to search results. for example
index.php?searchword=KEYWORD_HERE
would then return search results for KEYWORD_HERE
please help
bestvaluepetsupplies.net/index.php?optio...k=listing&Itemid=663
how do I add &searchword=KEYWORD
Please Log in or Create an account to join the conversation.
Can you explain with more details where you want to create these links ?
Please Log in or Create an account to join the conversation.
How to link to a search URL
bestvaluepetsupplies.net/index.php?optio...ter_Search=frontline
Please Log in or Create an account to join the conversation.
We have the same problem, can you share the solution with us?
Thanks
Please Log in or Create an account to join the conversation.
The user @plaat gave the solution in his last message.
You can use such link :
Please Log in or Create an account to join the conversation.
The solution @plaat gave is not user friendly (you have to manually create the link to the search result page).
Please Log in or Create an account to join the conversation.
method="post"
to:
method="get"
in order to get the parameters added to the URL when using the regular HikaShop filter module.
Please Log in or Create an account to join the conversation.
- Posts: 40
- Thank you received: 2
the proposed solution works until you turn on SEF Urls in Joomla. At least on my end.
Do you have any quick tip before I dive into the router to find out why this is happening?
Or has Hikashop any new feature to achieve the same result in a better way?
Thanks
Please Log in or Create an account to join the conversation.
You don't need to change any code now. You can just activate the "redirect POST mode" setting of the Hikashop configuration. Then, use the filters and you'll see the parameters in the URL when you do, and it will work even with the SEF activated.
Please Log in or Create an account to join the conversation.
- Posts: 14
- Thank you received: 0
I would like to realise the same thing as the TS, namely: showing filters in the url when using the filter module.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It's in the HikaShop configuration, under the "advanced" tab.
Please Log in or Create an account to join the conversation.
- Posts: 14
- Thank you received: 0
Is it possible to show a clean url such like: /category/filter
Please Log in or Create an account to join the conversation.
If you keep that option turned off, it won't add these parameters.
These parameters in the URL are what allow the system to not need to use POST parameters (which are hidden).
So either you have that option turned off, or you have the parameters in the URL, you can't have both.
Please Log in or Create an account to join the conversation.