Magento – products block
Go to “CMS – Manage Pages” and select the page do you want to display the products from the list of pages. Use next code…
Go to “CMS – Manage Pages” and select the page do you want to display the products from the list of pages. Use next code…
Next code is a sample to extract all products from a specific category: $prodCat = Mage::getModel(‘catalog/category’)->load($catId); $prodCat = $prodCat->getProductCollection(); foreach( $prodCat->getAllIds() as $prodId) { $_product=Mage::getModel(‘catalog/product’)->load($prodId);…