Magento 购物车在位置改变时消失

发布于 2024-12-16 02:08:16 字数 450 浏览 1 评论 0原文

当我尝试更改:

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

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

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

人│生佛魔见 2024-12-23 02:08:17

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

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

厌倦 2024-12-23 02:08:16

可能的原因有:

  1. 没有左侧结构块(检查正在使用哪个模板)
  2. 左侧结构块被 删除

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"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文