VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stawebnice on January 14, 2016, 18:15:28 PM

Title: VM 3.0.12: VM Product search does not work
Post by: stawebnice on January 14, 2016, 18:15:28 PM
Hi,

Please help...
I have just found out that the vm product search module does not return a result page, instead people are taken to category layout with no results...

I moved the search box here for testing:
http://www.sebimoto.com/terms

the results link looks like this, but shows categories:
http://www.sebimoto.com/categoty-layout/eshop-fairings/search?keyword=honda&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

Is there a way to fix this?

Thanks!

Petra
Title: Re: VM 3.0.12: VM Product search does not work
Post by: sandstorm on January 15, 2016, 20:34:05 PM
Hopefully not stating the obvious, but do you have the VM search plugin enabled and configured?
Also disable any you are not using.

I personally don't use the core Virtuemart search module. I tend to use one of these;
Offlajn Ajax live search
Break Design Custom Fields Pro > Which also comes with a modified search module

Title: Re: VM 3.0.12: VM Product search does not work
Post by: stawebnice on January 15, 2016, 21:07:07 PM
There is no VM search plugin in plugins.
http://imtp.me/amby02lj3
http://imtp.me/amc002lj3.p
http://imtp.me/amc102lj3

Title: Re: VM 3.0.12: VM Product search does not work
Post by: GJC Web Design on January 15, 2016, 21:35:11 PM
the plugin isn't used for the VM search .. only the joomla search

the search url is correct

http://www.sebimoto.com/eshop?keyword=EXTREMA&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

if it didn't find any results it should show->  No result : (EXTREMA) on the normal cat template

R u sure your template (category) is correctly coded?

try with protostar
Title: Re: VM 3.0.12: VM Product search does not work
Post by: stawebnice on January 15, 2016, 21:46:49 PM
There is no other template to select in virtuemarttemplates.net templates, but I copied files categories.php and default.php into the transform template html/com_virtuemart/category folder and still it does not work so I don't think it is a template issue

even if I disable artio JoomSEF and clear cache, I get this URL>
http://www.test.sebimoto.com/categoty-layout/eshop-fairings/search?keyword=honda&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

but no result page...only top category layout
Title: Re: VM 3.0.12: VM Product search does not work
Post by: GJC Web Design on January 15, 2016, 22:09:50 PM
you need to print out the  $this->products, $this->keyword & $this->categories  to see what is being returned

print 'Debug Line '.__LINE__.' $this->products <pre>'; print_r ($this->products); print "</pre><br />\n";
Title: Re: VM 3.0.12: VM Product search does not work
Post by: stawebnice on January 15, 2016, 23:24:52 PM
Shall I look for this piece of code? in which file?