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

Please Help - Tried to Make New Homepage - Big problems.....

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-20-2007, 08:06 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Unhappy 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>
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #2  
Old 03-20-2007, 08:59 AM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-20-2007, 09:07 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default 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)?
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #4  
Old 03-20-2007, 09:15 AM
 
balinor balinor is offline
 

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

Default 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>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-20-2007, 10:03 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Thumbs up 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?
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #6  
Old 03-20-2007, 10:05 AM
 
balinor balinor is offline
 

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

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 03-20-2007, 10:44 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default Re: Please Help - Tried to Make New Homepage - Big problems.....

You are awesome!

I think I've been looking at this stuff so long that I'm making even simple things complicated!
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #8  
Old 03-20-2007, 03:09 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 01:37 PM.

   

 
X-Cart forums © 2001-2020