Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove box heading and box around the new products!


star8

Recommended Posts

Posted

HI!

 

I want to remove the box and the title around the "new products in december" . I want just to feature products not in the box.

Where do I remove it?

Please help! :'(

Thanks.

Posted

in includes/modules/new_products.php change:

  $info_box_contents = array();
 $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

 new contentBoxHeading($info_box_contents);

to

echo "<table><tr><td>" . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . "</tr></td></tr>";

 

and change

new contentBox($info_box_contents)

to something like

echo "<tr><td>" . $info_box_contents . "</td></tr></table>";

have fun trying out your own layout there :D

Posted

hmm, that last would not work since it is an array:

you could then change that last one to:

echo '<tr><td>';
for($aa=0, $bb=sizeof($info_box_contents); $aa<$bb; $aa++){
echo $info_box_contents[$aa][1] . '<BR />' .  $info_box_contents[$aa][2] . '<BR />' .  $info_box_contents[$aa][3];
if(($aa+1)<$bb) echo '<BR />';
}
echo "</td></tr></table>";

so

new contentBox($info_box_contents)

is replaced with the above

 

feel free to replace the <BR /> with any code you would like to see there.

Archived

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

×
×
  • Create New...