Reply To: Behavior for product and categories

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Behavior for product and categories Reply To: Behavior for product and categories

#10520
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

“I just want to list all products inside some category or subcategory, not to show category by name.”
If you want only product results, but not the product categories as results, then make sure everything is disabled on the General Options -> Sources 2 panel: https://i.imgur.com/Cy5Mkd5.png

To include items from a specific sub-category, you can use the include option on the Advnaced Options -> Exclude reuslts panel: https://i.imgur.com/9tM0Wf8.png

“It is possible to list products through autocomplete, but not on return key behaviour.”
If you mean like not triggering the ajax search on hitting the return key, you can configure that on the General Options -> Behavior panel: https://i.imgur.com/nJ6qmOt.png

Don’t get what are “param1” => “value1” for. Could I set anything there?
This is when you have redirection activated when hitting the return button or the magnifier icon. This code allows you to pass additional query (GET) parameters if you need it. It’s mostly for developers use. In the example the $value array is set as following:

$values = array(
    "param1" => "value1",
    "param2" => "value2",
    "param3" => "value3"
  );

This will result in a redirection from this:

yoursite.com/s?=test

to:

yoursite.com/s?=test&param1=value1&param2=value2&param3=value3

I do not recommend using that, unless you have a reason to do so.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)