I want to separate attributes according to product category id on product compare page. means on ../catalog/product/compare/list.phtml
anyone can help me?
$_product = Mage::getModel('catalog/product')->load($_item->getId()); $ids = $_product->getCategoryIds(); $categoryId = (isset($ids) ? $ids : null);
I know that loading a product in a loop may lead to performance issues but how many products can you have in a comparison list? I think it's safe to say, not that many.