$collection = Mage::getModel(‘catalog/category’)->load($categoryId)
->getProductCollection()
->addAttributeToSort(‘name’, ‘ASC’);
echo $collection->printlogquery(‘true’);
->getProductCollection()
->addAttributeToSort(‘name’, ‘ASC’);
echo $collection->printlogquery(‘true’);
No comments:
Post a Comment