Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extra Rows showing up - how to remove?


Guest

Recommended Posts

I am customizing new_products.php file for my main page. To get a unique look for this box, I duplicated the contentBox function in boxes.php and renamed it newprodBox with the following settings:

  class newprodBox extends tableBox {
   function newprodBox($contents) {
     $info_box_contents = array();
     $info_box_contents[] = array('text' => $this->newprodBoxContents($contents));
  $this->table_width = '560';
     $this->table_cellpadding = '1';
     $this->table_parameters = 'style="background:#FFFFFF" valign=top';
     $this->tableBox($info_box_contents, true);
   }

   function newprodBoxContents($contents) {
     $this->table_cellpadding = '3';
     $this->table_cellspacing = '4';
     return $this->tableBox($contents);
   }
 }

I also modified the code in new_products.php to display 4 products at at time, like so:

  $row = 2;
 $col = 1;

--and --

   $col ++;
   if ($col > 1) {
     $col = 0;
     $row ++;
   }
 }

 

The file displays as I would like except for one thing - when I view the source there shows 3 extra rows for the content box. I've been tearing my hair out trying to figure out why and cannot find any information on how to correct this.

 

Hoping someone can help! :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...