stevek1977 Posted February 14, 2003 Share Posted February 14, 2003 how would i go about getting the product listing in a box? basically i want to have a box that only lists the products in the category i am in. Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2003 Share Posted February 14, 2003 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 More sharing options...
stevek1977 Posted February 14, 2003 Author Share Posted February 14, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.