magento 付款失败之后购物车被清空的解决方法
2013-05-15 15:38
309 查看
magento 购物车用支付宝准备购买,如果跳到了支付宝页面,却没有付款,返回到购物车中,会发现下的单居然被清空了,这个时候需要重新添加购物车,多麻烦 。
解决方法如下:
sudo vim app/code/core/Mage/Checkout/controllers/OnepageController.php
556 //$this->getOnepage()->getQuote()->save();
557 /*
558 when there is redirect to third party, we don't want to save order yet.
559 we will save the order in return action.
560 /
561 if (isset($redirectUrl)) {
562 $result['redirect'] = $redirectUrl;
563 }else{
564 $this->getOnepage()->getQuote()->save();
565 }
566
注释掉 556 行,新添 564行。
解决 。
解决方法如下:
sudo vim app/code/core/Mage/Checkout/controllers/OnepageController.php
556 //$this->getOnepage()->getQuote()->save();
557 /*
558 when there is redirect to third party, we don't want to save order yet.
559 we will save the order in return action.
560 /
561 if (isset($redirectUrl)) {
562 $result['redirect'] = $redirectUrl;
563 }else{
564 $this->getOnepage()->getQuote()->save();
565 }
566
注释掉 556 行,新添 564行。
解决 。
相关文章推荐
- Magento安装插件失败出现503错误的解决方法
- [企业公众号]升级到[企业微信]之后发送消息失败的解决方法
- Apache添加LoadModule之后重启失败 The requested operation has failed! 解决方法
- ecshop退出登录会清空购物车的bug优化,最完美解决方法
- 【原创】2016年2月14日之后 打ipa包或者提交苹果AppStore失败 证书状态提示“此证书的签发者无效”的解决方法
- 在cron启动定时任务后总是会启动一个[sendmail] 进程的解决方法, 并且每次cron任务之后msmtp.log总是记录一条发送失败的日志
- 关于优酷视频上传失败或暂停之后一直处于上传中或者处理中删除不掉的解决方法
- Magento安装插件失败出现503错误的解决方法
- Magento模板Paypal付款不成功返回清空购物车产品【解决方案】
- ECSHOP购物车商品自动清空问题解决方法改善会员体验
- 解决ecshop退出登录会清空购物车的bug优化最完美方法
- Magento:Paypal付款不成功返回后不要清空购物车产品的解决方案
- magento安装好之后后台登陆不进去的解决方法
- 关于优酷视频上传失败或暂停之后一直处于上传中或者处理中删除不掉的解决方法
- 解决 oracle 用户连接失败的方法
- 关于JavaWeb项目导入之后jsp报错解决方法
- Eclipse 插件安装方法和插件加载失败解决办法
- WIN7中安装WINCE SDK失败的解决方法
- iOS开发-iOS11获取定位权限失败的解决方法
- VS2010 LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 的解决方法