Opened 6 years ago
Closed 6 years ago
#1824 closed Bug/Fehler (fixed)
Willkommens Gutschein/Coupon Problematik aufgrund von Schalter SEND_MAIL_ACCOUNT_CREATED
| Reported by: | Torsten Riemer | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.6.0 |
| Component: | Shop | Version: | 2.0.5.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Wir versenden eine Account-Erstellungs E-Mail nur dann, wenn unter "Konfiguration" -> "E-Mail Optionen" -> "E-Mail bei Kontoerstellung" auf "Ja" steht.
Die Einstellung kam mit Shopversion 2.0.0.0 hinzu und wird standardmäßig auf "Nein" gesetzt.
Aktualisiert man nun einen 1.0x Shop, der entweder im Feld Willkommens Gutschein oder Coupon einen Wert einträgt und davon ausgeht, dass der Kunde diesen auch erhält, dann wird kein Code an den Kunden versendet.
Wir sollten den Code in der "create_(guest_)account.php" entsprechend überarbeiten:
if (SEND_EMAILS == 'true' && SEND_MAIL_ACCOUNT_CREATED == 'true') {
xtc_php_mail(EMAIL_SUPPORT_ADDRESS,
EMAIL_SUPPORT_NAME,
$email_address,
$name,
'',
EMAIL_SUPPORT_REPLY_ADDRESS,
EMAIL_SUPPORT_REPLY_ADDRESS_NAME,
'',
'',
EMAIL_SUPPORT_SUBJECT,
$html_mail,
$txt_mail);
}
Alternativ können wir auch einfach bei den Config-Feldern für den Willkommens Gutschein/Coupon einen Hinweis schreiben, dass die Einstellung "Konfiguration" -> "E-Mail Optionen" -> "E-Mail bei Kontoerstellung" auf "Ja" gestellt werden muss.

In 12753: