Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moving the Search Box in the Header

Moving the Search Box in the Header

Locked

Views: 1,530

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Aug 2006, 9:02 PM
#1
mommydesigns avatar

mommydesigns

Zen Follower

Join Date:
Jul 2006
Posts:
135
Plugin Contributions:
0

Moving the Search Box in the Header

I have tried changing the <td align="center"......> to <td align="right> to no avail. in the TPL_Header.php

Any thoughts? Oh... running Zen 1.2.7

http://67.19.186.2/~azure/

Thank you!

20 Aug 2006, 9:56 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Moving the Search Box in the Header

Find this block of code in your tpl_header.php> <td align="center" width="25%"><?php require(DIR_WS_MODULES . 'sideboxes/' . 'search_header.php'); ?></td>

        <td class="headerNavigation" align="right" valign="top" width="33%">
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
          <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>»</a>
<?php }?>
        </td>and replace it with this> <td class="headerNavigation" align="center" valign="top" width="33%">
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
          <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>»</a>
<?php }?> </td> <td align="right" width="25%"><?php require(DIR_WS_MODULES . 'sideboxes/' . 'search_header.php'); ?></td>

... better still upgrade to 1.3 and there are some much better ways of laying out your header plus security fixes!

20 Aug 2006, 10:28 PM
#3
mommydesigns avatar

mommydesigns

Zen Follower

Join Date:
Jul 2006
Posts:
135
Plugin Contributions:
0

Re: Moving the Search Box in the Header

kuroi:

Find this block of code in your tpl_header.phpand replace it with this

... better still upgrade to 1.3 and there are some much better ways of laying out your header plus security fixes!

Thank you!!

I can't yet upgrade for my client - she needs a bilingual cart and I tried starting out with 1.3 and it kept giving major errors so for now we're sticking with 1.2.7 I'd like to go to 1.3 but had major troubles with the French side giving errors, etc. :(

20 Aug 2006, 10:31 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Moving the Search Box in the Header

Hmm. Languages is, for the most part, one of Zen Cart's strengths and there are many bi and multilingual carts out there.

Have you posted details of these major errors? Were they with the cart itself or the French language pack?