Nogard
Nogard

Reputation: 172

Magento cart disappears when the position is changed

When i try to change:

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

in app\design\frontend\base\default\layout\checkout.xml

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

my cart vanish. The caching is off.

Upvotes: 1

Views: 449

Answers (2)

jrosell
jrosell

Reputation: 1534

Try to set name=left.cart_sidebar And remove name=cart_sidebar

Upvotes: 0

ThreeCheeseHigh
ThreeCheeseHigh

Reputation: 1498

Possible reasons are:

  1. There's no left structural block (check which template is in use)
  2. The left structural block is removed by <remove name="left"/>

Upvotes: 1

Related Questions