When I use VM search, displayed in top position of the website, it searchs for products in the productcategory where I am in at the moment,
What I want is that it searches in every category, no matter in what category I am in now.
I couldn't find a a setting for this? What do I need to change in what file to get this done?
Using J5 and VM 4.2.18
In the module settings, turn off the "Search Filter Category" option.
vm-product-module-settings.png
I found that option, but it is set on 'No' already.
To describe it better:
When I am not in a category yet and hit the search, it searches in all categories.
But when I am in a particular category already and then hit the search, it only searches in the same category where I am in.
Do you use a 3rd party template with custom layout overrides? If yes, try switching to the Cassiopeia template.
yes I do, but that isn't the cause.
When switching to Cassiopeia I get the same results.
I noticed that at my search settings it sayss something about 'virtuemart 2+ compatible'. Maby I am still using an old file? (I am using virtuemart for many years and have been updating many times)
Do know which files and/or folders this search uses? So I can copy and extract from the default virtuemart intallation file.
Download and install the complete package from: https://virtuemart.net/download
When updating to 4.2.18 I installed the complete package, actually. So I assume it overrides everything what is needed
When I reinstall virtuemart and disable my template, it still doesn't search all categories, only the category where I am in at that moment.
I tried both setting on the screenshot setting to 'no' and to 'yes, but there is not difference.
How can I debug this?
Do you have a menu item for the top-level category page? If not, create one (with no category selected) and then try again.
Ah! I created the (hidden) menu and now it works!
Many thanks!!
No problem 👍
Additional question: where can I set the title of the search result page?
Edit: found it. It is in the translation file of *.com_virtuemart.ini:
COM_VIRTUEMART_HOME