Magento结帐时商品名称消失 [英] Item names disappear on checkout in Magento

查看:72
本文介绍了Magento结帐时商品名称消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Magento网站出现问题,结帐后未清除注册客户购物车中的物品.因此,我搜索了stackoverflow并找到了以下解决方案: magento购物车无法清除

I have a problem in my Magento site wherein an item in a cart of a registered customer doesn't get cleared after checking out. Thus I searched stackoverflow and found this solution: magento shopping cart does not get clear

通过将其添加到我的一页结帐phtml文件中来实现它之后,商品名称和图片就会消失.

After implement it by adding this in my one page checkout phtml file, the item names and picture disappear.

 foreach( Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item ){

     Mage::getSingleton('checkout/cart')->removeItem( $item->getId() )->save();
 }

现在,我可以毫无问题地下订单了.现在,结帐后,购物车便会清除.但是,在评论区中,我只能看到价格,商品名称,描述和照片现在不见了. :(

Now, I can place an order without any problems. The cart now clears after checking out. However, in the reviews block, I can only see the prices, the item name, description and photo are now gone. :(

我认为问题出在这一行,但我不确定:-> getQuote()-> getItemsCollection()为$ item.也许我的$ item是不同的,或者应该替换成显示项目的东西.

I think the problem is in this line, but I'm not sure: ->getQuote()->getItemsCollection() as $item. Maybe my $item is different or should be replace to something to show the items.

我错过了什么还是忘记了在代码中添加一些内容? :(

Did I miss something or forgot to add something in the code? :(

推荐答案

首先删除代码,并检查是否已安装任何第三方模块.

First of remove the code and check any third party module have you installed.

如果然后禁用该模块并进行检查.

If then disabled that module and check it.

这篇关于Magento结帐时商品名称消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆