请帮帮我.我想在magento中更改购物车页面的模板页面布局.
以下是网址:http://www.wildgoosetrading.com/index.php/checkout/cart/
我希望这看起来像其他类别的页面.
提前致谢.
您可以在checkout.xml布局文件中设置购物车的模板.
在checkout_cart_index(直接<default>)部分中查找以下块并更改购物车页面正在使用的模板;
<!-- Mage_Checkout -->
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
Run Code Online (Sandbox Code Playgroud)
编辑
我知道这是公认的答案,但是soipo的答案是更好的方法.将更改应用于local.xml,不要修改核心布局文件,使用主题布局中的local.xml覆盖它们.见http://www.classyllama.com/development/magento-development/the-better-way-to-modify-magento-layout
在local.xml文件中,您只需添加以下内容:
<checkout_cart_index translate="label">
<reference name="root">
<action method="setTemplate"><template>page/3columns.phtml</template ></action >
</reference>
Run Code Online (Sandbox Code Playgroud)
只需将模板更改为您需要的模板即可.
| 归档时间: |
|
| 查看次数: |
22705 次 |
| 最近记录: |