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

TOPIC: Search Module

Search Module 9 years 7 months ago #10865

Hi,

I notice that the search module is searching in the same page or category that the user located and not is the all site. This situation making people not to find what they looking for…..

Can it be change?

Thank you.
The topic has been locked.

Search Module 9 years 7 months ago #10869

Hi,

If you are visiting any particular category, the "Search" module searches the product within that specific category. It is a feature, but yes you are right. It might cause some other problem (like: not being able to find all products)

To eliminate that filter, (so the search will always search products within whole site)
open this PHP file:
/templates/YOUR_TEMPLATE/html//mod_virtuemart_search/default.php

look for 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">

and you will be good to go.

Regards,
Support
The topic has been locked.

Search Module 9 years 7 months ago #10873

OK thank you.
The topic has been locked.

Search Module 9 years 7 months ago #10899

sure, your welcome.

case solved. topic is closed.

regards.
The topic has been locked.

Search Module 9 years 7 months ago #10900

sure, your welcome.

case solved. topic is closed.

regards.
The topic has been locked.
Time to create page: 0.100 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