Post by dstegall » Mon Feb 18, 2013 6:09 am

forgive me....

I want to move the search to the header where the currency/language used to be. (I already removed) I've done this before and it worked fine, then I upgraded and forgot about it. :(

I've added this to header.tpl

<div id="search">
<div class="left"></div>
<div class="button-search"></div>
<div class="middle">
<?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 = '#666666'; font-size= 11px;" />
<?php } ?>
</div><!-- #search .middle (end) -->

<div class="right"></div>
</div><!-- #search (end) -->

But then I get the error:
Notice: Undefined variable: filter_name in /home/faithful/public_html/Cart/catalog/view/theme/caramella/template/common/header.tpl on line 63

plus I'm not sure if is in the right spot.

Any help would be greatly appreciated!

Faithfully,

Dawn
http://www.Faithfullyyours.net/Cart

New member

Posts

Joined
Sat Dec 08, 2012 12:03 am

Post by Avvici » Tue Feb 19, 2013 7:09 pm

You can't just copy and paste old code onto new version. You will get errors. You need to use the updated MVC to make your changes. I can help you if you PM me

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: No registered users and 28 guests