tags:

views:

896

answers:

2

How i change the position of module of magento cart (top/button...left/Right)??

A: 

Hello Moon
your answer is so simple that is very difficult to help you,
please try to be more specific to get a more detailed answer.

Anyway the cart module is defined in the /template/checkout/cart.phtml
for positiong in you pages you should first must understand how the layout/*.xml works.

Bye Giuseppe

Giuseppe
+1  A: 

The quick and dirty way is to change the checkout.xml layout file.

open

frontend/default/default/layout/checkout.xml

find the line that says

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

and change reference name to left,top,root,content etc... This determines the position of the cart in the layout

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

You may have to clear your cache or delete /var/cache to see your changes.

The proper way to this would be to override the checkout Module , look at the magento wiki to learn more about overriding modules.

Rick J