I needed the mail in the customer report at admin/store/reports/customers so I added to the logic. It's now another column available on the screen and on the CSV. I'd think having a way to export customer's email addresses is something worth having, certainly the code is not harmful.
Comments
Comment #1
hanoiiIt's a reversed patch, sorry, attached is the proper one.
Comment #2
rs6blades commentedThis is a Great Patch and extremely useful. Not sure why this was not part of the original Module to begin with. Being able to manipulate customer database into format that will help to integrate into a better Follow up Sales tool.
Thanks Hanoii for your great support and work on this. Sure saved my Butt!!
Comment #3
hanoiiComment #4
hanoiiAlthough I also think this would be helpful to have it in the module, it's not really a bug as it doesn't cause any problem. It's just a new thing that can be added, thus, it's a feature request.
Comment #5
rstaylor commented+1 I've needed this on several sites, it should be part of the core module. Should also be in 6x-2.x etc.
Comment #6
hankpalan.com commented+1 can we get this into core soon? or at least get a 6.x patch?
Comment #7
longwaveBumping to 6.x, where the patch will likely need revising first.
Comment #8
urban farmer commentedI know this might be a stupid question, but how do I apply this patch? I assume I copy the code somewhere. I tried pasting it into the bottom of this file, uc_reports/uc_reports.module, but it did not work.
Comment #9
Jonathan Peterson commentedNot a stupid question! The code in question has moved since it was first written, from
uc_reports.moduletouc_reports.admin.inc, so applying it would be bound to fail.The attached patch is the same code, only applied to the right place for 6.x-2.x-dev. (As of writing, it works on 6.x-2.7 also.) Setting it back to Needs Review.
Comment #11
tr commentedComment #12
hles commentedSame as previous patch but emails are now displayed as links (mailto) instead of plain text.
Against latest dev.
Comment #13
hles commentedDisregard patch in #12. It was based on #9, which was using formatted values for prices when exporting a CSV file.
New patch with raw values in CSV attached.
Comment #15
hles commentedwow.. not my day. Again disregard #13. Not sure how awake I am right now. Sorry guys.
Comment #16
tr commentedThis will be unnecessary in 7.x-3.x when #568854: Replace uc_reports with Views is completed.
While it's great you've supplied a patch for others to use, I don't think this is something that's going to get into 6.x-2.x at this point. When adding new functionality, we're putting our efforts into the current version of Ubercart. While we're still actively fixing bugs in 6.x-2.x, development of new features for an old version isn't the best use of our time. This particular patch may be useful to some, but is just clutter to others. It's not a general mechanism for adding additional information to reports, which is what we really need and what we get with the better Views integration in 7.x-3.x. Reports can be made using Views even in 6.x-2.x, and patches like this can be used for other site-specific needs.