StepCopy to ClipboardSyntax Highlighter{{block type="catalog/product_list" template="catalog/product/new_products.phtml"}}create a template file called: new_products.phtml following code copy past in new_products.phtml fileCopy to ClipboardSyntax Highlighterdate()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT); $_productCollection=$this->getLoadedProductCollection(); $_productCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('*') ->addAttributeToFilter('news_from_date', array('date' => true, 'to' => $todayDate)) ->addAttributeToFilter('news_to_date', array('or'=> array( 0 => array('date' => true, 'from' => $todayDate), 1 => array('is' => new Zend_Db_Expr('null'))) ), 'left'); $now = date("Y-m-d"); $newsFrom= substr($_productCollection->getData('news_from_date'),0,10); $newsTo= substr($_productCollection->getData('news_to_date'),0,10); foreach ($_productCollection as $_product) { // print_r($_product); get product Collection //get your product } ?> step 2: create CMS blockCopy to ClipboardSyntax Highlighter{{block type="catalog/product_list" template="catalog/product/new_products.phtml"}}step 3: call block your requirementPublished On: December 27th, 2024 / Categories: iPhone, Magento / Categories Android (1) iPhone (2) Laravel (2) Magento (46) Magento 2 (8) PHP (6) services (1) UI/UX (1) Uncategorized (1) web design (4) Web Development (3) Wordpress (28) Work From Home (1)