| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Please Help - Tried to Make New Homepage - Big problems..... | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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;"> </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> </td> <td width="225"> </td> </tr> <tr> <td colspan="2"><img src="skin1/images/splash-06.gif" width="468" height="260"></td> </tr> </table> <p align="center"> </p> <p align="center" class="style1">Welcome to Tiddies! </p> <hr noshade style="COLOR: #006666; HEIGHT: 1px;"> </td> </tr> <tr> <td align="center"><p> </p> <p><a href="index.php" class="style2"><font style="font-size: 12 px; TEXT-DECORATION: underline;">ENTER THE STORE</font></a></p> <p> </p></td> </tr> </table></TD> </TR> </TABLE> </BODY> </HTML> |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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)? |
|||||||
#4
|
|||||||
|
|||||||
![]() 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;"> </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> </td> <td width="225"> </td> </tr> <tr> <td colspan="2"><img src="skin1/images/splash-06.gif" width="468" height="260"></td> </tr> </table> <p align="center"> </p> <p align="center" class="style1">Welcome to Tiddies! </p> <hr noshade style="COLOR: #006666; HEIGHT: 1px;"> </td> </tr> <tr> <td align="center"><p> </p> <p><a href="index.php" class="style2"><font style="font-size: 12 px; TEXT-DECORATION: underline;">ENTER THE STORE</font></a></p> <p> </p></td> </tr> </table></TD> </TR> </TABLE>
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() 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? |
|||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
#7
|
|||||||
|
|||||||
![]() ![]() ![]() I think I've been looking at this stuff so long that I'm making even simple things complicated! |
|||||||
#8
|
|||||||
|
|||||||
![]() Also -- calling your links with a full URL, such as;
Quote:
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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|