Thứ Ba, 28 tháng 12, 2010

how to get all products in magento

To get All products in magento Store not from a particular category or to get all products from default store in magento ,write the following code



<?php

Mage::getModel('catalog/product')->getCollection()->getData();

?>

Không có nhận xét nào:

Đăng nhận xét