Product Filter Search - Link using URL variable

  • Posts: 3
  • Thank you received: 0
10 years 8 months ago #119112

-- url of the page with the problem -- : bestvaluepetsupplies.net/index.php?optio...k=listing&Itemid=663
-- 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.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #119140

Hi,

Can you explain with more details where you want to create these links ?

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

  • Posts: 3
  • Thank you received: 0
10 years 8 months ago #119178

Thank you for the great product support, I got a reply from support:

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.

  • Posts: 24
  • Thank you received: 0
9 years 4 months ago #182663

Hi,
We have the same problem, can you share the solution with us?
Thanks

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
9 years 4 months ago #182705

Hi,

The user @plaat gave the solution in his last message.
You can use such link :

http://bestvaluepetsupplies.net/index.php?option=com_hikashop&ctrl=product&task=listing&Itemid=663&filter_Search=frontline
where "Search" is the name of the filter and "frontline" the value you want to search for.

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

  • Posts: 24
  • Thank you received: 0
9 years 4 months ago #183016

Is it possible to display something similar in the url bar after a regular search (trough search module)?

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.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
9 years 4 months ago #183184

You could try to edit the file "filter" of the view "product" via the menu Display>Views and change the code:
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
5 years 8 months ago #296723

Dear Hikashop team,
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

Last edit: 5 years 8 months ago by thesilentman.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 8 months ago #296750

Hi,

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
5 years 6 months ago #298865

@nicolas where to find this option: redirect post mode?

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.

  • Posts: 1119
  • Thank you received: 114
5 years 6 months ago #298867

Hi,

It's in system->configuration under advanced tab.



Thanks

Attachments:
The following user(s) said Thank You: Philip, Jimmy Business

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 6 months ago #298870

Hi,

It's in the HikaShop configuration, under the "advanced" tab.

The following user(s) said Thank You: Jimmy Business

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

  • Posts: 14
  • Thank you received: 0
5 years 6 months ago #298907

It generates links like: category?limitstart=0&filter_NAMEFILTER=FILTER&filter_category_3=+

Is it possible to show a clean url such like: /category/filter

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 6 months ago #298929

Hi,

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.

Time to create page: 0.116 seconds
Powered by Kunena Forum