Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product listing seperator


Guest

Recommended Posts

Posted

i need to place a custom seperator between each item..

 

i mucked with:

 

includes/modules/product_listing.php

 

but cant seem to get it down...

 

here is an example of what i am trying to accomplish.

 

http://www.jubierock.com/example.png

 

if someone can point me in the right direction and give me a code example

i would really appreciate it.

 

thanks!

Posted

find this line:

 

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

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

                                              'text'  => $lc_text);

}

 

 

after that, add this

 

$list_box_contents[$cur_row+1][] = array('align' => 'center',

                                        'params' => 'colspan="' . $colspan . '" width="100%"',

                                        'text'  => tep_draw_separator('pixel_silver.gif', '100%', '10') );

 

so it will look something like this:

 

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

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

                                              'text'  => $lc_text);

     }

$list_box_contents[$cur_row+1][] = array('align' => 'center',                                         'params' => 'colspan="' . $colspan . '" width="100%"',                                         'text'  => tep_draw_separator('pixel_silver.gif', '100%', '10') );

 }

   new tableBox($list_box_contents, true);

 

 

 

that should do what you need (obviously you need to change "pixel_silver.gif" to be whatever you called your image.

Posted

thanks!

 

you rock and did the trick..

 

the only thing i had to change was the $colspan variable.

 

i hard set it to 7 because anything less than that the page squished up.

 

thanks again.

Archived

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

×
×
  • Create New...