Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Picture/Line between every row in product_listing.php


Fredrik.r

Recommended Posts

I have tried to modify catalog/includes/modules/product_listing.php but did not manage to fix it like I wanted. I would like a line/separator (picture) between every row in product_listing.php. Any suggestions how to do this is very much appreciated! Thanks!

Link to comment
Share on other sites

Around line 135,

 

$list_box_contents[$cur_row][] = array('align' => $lc_align,

'params' => 'class="productListing-data"',

'text' => $lc_text);

}

 

AFTER that, you can add

 

$list_box_contents[][] = array(

'params' => 'valign="middle" colspan="3"',

'text' => '<tr><td colspan="3">' . tep_draw_separator('pixel_gray.gif', '100%', '2') . '</td></tr>' );

 

Note that there's 2 closing brackets after the first part above, this extra code goes inbetween them.

 

The colspan would depend of course on how many columns you're displaying.

 

You'll probably want some padding there. Honestly, I still need to fix that part. I cheated w/the pixel_trans.gif above and below. I was just relieved to finally get it somehwhat close to what I wanted...so I stopped there :blush:

 

I have tried to modify catalog/includes/modules/product_listing.php but did not manage to fix it like I wanted. I would like a line/separator (picture) between every row in product_listing.php. Any suggestions how to do this is very much appreciated! Thanks!
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...