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.

CommentFileSizeAuthor
#3 ec_useracc-patch_fix-blank-emails.txt2.34 KBjbjaaz

Comments

jbjaaz’s picture

Try 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.

jbjaaz’s picture

You also have to apply the patch from http://drupal.org/node/124266 for the tokens to work

jbjaaz’s picture

Status: Active » Needs review
StatusFileSize
new2.34 KB

Disregard 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

brmassa’s picture

Status: Needs review » Patch (to be ported)

Guys,

its fixed on eCommerce 4. eC3 still needs the patch.

regards,

massa

gordon’s picture

Status: Patch (to be ported) » Fixed

Ported to 5.x-3.x-dev and 4.7.x-3.x-dev

Anonymous’s picture

Status: Fixed » Closed (fixed)