[TYPO3-commerce] Mail sent to fe_user, not to billing address
Simon Lang
blubbfish at gmail.com
Tue Sep 4 14:31:34 CEST 2007
Hi
This code is in the method sendUserMail in the class tx_commerce_pi3
almost at the top:
if (is_array($GLOBALS['TSFE']->fe_user->user) &&
strlen($GLOBALS['TSFE']->fe_user->user['email'])) {
$userMail = $GLOBALS['TSFE']->fe_user->user['email'];
} else {
$userMail = $this->MYSESSION['billing']['email'];
}
When a user is not logged in, it takes the email from the billing
address. Thats ok.
However, when he is logged in, and he changed the email of the billing
address, the mail is sent to the fe_user email address and not the the
billing address.
For example a user is logged in and entered 10 different billing
addresses. The mail will be sent to the mail in the fe_users table
whichever billing address he choses.
Isnt it better to send the mail directly to the billing address, or to
the fe_user and the billing address?
Regards
More information about the TYPO3-project-commerce
mailing list