The ec_useracc module send blank emails with a manual payment when I change the payment status to completed.
The problem appears to be that variable_get(ECMAIL_TYPE_SITE_WELCOME, 0) returns an incorrect value.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ec_useracc-patch_fix-blank-emails.txt | 2.34 KB | jbjaaz |
Comments
Comment #1
jbjaaz commentedTry changing line 506 in ec_useracc.module from
$mid = variable_get(ECMAIL_TYPE_SITE_WELCOME, 0);
to
$mid = variable_get(MAILVAR_SITE_WELCOME, 0);
Now, I'm having trouble with the tokens. For example, [user] doesn't seem to get set and shows up as "[user]" in the email.
Comment #2
jbjaaz commentedYou also have to apply the patch from http://drupal.org/node/124266 for the tokens to work
Comment #3
jbjaaz commentedDisregard my #2 response. That patch is for the 5.x-3.x-dev version and I believe the second part of the patch is incorrect.
My issues
- blank email
- once I fixed the blank email, I noticed certain tokens weren't being filled in in the site welcome email
- also noticed that the ECMAIL_TYPE_SITE_WELCOME tokens were never being displayed when you clicked "See available tokens" from ecsettings/ec_mail
The person who started this post says the blank email happens when a manual payment is entered. I'm not sure if this patch fixes that. My issue occurred when an anonymous user finished a purchase and their user account was created.
-john
Comment #4
brmassa commentedGuys,
its fixed on eCommerce 4. eC3 still needs the patch.
regards,
massa
Comment #5
gordon commentedPorted to 5.x-3.x-dev and 4.7.x-3.x-dev
Comment #6
(not verified) commented