Download & Extend

Add commerce order e-mail to views data.

Project:Drupal Commerce
Version:7.x-1.x-dev
Component:Views integration
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Status:active» needs review

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.

AttachmentSizeStatusTest resultOperations
0001-1644320-by-googletorp-Add-order-email-to-views-data.patch3.82 KBIdlePASSED: [[SimpleTest]]: [MySQL] 3,588 pass(es).View details

#2

Status:needs review» fixed

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

#3

Status:fixed» closed (fixed)

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

nobody click here