View Full Version : SKU Question - How to display SKU on category pages?

02-09-2010, 02:50 AM
I'm currently modifying my template to include the SKU near the product name on the category pages... the %%GLOBAL_SKU%% value does not seem to work on category pages. Anyone know what value to use to display individual product SKU's on the category pages?

02-16-2010, 07:50 AM
I'm wondering the exact same thing!

02-16-2010, 10:26 PM
Assuming you are using 5.5x, open /includes/display/CategoryContent.php and look around line 61 for $GLOBALS['ProductRating'] = (int)$row['prodavgrating'];
Just below that line, enter $GLOBALS['ProductCode'] = $row['prodcode'];

Next you'll want to edit /templates/YourTemplate/Snippets/CategoryProductsItemList.html. Do this either through the template editor in admin or with your text editor. Add the following to where you'd like the SKU to show.SKU#: %%GLOBAL_ProductCode%%

These instructions may vary a bit depending on whether you are using grid or list mode to display products but this should get you started. If get stuck, post what version of ISC you are using and whether your categories are list or grid.