解决magento1.6快速支付不能自动发送邮件的问题
来源:互联网 发布:matlab2016a怎么编程 编辑:程序博客网 时间:2024/05/17 01:46
Magento appears to have a bug whereby if a user places an order using paypal express when they’re not logged into your site (ie: using the ‘guest checkout’ functionality of magento their email address will not be passed through correctly. One annoying symptom of this is that the user won’t receive any order confirmation, or order update emails.
Solved problem
To fix temporarily Modify app/code/core/Mage/Paypal/Model/Express/Checkout.php and go down to: _prepareCustomerQuote() and insert the following line before “$quote->setCustomer($customer);” near the end of the function:
if(!($this->getCustomerSession()->isLoggedIn()))
{
if (isset($customerBilling)) {
$customer->setEmail($customerBilling->getEmail());
$customer->setFirstname($customerBilling->getFirstname());
$customer->setLastname($customerBilling->getLastname());
}
if (!$quote->getCustomerId()) {
$quote->setCustomerIsGuest(true)->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);
}}
website source:
http://www.magentocommerce.com/boards/viewthread/276648/
- 解决magento1.6快速支付不能自动发送邮件的问题
- 解决Bugfree不能定期发送统计邮件的问题
- 解决sendmail 不能发送邮件问题
- 自动发送邮件的问题
- 如何解决开启瑞星邮件监控,outlook不能发送邮件的问题
- 解决ios设备自带邮箱只能接收邮件不能发送邮件问题的方法
- TD无法发送邮件问题的解决
- bugzilla不能发送邮件问题
- Foxmail7.2不能发送hotmail的邮件的解决
- svn commit-email自动发送邮件乱码问题的解决,以及自己写svn同步邮件脚本
- phpmailer 在服务器上不能正常发送邮件的问题
- WordPress 在 Linux 下不能发送邮件的问题
- Magento1.9.1.0重要改进之一--邮件异步队列发送
- 解决Myeclipse不能自动编译的问题
- vbs自动发送邮件_遇到的问题
- 关于邮件的自动发送
- 解决linux上微信支付二维码不能显示的问题
- 关于Jmail不能发送邮件问题
- 在solaris中如何查看端口被哪个进程占用的方法
- 移动搜索引擎优化的10个小窍门
- SQL Server DATEDIFF() 函数
- android-mock-gps
- 如果不是异地
- 解决magento1.6快速支付不能自动发送邮件的问题
- 查看服务器进程使用情况
- SQL Date 函数
- 顺时针矩阵
- 谈谈vs2008水晶报表部署
- afx_msg
- (译)使用cocos2d、LevelHelper和SpriteHelper实现疯狂考拉(Part 2)
- namespace
- String 最大长度 及 String Pool