Monday 18 August 2014

How to disable product which don't have image in magento

first comment these lines .

<?php /*?><?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
<?php $_columnCount = $this->getColumnCount(); ?><?php */?>

and replce this code :-

<?php $_products = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('small_image',array('neq'=>'no_selection'));
?>

No comments:

Post a Comment