Describe your bug or feature request.

The order customer email field is currently not exposed by default. In case the customer made a typo, without reconfiguring the order type, the merchant cannot currently change the email.

We should fix that, but probably disable the field for draft orders as the order email is kept in sync with the email set on the user account, in case the order references a user entity.

Even for anonymous users, the email can be set from the checkout pane, which would override whatever value is entered from the order edit form.

Issue fork commerce-3540685

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Assigned: Unassigned » rszrama
Status: Active » Needs review

Assigning to Ryan for review :).

rszrama’s picture

Status: Needs review » Needs work

I believe we also need to update this for the default configuration imported on installation, otherwise it will not apply to default orders. I'd also propose shortening the help text a little:

Cannot be directly set for draft orders; updates based on checkout input or user email address.

rszrama’s picture

Status: Needs work » Needs review

Updated the MR via GitLab's fancypants web IDE. I'm so hip.

  • jsacksick committed a58c2591 on 3.x
    Issue #3540685 by jsacksick, rszrama: Expose the customer email in the...
jsacksick’s picture

Status: Needs review » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

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