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:

  • In "General checkout settings", check "Enable anonymous checkout (users can checkout without logging in)."
  • In "Checkout completion settings", uncheck "Login users when new customer accounts are created at checkout."
  • In "Checkout completion settings", uncheck "Send new customers a separate e-mail with their account details."
  • In "Checkout completion settings", uncheck "New customer accounts will be set to active. Uncheck to create new accounts but make them blocked."

    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.

  • Comments

    longwave’s picture

    Status: Patch (to be ported) » Needs review

    Status: Needs review » Needs work

    The last submitted patch, 0001-Fix-for-blocked-new-user-email.patch, failed testing.

    tr’s picture

    Double post...

    longwave’s picture

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

    longwave’s picture

    Status: Needs work » Needs review
    StatusFileSize
    new861 bytes

    This patch is simpler and should avoid the test errors.

    @5t4rdu5t: Can you test this patch and confirm it works as expected?

    longwave’s picture

    Version: 6.x-2.x-dev » 7.x-3.x-dev
    Status: Needs review » Patch (to be ported)

    Committed #6, needs porting to 7.x.

    longwave’s picture

    Status: Patch (to be ported) » Needs review
    StatusFileSize
    new2.08 KB

    Ported to D7, with test.

    longwave’s picture

    Status: Needs review » Fixed

    Committed #8.

    Status: Fixed » Closed (fixed)

    Automatically closed -- issue fixed for 2 weeks with no activity.

    Anonymous’s picture

    Issue summary: View changes

    Adding remaining task