View Single Post
  #4  
Old 03-10-2006, 08:09 AM
 
Sheffield_Tiger Sheffield_Tiger is offline
 

Member
  
Join Date: Mar 2006
Posts: 10
 

Default

Here's a sample of an edited head.tpl to give you an idea

look around the {include file="customer/top_menu.tpl"}

Note: I have actually moved the search box in this example so that it sits above what used to be the search bar and now in the bottom right of the header background (underneath where the tabs used to sit at the top right)

Code:
{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <tr height="80"> <TD valign="bottom" align="right" height="80" background="skin1/images/header.jpg">{if $usertype eq "C"} { include file="customer/search.tpl" } {/if} </TD> </tr> </TR> </TABLE> <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> <TR> <TD class="HeadLine" align="left" height="22">{if $usertype eq "C"} {include file="customer/top_menu.tpl"}{/if}</TD> </TR> <TR> <TD colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {******** Remove this line to display how much products there are online **** <TR> <TD colspan="2" class="NumberOfArticles" align="right">{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</TD> </TR> **** Remove this line to display how much products there are online ********} <TR> {******** commented out to remove white space between search bar and side menus - moved printable topics into product.tpl instead **** <TD colspan="2" valign="middle" height="32"> <TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18"> <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> {if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'} <TD width="100%" valign="middle" align="right">{include file="printable.tpl"}</TD> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> {/if} </TR> </TABLE> </TD> **** Remove this line to leave printable topics within head.tpl********} </TR> </TABLE>

NOTE:
If you use from this example, you may want to remove the lines
{******** commented out to remove white space between search bar and side menus - moved printable topics into product.tpl instead ****
and

**** Remove this line to leave printable topics within head.tpl********}
as otherwise your "printable version" link will disappear and everything will be pushd right up to the search bar and look untidy, unless you call the spacing or printable version in a table at the top of other templates


(note: I've only included this example rather than a step-by-step as I'm new to this and doing things by trial and error)
__________________
Version 4.0.17
Reply With Quote