After upgrading Opencart to 1.5.5.1 a lot of themes will give an
error “Undefined variable: filter_name” which will display on the search
in the header. Luckily it is easy to fix by just simply doing a find
and replace in the header.tpl file. To fix this error do the following.
Open the header.tpl file for your theme catalog/view/theme/NAME OF YOUR THEME/template/common/header.tpl
Search
< ?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
<input type="text" name="search" placeholder="<?php echo $text_search; ?/>" value="< ?php echo $search; ?>" />
All fixed :) If this makes no sense to you then contact the developer of the theme to make the fix :~)
Blogger Comment
Facebook Comment