for new product list in magento 1.9 use this one
{{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}
或類別明智的房源
新RWD設計對產品列表中兩個子塊。 more info
<block type="core/text_list" name="product_list.name.after" as="name.after" />
<block type="core/text_list" name="product_list.after" as="after" />
你可以先打電話給你塊CMS主頁象下面這樣:
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}
現在在你的目錄/產品/ list.phtml發現號線74:133
發現這代碼
<?php
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
foreach($_nameAfterChildren as $_nameAfterChildName):
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
$_nameAfterChild->setProduct($_product);
?>
<?php echo $_nameAfterChild->toHtml(); ?>
<?php endforeach; ?>
與
取代
<?php
if($this->getChild('name.after')):
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
foreach($_nameAfterChildren as $_nameAfterChildName):
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
$_nameAfterChild->setProduct($_product);
?>
<?php echo $_nameAfterChild->toHtml(); ?>
<?php endforeach;
endif;
?>
走線無188
附加代碼到
if($this->getChild('after')):
//code
endif;
凱撒替換代碼,我在鏈接http://stackoverflow.com/questions/21241181/cms-page-with-layered-navigation-not-working/解釋這種類型的任務21242296#21242296 –
嗨艾米特你以前的帖子不幫我。你能否再次檢查我編輯的問題,並建議我該怎麼做。 – Kaiser
嗨kaiser,這是固定的 –