Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"You'll also like" / right panel dosent show any products !!


louisoh

Recommended Posts

As my 'right panel dosen't show up on all pages except index.html.... this is the chunck of code that i think is the root of the problem... can someone help to go tru it and tell me wat's wrong ?

 

Thanks!

 

 

 

 

<table cellspacing=0 cellpadding=0>

<tr><td background=images/m27.gif width=160 height=36 colspan=10 class=bc><b>      You\'ll also like</b></td></tr>

<tr><td colspan=10 height=8 bgcolor=#EFF3F3></td></tr>

<tr>

';

 

 

while ($new_products = tep_db_fetch_array($new_products_query)) {

$new_products['products_name'] = tep_get_products_name($new_products['products_id']);

if (tep_not_null($new_products['specials_new_products_price'])) {

$price = '<span style="font-size:9px"><s>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</s></span><br><br style="font-size:2px"><span class=bc1>' . $currencies->display_price($new_products['specials_new_products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</span>';

} else {

$price = '<span class=bc1>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</span>';

}

echo '

<td valign=top bgcolor=#EFF3F3>

<table cellspacing=0 cellpadding=0 align=center width=140>

<tr><td valign=top width=52><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_description '], 52, 64, ' class=br') . '</a></td>

<td width=10></td>

<td valign=top width=78>

<table cellspacing=0 cellpadding=0>

<tr><td><b><a class=th9 style="text-decoration:underline" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a></b><br><br class=px2></td></tr>

<tr><td height=46 valign=bottom>'.$price.'</td></tr>

</table>

</td></tr>

<tr><td colspan=10 height=31 bgcolor=#EFF3F3 align=center><hr size=1 style="color:#DBD6D6"></td></tr>

</table>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...