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)
-   -   My new logos up but original xcart code still in head.tpl ?? (https://forum.x-cart.com/showthread.php?t=3680)

supanewb 07-21-2003 08:57 AM

My new logos up but original xcart code still in head.tpl ??
 
Ok guys what am I missing here.

Ive put up my store logo by tinkering with the head.tpl which pretty much screwed up and sent the the rest of the page down by about thirty lines below the logo.

When I go back to fix it later the head.tpl code is the original xcart code? no sign of my crap html efforts or anything... yet my logos still in place. What have i done wrong here and how do i get my own code back. :?

supanewb 07-21-2003 09:40 AM

I give up :cry: where exactly in the head.tpl would i paste my html to get rid of the x-cart stuff and place a centred logo.

Ive tried removing the reference to the xcart logo and then copying and pasting html straight out of dreamweaver but to no avail.
( my logos bigger)

No matter what I do my logo sits at the left margin with the language bar just below it also on the left and then a big gap to the rest of the page :(

Ive tried looking at the featured sites html but still can't get past this head.tpl thing. I'm using 3.4.3 gold

magnumkp 07-21-2003 11:47 AM

It could be that the logo has been put in the left (or right) hand column. When looking at the code in Dreamweaver check there are no other columns.

It might help if you posted a link to your site so we could see it, or just paste your current head.tpl code.

supanewb 07-22-2003 01:54 AM

Thanks magnumkp

hi yi yi I should just stick to retail..... :oops:

Code:

{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *}
<TABLE class=HeadBox width=100% leftmargin="0" topmargin="0"> 
<TR>
<div align="center">[img]http://www.swordpro.com.au/xcart/skin1/images/swordpro.jpg[/img]
</div>
{if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1}
<FORM action="home.php" method=GET name=sl_form>
<SELECT name=sl onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</FORM>
{elseif ($usertype eq "P" or $usertype eq "A") and $login}
<table border=0 cellpadding=0 cellspacing=0>
<FORM action="{$smarty.server.REQUEST_URI}" method=POST name=asl_form>
<tr>
<td>Current language:</td>
<td>
<INPUT type=hidden name="redirect" value="{$smarty.server.QUERY_STRING}">
<SELECT name=asl onChange="javascript: document.asl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $current_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</td></tr>
</FORM>
</table>
{else}

{/if}
</TD>
</TR>
<TR>
<TD>
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{else}

{/if}
</TD>
<


<P align=right><SPAN class=NumberOfArticles>{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}</SPAN></P>
</TD>
</TR>
</TABLE>



and heres the result.....

http://swordpro.com.au/xcart/customer/ :( :(

Its just that '<' that needs movin. has anybody got any suggestions
( apart from me doing some HTML courses )

magnumkp 07-22-2003 11:42 AM

There is an extra < here:
Quote:

</TD>
<


<P align=right><


You probably want to get rid of both of those
's because you start a new paragraph underneath, try it and see.

Don't worry about posting questions that you think are stupid, no question is stupid if you don't know the answer.

funkydunk 07-22-2003 12:26 PM

code should be:

Code:

{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *}
<TABLE class=HeadBox width=100% leftmargin="0" topmargin="0"> 
<TR>
<td align="center">[img]http://www.swordpro.com.au/xcart/skin1/images/swordpro.jpg[/img]
</td>
<td>
{if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1}
<FORM action="home.php" method=GET name=sl_form>
<SELECT name=sl onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</FORM>
{elseif ($usertype eq "P" or $usertype eq "A") and $login}
<table border=0 cellpadding=0 cellspacing=0>
<FORM action="{$smarty.server.REQUEST_URI}" method=POST name=asl_form>
<tr>
<td>Current language:</td>
<td>
<INPUT type=hidden name="redirect" value="{$smarty.server.QUERY_STRING}">
<SELECT name=asl onChange="javascript: document.asl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $current_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</td></tr>
</FORM>
</table>
{else}
 
{/if}
</TD>
</TR>

<TR>
<TD>
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{else}
 
{/if}
</TD>
<td align="right" class=NumberOfArticles>
{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>
</TABLE>


hth - stick with it you will get used to xcart :D

supanewb 07-22-2003 07:46 PM

Thanks alot it works perfectly :D I will definately stick with it and get this site working eventually. :wink:

funkydunk 07-22-2003 10:08 PM

Sorry I sshould have said that the offending item was the lack of a <td> for the image cell. plus a couple of other minor things :wink: although they could well have been in the original xcart code. :)


All times are GMT -8. The time now is 07:13 AM.

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