<?php
$collection = Mage::getResourceModel('catalog/product_collection');
$collection->addAttributeToFilter('status',1);
$collection->addAttributeToSelect(array('name','id','url','small_image')); //get product field
$collection->addStoreFilter();
?>
$collection = Mage::getResourceModel('catalog/product_collection');
$collection->addAttributeToFilter('status',1);
$collection->addAttributeToSelect(array('name','id','url','small_image')); //get product field
$collection->addStoreFilter();
?>
No comments:
Post a Comment