【问题标题】:Magento cart disappears when the position is changed更改位置时 Magento 购物车消失
【发布时间】:2011-11-17 13:59:43
【问题描述】:

当我尝试改变时:

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

在 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"/">

我的购物车消失了。缓存已关闭。

【问题讨论】:

  • 左边已经有内容了吗?

标签: php magento


【解决方案1】:

可能的原因有:

  1. 没有左结构块(检查正在使用的模板)
  2. 左侧结构块被&lt;remove name="left"/&gt;移除

【讨论】:

    【解决方案2】:

    尝试设置name=left.cart_sidebar 并删除 name=cart_sidebar

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-06
      • 1970-01-01
      相关资源
      最近更新 更多