Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product listing in a box?


stevek1977

Recommended Posts

You could use <table> commands to create the box around the products listing. It wouldn't be that dificult to do.

 

Also, do you have your product listings in multiple columns, or the default, single column product listing? Either way, its definitely possible.

 

-R

Link to comment
Share on other sites

i spent some time hacking on the code last night and got it to work wit the help of the Simple Category/Product Tree contrib.

 

  function tep_show_subcategory($counter) {

   global $foo, $categories_string, $id;

$categories_string .= '<table class="infoBoxContents">';



$products_in_category_query = tep_products_in_category($counter);



while ($products_in_category = tep_db_fetch_array($products_in_category_query))

{

$product_id_h = 'products_id='.$products_in_category ['product_id'];

$product_name_h = $products_in_category ['product'];

     if ($product_name_h != "")

 {

 $categories_string .= '<tr><td class="boxText"><img src="/msite/images/arrow_sub.gif"></td><td class="boxText"><a href="'. tep_href_link(FILENAME_PRODUCT_INFO, $product_id_h). '">' .$product_name_h . '</a></td></tr>';

 }

}

$categories_string .= '</table>';

}

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...