Post by joxxxe » Tue Aug 25, 2009 5:52 am

Hello i need to move search field to another side of the webpage,

i did the following:

copy

<?php echo $search; ?>

from

catalog\view\theme\default\template\common

header.tpl

to

layout.tpl

inside new div

but im getting thie error message:

Notice: Undefined variable: search in /hermes/web04/b2168/as.sgvbicycles/public_html/catalog/view/theme/default/template/common/layout.tpl on line 29

i dont understand how can i define this, please somebody can help me ? big thanks.

New member

Posts

Joined
Mon Jul 13, 2009 1:53 pm

Post by Qphoria » Tue Aug 25, 2009 6:00 am

Would you rather it be a sidebox? There is a contrib for that in the contrib section for modules. That would be the easiest approach if you are moving it out of the header.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by joxxxe » Tue Aug 25, 2009 6:36 am

i have solved this:

i opened

catalog\controller\common

layout.php

and
find

$this->children = array(
'common/header',
'common/footer',
);

i did add

'common/language',
'common/search'


and the result is this:

$this->children = array(
'common/header',
'common/footer',
'common/language',
'common/search'
);

after that i add <?php echo $search; ?>
to layout.tpl file and this works fine, thanks :D

New member

Posts

Joined
Mon Jul 13, 2009 1:53 pm
Who is online

Users browsing this forum: No registered users and 10 guests