2014-04-04 59 views

回答

6

TO,你需要編輯你的主題和 的customer.xml佈局文件,並在標籤內<customer_account>移動這個移動導航菜單部分。

<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> 

卸下如果從標籤<reference name="left">裏面<reference name="content">

而且爲了從2columns-left模板更改爲1column,更改相同的標籤<customer_account>裏面,這樣的:

<reference name="root"> 
    <action method="setTemplate"><template>page/2columns-left.phtml</template></action> 
</reference> 

這樣:

<reference name="root"> 
    <action method="setTemplate"><template>page/1column.phtml</template></action> 
</reference> 

你可能需要做一些CSS改變之後,使導航菜單適合您的主題。

+0

感謝這個夥伴。像魅力一樣工作!我只是想知道如何讓我的local.xml而不是更改customer.xml? – user3364265

1

打開app\design\frontend\YOUR_THEME_TEMPLATE\default\layout\customer.xml文件。
在這種customer_account chnage

<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
<action method="setTemplate"><template>page/1column.phtml</template></action>
有關頂部看到的帳戶鏈接: - Magento - How to add/remove links on my account navigation?