解决magento1.6快速支付不能自动发送邮件的问题
2012-09-18 15:48
567 查看
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/
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/
相关文章推荐
- magento新闻邮件发送一直处于“正在发送”状态问题解决
- 解决sendmail 不能发送邮件问题
- 解决 !!discuz各种版本不能发送邮件的问题
- 解决exchange 2013发送邮件都在草稿箱内不能发送和删除问题
- svn commit-email自动发送邮件乱码问题的解决,以及自己写svn同步邮件脚本
- Mac自带mail客户端只能收不能发送邮件问题解决
- magento 如何在跳转到支付界面前自动发送邮件
- 解决magento新闻邮件发送一直处于“正在发送”状态问题
- 关于saba不能发送中文邮件问题解决
- magento 如何在跳转到支付界面前自动发送邮件
- 关于自动发送邮件换行等问题解决
- 解决Thunderbird 邮件客户端不能发送邮件问题的方法
- JavaMail邮件发送在linux环境下不能发送的问题解决
- 解决ios设备自带邮箱只能接收邮件不能发送邮件问题的方法
- LNMP系列教程之 解决sendmail不能发送邮件问题
- magento新闻邮件发送一直处于“正在发送”状态问题解决
- 解决Bugfree不能定期发送统计邮件的问题
- 使用 Mailx 通过 SMTP 在 Centos 上发送邮件,解决 WordPress 发送邮件问题,解决centos7不能发送邮件的问题
- 如何解决开启瑞星邮件监控,outlook不能发送邮件的问题
- jQuery EasyUI动态添加控件或者ajax加载页面后不能自动渲染问题的解决方法