Depending on how you setup your store, you either want to create user accounts for users or not when they do shopping.

For the projects I've been working on, it surprisingly seems that it's the case most often.

If the order is associated to a user, it will be possible to get the email from the user (though a bit ineffective using an extra join), but if no user is associated to the order it is no longer possible to get the email used for the order. I really think we should add this to the views integration.

Files: 
CommentFileSizeAuthor
#1 0001-1644320-by-googletorp-Add-order-email-to-views-data.patch3.82 KBgoogletorp
PASSED: [[SimpleTest]]: [MySQL] 3,588 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new3.82 KB
PASSED: [[SimpleTest]]: [MySQL] 3,588 pass(es).
[ View ]

And the patch that adds this.

I added a custom views handler for the email, so it's possible to render the email as plain text or a mailto link.

Status:Needs review» Fixed

Sweet, thanks. No clue how we went this long without support for this. : D

Status:Fixed» Closed (fixed)

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