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

custom welcome.tpl, can't display featured products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-04-2003, 09:22 PM
  hzellers's Avatar 
hzellers hzellers is offline
 

Senior Member
  
Join Date: Mar 2003
Location: Cortland, New York
Posts: 106
 

Default custom welcome.tpl, can't display featured products

Hi all! This SHOULD be a simple fix, but it's not so simple that I can do it. If you visit http://www.adorableagain.com/customer/home.php you'll see the photos I have in the welcome.tpl template.

I am trying to have the Featured Products appear beneath this area but whenever I try to paste the include call for the featured products it shifts everything all over the page and tries to place the features products to the far right side of the page.

The welcome.tpl reads as follows:

Code:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="624" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="243" rowspan="4" valign="top">[img]{$ImagesDir}/homepage3.jpg[/img]</td> <td height="38" colspan="5" valign="top">[img]{$ImagesDir}/homepage5.gif[/img]</td> </tr> <tr> <td width="9" rowspan="2" valign="top">[img]{$ImagesDir}/homepage4.gif[/img]</td> <td height="72" colspan="4" bgcolor="#4AB508"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">If you are looking for great clothing at great prices, you've found the right place! We carry a wide range of hand-selected new and pre-owned clothing for boys and girls ranging in size from 0-4T.</font></td> </tr> <tr> <td width="54" height="68" valign="top">[img]{$ImagesDir}/homepage3.gif[/img]</td> <td colspan="3" valign="middle" bgcolor="#4AB508"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">We also have some adorable gifts for the expectant mom so come take a look around! You'll be glad you did, and you'll be amazed at just how affordable adorable can be!</font></td> </tr> <tr> <td height="200" colspan="3" valign="top">[img]{$ImagesDir}/homepage4.jpg[/img]</td> <td width="138" valign="top">[img]{$ImagesDir}/homepage5.jpg[/img]</td> <td width="120" valign="top">[img]{$ImagesDir}/homepage6.jpg[/img]</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td width="60"></td> <td></td> <td></td> </tr> </table> </body>

Any tips or fast advice from the think tank?

Heather
__________________
Thank you!
Reply With Quote
  #2  
Old 08-05-2003, 06:02 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

remove the body tags.

they are already called by home.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-05-2003, 06:22 AM
  hzellers's Avatar 
hzellers hzellers is offline
 

Senior Member
  
Join Date: Mar 2003
Location: Cortland, New York
Posts: 106
 

Default

Hi there, I tried that and te result is the same. I've left it on the site for now so you can see what it is doing. Now, my code reads:

Code:
<table width="624" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="243" rowspan="4" valign="top">[img]{$ImagesDir}/homepage3.jpg[/img]</td> <td height="38" colspan="5" valign="top">[img]{$ImagesDir}/homepage5.gif[/img]</td> </tr> <tr> <td width="9" rowspan="2" valign="top">[img]{$ImagesDir}/homepage4.gif[/img]</td> <td height="72" colspan="4" bgcolor="#4AB508"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">If you are looking for great clothing at great prices, you've found the right place! We carry a wide range of hand-selected new and pre-owned clothing for boys and girls ranging in size from 0-4T.</font></td> </tr> <tr> <td width="54" height="68" valign="top">[img]{$ImagesDir}/homepage3.gif[/img]</td> <td colspan="3" valign="middle" bgcolor="#4AB508"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">We also have some adorable gifts for the expectant mom so come take a look around! You'll be glad you did, and you'll be amazed at just how affordable adorable can be!</font></td> </tr> <tr> <td height="200" colspan="3" valign="top">[img]{$ImagesDir}/homepage4.jpg[/img]</td> <td width="138" valign="top">[img]{$ImagesDir}/homepage5.jpg[/img]</td> <td width="120" valign="top">[img]{$ImagesDir}/homepage6.jpg[/img]</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td width="60"></td> <td></td> <td></td> </tr> </table> {include file="customer/main/featured.tpl" f_products=$f_products}

Thank you for your help!

Heather
__________________
Thank you!
Reply With Quote
  #4  
Old 08-05-2003, 06:28 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try this

Code:
<table width="624" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="243" rowspan="4" valign="top">[img]{$ImagesDir}/homepage3.jpg[/img]</td> <td height="38" colspan="5" valign="top">[img]{$ImagesDir}/homepage5.gif[/img]</td> </tr> <tr> <td width="9" rowspan="2" valign="top">[img]{$ImagesDir}/homepage4.gif[/img]</td> <td height="72" colspan="4" bgcolor="#4AB508"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">If you are looking for great clothing at great prices, you've found the right place! We carry a wide range of hand-selected new and pre-owned clothing for boys and girls ranging in size from 0-4T.</font></td> </tr> <tr> <td width="54" height="68" valign="top">[img]{$ImagesDir}/homepage3.gif[/img]</td> <td colspan="3" valign="middle" bgcolor="#4AB508"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">We also have some adorable gifts for the expectant mom so come take a look around! You'll be glad you did, and you'll be amazed at just how affordable adorable can be!</font></td> </tr> <tr> <td height="200" colspan="3" valign="top">[img]{$ImagesDir}/homepage4.jpg[/img]</td> <td width="138" valign="top">[img]{$ImagesDir}/homepage5.jpg[/img]</td> <td width="120" valign="top">[img]{$ImagesDir}/homepage6.jpg[/img]</td> </tr> <tr> <td height="1"></td> <td></td> <td></td> <td width="60"></td> <td></td> <td></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td>{include file="customer/main/featured.tpl" f_products=$f_products}</td> </tr> </table>
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 08-05-2003, 06:47 AM
  hzellers's Avatar 
hzellers hzellers is offline
 

Senior Member
  
Join Date: Mar 2003
Location: Cortland, New York
Posts: 106
 

Default

My hero! Worked like a charm, thank you!

Heather
__________________
Thank you!
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 10:55 PM.

   

 
X-Cart forums © 2001-2020