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)
-   -   Please Help - Tried to Make New Homepage - Big problems..... (https://forum.x-cart.com/showthread.php?t=29832)

Patti@tiddiesinc.com 03-20-2007 08:06 AM

Please Help - Tried to Make New Homepage - Big problems.....
 
I tried to make a new homepage, using Welcome.tpl as a guideline as suggested in the forum.

This is my result :(

http://www.mytiddies.com/xcart/home.php

Can someone tell me what I'm doing wrong?

This is my tpl file:

{* $Id: tiddies-home.tpl,v 1.23.2.1 2005/04/23 08:32:48 max Exp $ *}
{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''}
<H3>{$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie|replace:"\'":"'"} </H3>
{else}
<H3>{$lng.lbl_welcome_to} { $config.Company.company_name }</H3>
{/if}
{* {$lng.txt_welcome}*}
<P>
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<P>
{include file="customer/main/featured.tpl" f_products=$f_products}

<HTML>
<HEAD>
<TITLE>Welcome to Tiddies!</TITLE>
<BODY BACKGROUND="bg-c.jpg" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" style="FONT-FAMILY: Verdana, Arial, Helvetica, Sans-serif; COLOR: #550000; FONT-SIZE: 12px; MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px; BACKGROUND-COLOR: #DFF5F2 >
<TABLE width="100%" height="1010" border="0" align="center" cellpadding="0" cellspacing="0">
<TR>
<TD style="BACKGROUND-COLOR: #83E1D3;">&nbsp;</TD>
</TR>
<TR>
<TD height="1"><TABLE height="1" border="0" cellspacing="0" cellpadding="0"><TD></TD></TABLE></TD>
</TR>
<TR>
<TD style="height="1"><TABLE height="1" border="0" cellspacing="0" cellpadding="0"><TD></TD>

</TABLE></TD>
</TR>
<TR>
<TD valign="middle"><table border="0" width="75%" cellpadding="0" cellspacing="0" align="center">

<tr>
<td><table width="780" border="0" align="center">

<tr>
<td><img src="skin1/images/splash-01.gif" width="287" height="241"></td>
<td colspan="2"><a href="http://www.mytiddies.com/xcart/home.php?cat=266"><img src="skin1/images/splash-02.gif" width="448" height="274" border="0"></a></td>
</tr>
<tr>
<td width="287" rowspan="3"><div align="right"><a href="http://www.mytiddies.com/xcart/home.php?cat=253"><img src="skin1/images/splash-03.gif" width="267" height="562" border="0"></a></div></td>
<td width="254"><a href="http://www.mytiddies.com/xcart/home.php?cat=267"><img src="skin1/images/splash-04.gif" width="216" height="269" border="0"></a></td>
<td width="225"><a href="http://www.mytiddies.com/xcart/home.php?cat=254"><img src="skin1/images/splash-05.gif" width="252" height="269" border="0"></a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="225">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><img src="skin1/images/splash-06.gif" width="468" height="260"></td>
</tr>
</table>
<p align="center">&nbsp;</p>
<p align="center" class="style1">Welcome to Tiddies! </p>
<hr noshade style="COLOR: #006666; HEIGHT: 1px;"> </td>
</tr>
<tr>
<td align="center"><p>&nbsp;</p>
<p><a href="index.php" class="style2"><font style="font-size: 12 px; TEXT-DECORATION: underline;">ENTER THE STORE</font></a></p>
<p>&nbsp;</p></td>
</tr>
</table></TD>
</TR>
</TABLE>
</BODY>
</HTML>

balinor 03-20-2007 08:59 AM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
Ok, you can't have html, head and body tags in there, as they already exist in the main cart structure. Try removing those and just include what is between the body tags in the template.

Patti@tiddiesinc.com 03-20-2007 09:07 AM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
Do you mean I need to remove all of the html tags? I removed html and body tags, and it didn't change anything.

How can I get the table to appear between the boxes on the left (e.g. categories, special and help) and the boxes on the right (your cart, authentication)?

balinor 03-20-2007 09:15 AM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
No, you need to remove the opening and closing <html>, <head> and <body> tags from the code. So in other words, in welcome.tpl, simply add this:

<TABLE width="100%" height="1010" border="0" align="center" cellpadding="0" cellspacing="0">
<TR>
<TD style="BACKGROUND-COLOR: #83E1D3;">&nbsp;</TD>
</TR>
<TR>
<TD height="1"><TABLE height="1" border="0" cellspacing="0" cellpadding="0"><TD></TD></TABLE></TD>
</TR>
<TR>
<TD style="height="1"><TABLE height="1" border="0" cellspacing="0" cellpadding="0"><TD></TD>

</TABLE></TD>
</TR>
<TR>
<TD valign="middle"><table border="0" width="75%" cellpadding="0" cellspacing="0" align="center">

<tr>
<td><table width="780" border="0" align="center">

<tr>
<td><img src="skin1/images/splash-01.gif" width="287" height="241"></td>
<td colspan="2"><a href="http://www.mytiddies.com/xcart/home.php?cat=266"><img src="skin1/images/splash-02.gif" width="448" height="274" border="0"></a></td>
</tr>
<tr>
<td width="287" rowspan="3"><div align="right"><a href="http://www.mytiddies.com/xcart/home.php?cat=253"><img src="skin1/images/splash-03.gif" width="267" height="562" border="0"></a></div></td>
<td width="254"><a href="http://www.mytiddies.com/xcart/home.php?cat=267"><img src="skin1/images/splash-04.gif" width="216" height="269" border="0"></a></td>
<td width="225"><a href="http://www.mytiddies.com/xcart/home.php?cat=254"><img src="skin1/images/splash-05.gif" width="252" height="269" border="0"></a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="225">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><img src="skin1/images/splash-06.gif" width="468" height="260"></td>
</tr>
</table>
<p align="center">&nbsp;</p>
<p align="center" class="style1">Welcome to Tiddies! </p>
<hr noshade style="COLOR: #006666; HEIGHT: 1px;"> </td>
</tr>
<tr>
<td align="center"><p>&nbsp;</p>
<p><a href="index.php" class="style2"><font style="font-size: 12 px; TEXT-DECORATION: underline;">ENTER THE STORE</font></a></p>
<p>&nbsp;</p></td>
</tr>
</table></TD>
</TR>
</TABLE>

Patti@tiddiesinc.com 03-20-2007 10:03 AM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
Thank you so much! It worked beautifully.

I have only one more question.......Is there an easy way to get "featured products" at the bottom rather than the top?

balinor 03-20-2007 10:05 AM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
Sure, just move this line to the very end of the template:

{include file="customer/main/featured.tpl" f_products=$f_products}

Patti@tiddiesinc.com 03-20-2007 10:44 AM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
:D You are awesome! :lol:

I think I've been looking at this stuff so long that I'm making even simple things complicated!

carpeperdiem 03-20-2007 03:09 PM

Re: Please Help - Tried to Make New Homepage - Big problems.....
 
Also -- calling your links with a full URL, such as;

Quote:

<a href="http://www.mytiddies.com/xcart/home.php?cat=266">

Is not needed... you can just use "/xcart/home.php?cat=266"

it will actually speed up your site a fraction...


All times are GMT -8. The time now is 03:02 AM.

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