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.
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
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

Who is online
Users browsing this forum: No registered users and 11 guests