Magento CE 1.7.0.2 の新規インストールを使用しPRODUCT PAGEて、管理パネルを介して個々の製品を 1 列レイアウトに設定せずに、レイアウトを 1 列にしようとしています。
私が試したこと:
local.xmlテンプレート用に自分のlayoutフォルダにを作成しようとしました。そのlocal.xmlファイルは次のようになります。
<?xml version="1.0"?>
<layout>
<my_category_root_template>
<reference name="root">
<tpl>page/1column.phtml</tpl>
</reference>
<my_category_root_template>
<catalog_category_layered>
<update handle="my_category_root_template" />
</catalog_category_layered>
<catalog_category_layered_nochildren>
<update handle="my_category_root_template" />
</catalog_category_layered_nochildren>
<catalog_category_default>
<update handle="my_category_root_template" />
</catalog_category_default>
<!-- EDIT: forgot about search results page -->
<catalogsearch_advanced_result>
<update handle="my_category_root_template" />
</catalogsearch_advanced_result>
<layout>
のインスタンスも試してみましたが、それを無駄に2columns-right.phtml変更しようとしました。ステージング サイトであるため、キャッシュは無効になっていますが、念のため手動で削除しました。ここで何かが欠けていることは知っていますが、一生それを理解することはできません.1column.phtmlpage.xmlvar/cache