我累了将"我的购物车"框从右列移到左列,并按照 http://www.magentocommerce.com/design_guide/articles/intro-to-layouts 的说明进行操作。我在结帐时更改<reference name="right"> to <reference name="left">
.xml .之后,"我的购物车"从右侧消失,但不显示在左侧。我不明白有什么问题。 请帮助我。
Saifur,首先从/magentodic/delete var/cache folder
清除缓存如果它不起作用,请检查checkout.xml
<default>
...
<reference name="left">
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
<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 type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
</default>
应in <default></default> tag in checkout.xml
此语法
确保已将页面模板设置为剩余 2 列:
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
转到Magento管理面板,然后在CMS/页面中设置您想要的页面3列布局。可能是主页。确保您拥有正确的商店视图。