尝试在 cms->page->design tab->Layout Update XML 中编写以下代码
<reference name="content">
<block type="catalog/product_list" name="featured" template="catalog/product/new.phtml">
</block>
</reference>
您必须在“app\design\frontend\default\default\template\catalog\product”中添加 new.phtml 文件
在 new.phtml 文件中写入以下代码
<?php
/******************
//Recently Added Products
************************/
$_helper = $this->helper('catalog/output');
$_productCollection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect('*')
->setVisibility(array(2,3,4))
->setOrder('created_at', 'desc');
?>
<div style="clear: both;"></div>
<div id="block">
<div class="text">Recently Added Products
<a href="<?php echo $this->getUrl("recent_added"); ?>" class="link"> View more » </a>
</div>
</div>
<?php foreach($_productCollection as $_product) : ?>
<div class="grid">
<div class="imgholder" >
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"
class="product-image">
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135"
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<strong><a href="<?php echo $_product->getProductUrl(); ?>" style="color:#039;"><?php echo $_product->getName(); ?></a></strong>
<p><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></p>
<div class="price">
<?php echo $this->getPriceHtml($_product, true) ?>
</div>
</div>
<?php endforeach; ?>