Hello everyone,
I have an issue with our site which I was hoping someone might be able to help me fix.
We have the VM search box on the site and it works fine if you type in a phrase that partly matches a product. If however you type in something random or the name of a product that does not exist in the shop, the page reloads with no product results and the error:
Notice: Undefined property: VirtuemartViewCategory::$search in public_html/templates/axxen/html/com_virtuemart/category/default.php on line 356
Does anyone know how I might be able to fix this?
Kind regards
James
it is in your template category over ride
test without it.. if fixed compare and fix your code..
it will need something like
if(isset($search)) {
blah blah
}
Hi GJC,
Thank you for your help.
I found the problem. I had to change:
} elseif ($this->search !== NULL) {
on line 356 to
} elseif ($this->searchcustom !== NULL) {
All working now.
Thanks again!