Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: search module doesn't work in category page

search module doesn't work in category page 11 years 1 month ago #3085

I have a problem with the search module. When i try to find some products for example "proteine" in an category page for example "Marchi" the module don't show any products. on the contrary if I try to find the same products in article page for example "Chi siamo" the module will show the products.. Have some idea what is the problem? thanks..

the site is www.nutrishop.it

Best regards,
Vincenzo.
The administrator has disabled public write access.

search module doesn't work in category page 11 years 1 month ago #3147

It is because the search was designed to search products in the category that you are browsing at that time.

For instance, if you are in the T-shirt category and type RED in the search box. It searches only the RED keyword in TShirt category (and its sub-categories). It won't perform the search in the entire store. Got it? But looks like you don't want this feature.

Try this trick to make the "search module" to perform the search in the entire store always, no matter which category you are in.

Open this PHP file:

/template/YOUR_TEMPLATE/html/mod_virtuemart_search/default.php

and find this line:
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">

and replace it with this:
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0'); ?>" method="get">

Regards.
Forum Support.
Last Edit: 11 years 1 month ago by Support.
The administrator has disabled public write access.

search module doesn't work in category page 11 years 1 month ago #3394

thank you for the reply. Your solution doesn't work, but I think the problem is with the option URL SEF when it's activated. so when I disable this option the search work in every page also in category layout!

You know how i can fix it?

Best regards,
Vincenzo.
The administrator has disabled public write access.

search module doesn't work in category page 11 years 1 month ago #3396

Sorry no - this is a core VM problem - the std implementation of SEF in VM2.0 is relatively weak..

These sorts of questions are better directed to the VirtueMart forums..

Cheers
The administrator has disabled public write access.
Time to create page: 0.124 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo