Monday, 22 September 2014

magento product collection with specific id


magento product collection with specific id

    $productIds = array(1,3,2);
    $products = Mage::getModel('catalog/product')->getCollection()
                ->addAttributeToFilter('entity_id', array('in' => $productIds));

No comments:

Post a Comment