Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Adding Categories To Product Listing


gaspower

Recommended Posts

Hello,

 

I would really appreciate some help. I am trying to add categories to my product listings. I am using OSC2.31, and my current code is below. I attached images to show before and after.

 

case 'PRODUCT_LIST_NAME':
		if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
		  $prod_list_contents .= '		<td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing[$x]['products_id']) . '">' . $listing[$x]['products_name'] . '</a></td>';
		} else {
		  $prod_list_contents .= '		<td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '">' . $listing[$x]['products_name'] . '</a></td>';
		}
		break;

 

 

 

Thank you very much JR

post-12968-0-53642800-1344435583_thumb.jpg

post-12968-0-13303600-1344435591_thumb.jpg

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...