Jump to content

Archived

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

gaspower

Help Adding Categories To Product Listing

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

Share this post


Link to post
Share on other sites

Hello,

 

Sorry, I should have mentioned that inventory item ABC3010 is linked to categories BMW, Audi and Porsche.

 

Thanks JR

Share this post


Link to post
Share on other sites

×