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
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
replace it with
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 } ?>
Code: Select all
<input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
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!
--other errors----------------
Notice: Undefined variable: filter_sub_category
Notice: Undefined variable: filter_description
My OpenCart version is 1.5.5.1
Please help!
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 121 guests