Error in Search Tab

Avatar
  • Answered
Hi, I am using Opencart & getting an error in search tab of my site.The Error is Notice: Undefined variable: search in /home/kmbazzar00/public_html/catalog/view/theme/dolarshoppe/template/common/header.tpl on line 85 and i am using the below script for search : This error is coming in my all theme that is have used. Can you please to inform me that where is the issue. Please reply me i am waiting for your valuable revert. Thanks
Avatar
JacobIMH
Hello akki01, and thanks for your question. It looks like the error you're getting is on line 85 of that header.tpl file. It seems you are possibly trying to get it to echo out the variable $search, but it's telling you that variable is undefined. Make sure that variable is getting defined somewhere higher up in your script, or you might want to possibly try using the other $text_search variable instead. - Jacob