Page 1 of 1
Undefined variable
Posted: Sat Mar 16, 2013 7:31 pm
by jmj011
I have tried installing several free themes to my Open Cart.
Each one (with the exception of the default theme) has the same error message superimposed over the search box area.
Any help appreciated.
Notice: Undefined variable: filter_name in /home/content/83/9261283/html/rio/store/catalog/view/theme/cleanlean/template/common/header.tpl on line 57
Re: Undefined variable
Posted: Sat Mar 16, 2013 9:46 pm
by ChetanCx
its because you are using opencart 1.5.5.1 (or 1.5.5.0) with themes built for oc 1.5.4 (or earlier )
as an workaround you can do this
in your
catalog/view/theme/your_theme/template/common/header.tpl
find
Code: Select all
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
<?php } ?>
replace it with
Code: Select all
<input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
Re: Undefined variable
Posted: Sun Mar 17, 2013 2:55 am
by jmj011
Great!!!
Worked fine.
Thank you
Re: Undefined variable
Posted: Tue May 28, 2013 1:26 am
by agentmilindu
I got the same error and fixed it. But now , when I search something, I get the same error with some more errors. Now what should I do?
--other errors----------------
Notice: Undefined variable: filter_sub_category
Notice: Undefined variable: filter_description
My OpenCart version is 1.5.5.1
Please help!