News:

Support the VirtueMart project and become a member

Main Menu

product search results of every category

Started by EIF, November 06, 2024, 14:20:09 PM

Previous topic - Next topic

EIF

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

Jumbo!

In the module settings, turn off the "Search Filter Category" option.

You cannot view this attachment.

EIF

I found that option, but it is set on 'No' already.


EIF

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.


Jumbo!

Do you use a 3rd party template with custom layout overrides? If yes, try switching to the Cassiopeia template.

EIF

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.

Jumbo!


EIF

When updating to 4.2.18 I installed the complete package, actually. So I assume it overrides everything what is needed

EIF

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?

Jumbo!

Do you have a menu item for the top-level category page? If not, create one (with no category selected) and then try again.

EIF

Ah! I created the (hidden) menu and now it works!

Many thanks!!

Jumbo!


EIF

#12
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