Problem/Motivation
This is not a critical issue but it was needed to complete a project.
Steps to reproduce:
Under checkout settings, configure the following:
Other settings values are not relevant.
With this setup it's expected that new users created at checkout get the "pending approval" email for new users. Instead they are being sent the "no approval required" email, regardless of the choice made under Checkout completion settings.
Proposed resolution
The attached patch adds a condition in uc_cart.module to check for the selected checkout option and sends out the corresponding email.
Remaining tasks
Patch has been tested successfully.
No UI or API changes have been made. Would be good to get some additional review.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 1983358-blocked-user-welcome-mail-D7.patch | 2.08 KB | longwave |
| #6 | 1983358-blocked-user-welcome-mail.patch | 861 bytes | longwave |
| 0001-Fix-for-blocked-new-user-email.patch | 1.51 KB | 5t4rdu5t |
Comments
Comment #1
longwaveComment #3
tr commentedIsn't this essentially duplicate of #1258370: Ubercart's setting 'Login users when new customer accounts are created at checkout.' should respect core's "Require e-mail..." ?
Comment #4
tr commentedDouble post...
Comment #5
longwaveNot quite; that was about logging in the user automatically, this is about sending a correctly worded user email if the new account is blocked by default.
Comment #6
longwaveThis patch is simpler and should avoid the test errors.
@5t4rdu5t: Can you test this patch and confirm it works as expected?
Comment #7
longwaveCommitted #6, needs porting to 7.x.
Comment #8
longwavePorted to D7, with test.
Comment #9
longwaveCommitted #8.
Comment #10.0
(not verified) commentedAdding remaining task