Php 如何更改magento购物车模块的位置?

Php 如何更改magento购物车模块的位置?,php,magento,module,themes,cart,Php,Magento,Module,Themes,Cart,如何更改magento购物车模块的位置(顶部/按钮…左/右)?快速而肮脏的方法是更改checkout.xml布局文件 打开 找出那句话 <reference name="right"> <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-"> ..........................

如何更改magento购物车模块的位置(顶部/按钮…左/右)?

快速而肮脏的方法是更改checkout.xml布局文件

打开

找出那句话

<reference name="right">
    <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
        ............................
    </block>
</reference>

............................
并将引用名称更改为left、top、root、content等。。。这将确定购物车在布局中的位置

<reference name="left">
    <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
        ............................
    </block>
</reference>

............................
您可能必须清除缓存或删除/var/cache才能查看更改


正确的方法是覆盖checkout模块,请查看magento wiki以了解有关覆盖模块的更多信息。

快速而肮脏的方法是更改checkout.xml布局文件

打开

找出那句话

<reference name="right">
    <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
        ............................
    </block>
</reference>

............................
并将引用名称更改为left、top、root、content等。。。这将确定购物车在布局中的位置

<reference name="left">
    <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
        ............................
    </block>
</reference>

............................
您可能必须清除缓存或删除/var/cache才能查看更改

正确的方法是重写签出模块,请查看magento wiki以了解有关重写模块的更多信息