2014-09-23 101 views
0

我在我的magento迷你車中遇到問題。Magento迷你車不在產品頁面上更新

當我進入產品頁面並點擊添加到購物車時,我的迷你購物車不會更新並在產品頁面上顯示產品商品,但是隻要進入購物車頁面,產品就會添加到購物車中。

我創造了我的主題local.xml文件,並在這裏有這個代碼

<block type="checkout/cart_sidebar" name="custom_mini_cart" template="checkout/cart/mini.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> 

和我header.phtml

我打電話這個喜歡

$cart_html = $this->getChildHtml('custom_mini_cart'); 

它當我去購物車頁面或結帳頁面時,工作正常。

產品的數量和物品不minicart

產品頁面上顯示的任何幫助將不勝感激

感謝

+0

哪個magento版本?r使用? – 2014-09-24 01:47:10

回答

0

即使世界蛞蝓定義的頁面,這將工作的。

在這種情況下,它應該是蛞蝓

<default> 
    Your code goes here. 
</default> 

我的猜測是在你有它下:

<checkout_cart_index translate="label"> 
    I believe you probably have it under this one. 
</checkout_cart_index> 

什麼這個規定是,即使你要添加自己的內容到頭部。您只會將其添加到cart_index的頁面

希望這可以解決您的問題

相關問題