我設法按類別一起展示新產品和產品的這些如何顯示在我的主頁的所有產品在Magento 1.7
{{塊型=「目錄/ product_new」 COLUMN_COUNT =「6」 products_count =」 3" 名稱= 「home.catalog.product.new」 別名= 「PRODUCT_HOMEPAGE」 模板= 「目錄/產品/ new.phtml」}}
{{塊類型= 「目錄/所屬類別」 CATEGORY_ID =」 10「 template =」catalog/product/list.phtml「}}
但我真的希望在我的商店中顯示整個產品,而不管它們的類別是否可能?
我的根類別ID是3,所以我試圖與這條線,但沒有運氣可言,
{{塊類型= 「目錄/所屬類別」 CATEGORY_ID = 「3」 模板=「目錄/ product/list.phtml「}}
任何想法?
我使用的樣本數據來測試Magento的,所以我必須低於這個數據,
Root Catalog (0)
Furniture (7)
Electronics (42)
Apparel (66)
編輯:
home.phtml
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package base_default
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
There was no Home CMS page configured or found.
閱讀這篇文章可能對您有幫助http://www.magentocommerce.com/boards/viewthread/19173/ –