VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: buzzbored on June 29, 2016, 22:43:38 PM

Title: add search field / search box
Post by: buzzbored on June 29, 2016, 22:43:38 PM
hello, on a page displaying all products there is Browse-view, ordeby-displaynumber, vm-order-list classes. This shows a sort by and manufacturer select options. I would like to know if you can add a regular search bar to search for a specific product there.
Title: Re: add search field / search box
Post by: jenkinhill on June 29, 2016, 23:18:08 PM
You mean like the VM - Search in Shop module? It does have configuration options.
Title: Re: add search field / search box
Post by: Milbo on June 30, 2016, 10:24:53 AM
Please try the new vm3.0.17.2, which is our current release candidate.

There is a new option for the search. We will remove "virtuemart" view and it will be completly replaced by the category view. The category view has now a new option "show search".

When enabled, you see the normal vm search field. But you can now also activate the "searchable" parameter in a custom "String" ("/administrator/index.php?option=com_virtuemart&view=custom"). So you get a dropdown if in your category is a product using customfields based on that custom.

Title: Re: add search field / search box
Post by: gap on November 03, 2016, 19:50:17 PM
Quote from: Milbo on June 30, 2016, 10:24:53 AM
Please try the new vm3.0.17.2, which is our current release candidate.

There is a new option for the search. We will remove "virtuemart" view and it will be completly replaced by the category view. The category view has now a new option "show search".

When enabled, you see the normal vm search field. But you can now also activate the "searchable" parameter in a custom "String" ("/administrator/index.php?option=com_virtuemart&view=custom"). So you get a dropdown if in your category is a product using customfields based on that custom.

Hello Milbo,

Please tell me where to turn off the search field in the category view.
Turning off the VM search module hasn't got any effect.

thanks,
Gap
Title: Re: add search field / search box
Post by: Jörgen on November 03, 2016, 20:54:05 PM
Hello

You can try this:
http://forum.virtuemart.net/index.php?topic=135886.msg473761#msg473761 (http://forum.virtuemart.net/index.php?topic=135886.msg473761#msg473761)

regards

Jörgen @ Kreativ Fotografi
Title: Re: add search field / search box
Post by: gap on November 03, 2016, 23:08:37 PM
Thanks for the quick reply!
I found an xml for the category view where the search option default was 1 and I thought it can be adjusted from the admin surface what I cannot find.
Title: Re: add search field / search box
Post by: Ghost on November 04, 2016, 13:44:32 PM
Create a menu item with VirtueMart -> Category Layout item type and set "Show search" option.