Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

moving tabs to search bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-21-2006, 02:15 AM
  stevep's Avatar 
stevep stevep is offline
 

Advanced Member
  
Join Date: Jul 2005
Location: uk
Posts: 58
 

Default moving tabs to search bar

How can i move the home page tabs at the top of the home page to the search bar just below!!
__________________
X-Cart version 4.4.5
PHP 5.2.13
MySQL server 5.0.51a-community-log
MySQL client 5.0.51a
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8
Operation system Linux
Perl 5.008008

http://temptinglysexy.co.uk
Reply With Quote
  #2  
Old 01-21-2006, 04:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

The tabs are an include in head tpl. They are actually in a template called customer/top_menu.tpl. Move the chunk of code out of customer/top_menu.tpl into the speed bar of head.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-10-2006, 06:38 AM
  stevep's Avatar 
stevep stevep is offline
 

Advanced Member
  
Join Date: Jul 2005
Location: uk
Posts: 58
 

Default

Bing a little thick could you show me how to with some mre text please
__________________
X-Cart version 4.4.5
PHP 5.2.13
MySQL server 5.0.51a-community-log
MySQL client 5.0.51a
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8
Operation system Linux
Perl 5.008008

http://temptinglysexy.co.uk
Reply With Quote
  #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
  #5  
Old 04-09-2006, 02:19 AM
  stevep's Avatar 
stevep stevep is offline
 

Advanced Member
  
Join Date: Jul 2005
Location: uk
Posts: 58
 

Default

cheers job done thanks
__________________
X-Cart version 4.4.5
PHP 5.2.13
MySQL server 5.0.51a-community-log
MySQL client 5.0.51a
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8
Operation system Linux
Perl 5.008008

http://temptinglysexy.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:44 AM.

   

 
X-Cart forums © 2001-2020