メモ。詳細解り次第追記
Webブラウザ上で編集しないで、ソースコードを直接編集するやり方。
■ ページを無効化
管理画面からデフォルトページを無効にしておく。
「CMS」→「ページ」
URLキーがhomeとなっているページを編集。
「ページ情報」の「状態」を無効にして保存する。
■ デフォルトページ設定
※サンプル
パス:[Magento-Install-Path]/app/design/frontend/mystore/layout/cms.xml
(1) テンプレートファイルを指定
actionノード内のtemplateノードにテンプレートファイルパスを記述。
<reference name="root">
<action method="setTemplate"><template>テンプレートファイルパス</template></action>
</reference>
(2) テンプレートにウィジェットを配置
<reference name="content">
<block type="core/template" name="default_home_page" template="コンテンツファイルパス"/>
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
■ タイプ(新規商品)
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
■ タイプ(最近見た商品)
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
■ タイプ(最近比較した商品)
<block type="reports/product_compared" name="home.reports.product.compared" template="reports/home_product_compared.phtml" after="product_viewed">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
↓すべて見る