Post by jmj011 » Sat Mar 16, 2013 7:31 pm

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

Newbie

Posts

Joined
Sat Mar 16, 2013 7:23 pm

Post by ChetanCx » Sat Mar 16, 2013 9:46 pm

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; ?>" />

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by jmj011 » Sun Mar 17, 2013 2:55 am

Great!!!
Worked fine.
Thank you

Newbie

Posts

Joined
Sat Mar 16, 2013 7:23 pm

Post by agentmilindu » Tue May 28, 2013 1:26 am

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!

Newbie

Posts

Joined
Tue May 28, 2013 1:20 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 112 guests