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

head top line

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-02-2008, 11:09 AM
 
jeanmarc jeanmarc is offline
 

Member
  
Join Date: May 2007
Posts: 18
 

Default head top line

In the head top line I would like to insert (in the center) the three buttons of the headrightbox----> top_menu.tpl
does some one can help me

thank you
__________________
XCART 411
Reply With Quote
  #2  
Old 11-06-2008, 04:45 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: head top line

Do you mean the "Tabs"?

In top_menu.tpl find <td valign="top" align="right"> and change "right" to "center".
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 11-06-2008, 09:24 PM
 
jeanmarc jeanmarc is offline
 

Member
  
Join Date: May 2007
Posts: 18
 

Default Re: head top line

Thank's for your help.
Yes, I means the tabs. But I would like to insert these tabs between the "customer/search.tpl" (customer search menu) and the select language menu in the head line.
thanks

jean marc
__________________
XCART 411
Reply With Quote
  #4  
Old 11-07-2008, 04:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: head top line

What you are asking is not an easy change, but this should get you started.

In skin1/head.tpl find
Code:
{if $main ne "fast_lane_checkout"} <tr> <td class="HeadLine" height="22"> {if $usertype eq "C"} { include file="customer/search.tpl" } {/if} </td> <td class="HeadLine" align="right"> {if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1}

Move {include file="customer/top_menu.tpl"} from higher in head.tpl so it is like this
Code:
{if $usertype eq "C"} { include file="customer/search.tpl" } { include file="customer/top_menu.tpl" } {/if}

You will find that you will need to edit skin1/customer/top_menu.tpl because it includes a routine to display company phone numbers, but it should get you started.

What I did was included search.tpl in top_menu.tpl like this (My top_menu.tpl)
Code:
{* Modified to include customer/search.tpl in title bar *} {if $printable ne ''} {include file="customer/top_menu_printable.tpl"} {else} <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td> {if $speed_bar} <table border="0" cellpadding="0" cellspacing="0"> <tr> {section name=sb loop=$speed_bar} {if $speed_bar[sb].active eq "Y"} <td>{include file="customer/tab.tpl" tab_title="<a href=\"`$speed_bar[sb].link`\">`$speed_bar[sb].title`</a>"}</td> <td width="10"><img src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0" alt="/" /></td> {/if} {/section} </tr> </table> {/if} </td> <td align="right"> {if $usertype eq "C"} {include file="customer/search.tpl"} {/if} </td></tr> </table> {/if}

Search is after the "tabs", and I modified tab.tpl also to eliminate the borders around them. It produces a "bar" that has the speedbar links on the left and the search box on the right. I don't use the alternate languages, so it didn't concern me.

Good luck!
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 11-09-2008, 11:53 PM
 
jeanmarc jeanmarc is offline
 

Member
  
Join Date: May 2007
Posts: 18
 

Default Re: head top line

Thank you very much, I have made it

jean marc
__________________
XCART 411
Reply With Quote
  #6  
Old 11-10-2008, 12:11 AM
 
jeanmarc jeanmarc is offline
 

Member
  
Join Date: May 2007
Posts: 18
 

Default Re: head top line

Do you Know a french book or something else where I can learn about smarty ?
Because the modif is running well but I only paste what you send to me and I don't really understand what I have made.

Thank you
__________________
XCART 411
Reply With Quote
  #7  
Old 11-10-2008, 03:41 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: head top line

There are two sites I can recommend
http://www.w3schools.com/
and
http://www.smarty.net/
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 02:29 PM.

   

 
X-Cart forums © 2001-2020