VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: EIF on November 06, 2024, 14:20:09 PM

Title: product search results of every category
Post by: EIF on November 06, 2024, 14:20:09 PM
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
Title: Re: product search results of every category
Post by: Jumbo! on November 06, 2024, 16:05:10 PM
In the module settings, turn off the "Search Filter Category" option.

vm-product-module-settings.png
Title: Re: product search results of every category
Post by: EIF on November 06, 2024, 16:17:55 PM
I found that option, but it is set on 'No' already.

Title: Re: product search results of every category
Post by: EIF on November 06, 2024, 16:21:05 PM
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.

Title: Re: product search results of every category
Post by: Jumbo! on November 06, 2024, 16:40:22 PM
Do you use a 3rd party template with custom layout overrides? If yes, try switching to the Cassiopeia template.
Title: Re: product search results of every category
Post by: EIF on November 06, 2024, 17:00:49 PM
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.
Title: Re: product search results of every category
Post by: Jumbo! on November 06, 2024, 17:17:07 PM
Download and install the complete package from: https://virtuemart.net/download
Title: Re: product search results of every category
Post by: EIF on November 06, 2024, 17:24:27 PM
When updating to 4.2.18 I installed the complete package, actually. So I assume it overrides everything what is needed
Title: Re: product search results of every category
Post by: EIF on November 07, 2024, 21:37:47 PM
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?
Title: Re: product search results of every category
Post by: Jumbo! on November 08, 2024, 06:44:10 AM
Do you have a menu item for the top-level category page? If not, create one (with no category selected) and then try again.
Title: Re: product search results of every category
Post by: EIF on November 12, 2024, 09:56:47 AM
Ah! I created the (hidden) menu and now it works!

Many thanks!!
Title: Re: product search results of every category
Post by: Jumbo! on November 12, 2024, 15:57:05 PM
No problem 👍
Title: Re: product search results of every category
Post by: EIF on November 15, 2024, 11:58:26 AM
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