X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   head top line (https://forum.x-cart.com/showthread.php?t=43402)

jeanmarc 11-02-2008 11:09 AM

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

JWait 11-06-2008 04:45 AM

Re: head top line
 
Do you mean the "Tabs"?

In top_menu.tpl find <td valign="top" align="right"> and change "right" to "center".

jeanmarc 11-06-2008 09:24 PM

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

JWait 11-07-2008 04:58 AM

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!

jeanmarc 11-09-2008 11:53 PM

Re: head top line
 
Thank you very much, I have made it

jean marc

jeanmarc 11-10-2008 12:11 AM

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

JWait 11-10-2008 03:41 AM

Re: head top line
 
There are two sites I can recommend
http://www.w3schools.com/
and
http://www.smarty.net/


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.