1

現在、最新バージョンのMagento1.7.0.2を使用しています。顧客がログオンすると、左側のナビゲーションメニューに、通常の2列のアカウントの詳細が表示されます。ダッシュボードページが1列だけになるように、このナビゲーションを削除する必要があります。また、削除した後の左側のナビゲーションの空きスペースは必要ありません。local.xmlで試してみましたが、顧客のナビゲーションメニューが削除されましたが、左側のサイドバーがあるページでもそのサイドバーが失われます。カスタムテンプレートを実行していて、customer.xmlファイルはapp / design / frontend / base / default/layoutにあるだけであることに注意してください。私のlocal.xmlは/app/ design / frontend / default / custom_template/layoutにあります。

これをどのように行うことができ、編集する必要のあるファイルのパスは何ですか。どんな助けでも大歓迎です。これがcustomer.xmlの顧客の私のアカウントレイアウトのコードです

<customer_account translate="label">
    <label>Customer My Account (All Pages)</label>
    <!--remove name="catalog.compare.sidebar"/>
    <remove name="sale.reorder.sidebar"/-->
    <!-- Mage_Customer -->
    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>

    <reference name="content">
        <block type="page/html_wrapper" name="my.account.wrapper" translate="label">
            <label>My Account Wrapper</label>
            <action method="setElementClass"><value>my-account</value></action>
        </block>
    </reference>

    <reference name="left">
        <block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
            <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
            <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
            <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
        </block>
        <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">
            <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
        </block>
        <block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
        <remove name="tags_popular"/>

    </reference>
</customer_account>
4

1 に答える 1

3

必要に応じて、ダッシュボード ページのみに 1 列のレイアウトを使用します customer_account_index。これは顧客アカウントのダッシュボード レイアウト用であるため、レイアウト ハンドルで変更を行います。

また、ハンドルを変更するとcustomer_account、特定のハンドルを更新しない限り、すべての顧客ページに適用されます。

このヘルプを願っています!!

于 2012-10-15T06:39:56.460 に答える