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)
-   -   custom welcome.tpl, can't display featured products (https://forum.x-cart.com/showthread.php?t=3879)

hzellers 08-04-2003 09:22 PM

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

shan 08-05-2003 06:02 AM

remove the body tags.

they are already called by home.tpl

hzellers 08-05-2003 06:22 AM

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

shan 08-05-2003 06:28 AM

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>


hzellers 08-05-2003 06:47 AM

My hero! Worked like a charm, thank you!

Heather


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

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