Author Topic: VM Search Error  (Read 239 times)

wicketts

  • Beginner
  • *
  • Posts: 10
VM Search Error
« on: April 21, 2017, 16:08:19 pm »
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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Hero Member
  • *
  • Posts: 7335
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.0.16
Re: VM Search Error
« Reply #1 on: April 21, 2017, 23:30:21 pm »
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

 }
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation