Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product goes missing


jimmygreaves

Recommended Posts

Posted

Hello all - I've got a little problem with by product listing pages.

 

I'm using the "Product Listing Columns" columns contribution to display my items and i've incorporated a little script change so that a banner is displayed 2 rows down in the second column.

 

Trouble is when the banner is displayed it replaces the product which should have been shown 2 rows down in the second column.

 

How are the products called and identified from the database so I can shift the products down a row?

 

 

my code is included below -

 

 

..............................................

 

 

if ($column == 0) {

$list_box_contents[$row][$column] = array('align' => '',

'params' => '',

'text' => '<!-- column 01 product -->');

 

}

 

else {

 

if (($row == 2)&&($column == 1)) {

$list_box_contents[$row][$column] = array('align' => '',

'params' => 'valign="top"',

'text' => '' . tep_display_banner('dynamic', 'Home Banne') . '');

 

}

 

else {

$list_box_contents[$row][$column] = array('align' => '',

'params' => '',

'text' => '<!-- column 02 product -->');

 

}

 

}

$column ++;

if ($column >= 2) {

$row ++;

$column = 0;

}

 

..............................................

Archived

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

×
×
  • Create New...