Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 0001-1644320-by-googletorp-Add-order-email-to-views-data.patch | 3.82 KB | googletorp |
Comments
Comment #1
googletorp CreditAttribution: googletorp commentedAnd 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.
Comment #2
rszrama CreditAttribution: rszrama commentedSweet, thanks. No clue how we went this long without support for this. : D