lat9 / sales_report

Sales report for Zen Cart
GNU General Public License v3.0
0 stars 4 forks source link

Add customer's email address to "Order Line Items" report-format output #26

Closed lat9 closed 1 year ago

lat9 commented 3 years ago

... as requested in this Zen Cart support-thread posting.

jage9 commented 3 years ago

I have made this mod on my store and can submit as a PR if desired.

If this messes with the visuals, could explore just making this available for the CSV, or an optional field, though there is not currently a way to hide plenty of other fields.

I looked at adding Email into the list of sort fields, but that feature seems to not be working as expected in 3.4.0 unless I'm misunderstanding it.

The major use case for me is to easily gather a list of Email addresses for an ordered product, to provide an update, recall, or other info. Perhaps it makes more sense to use the current customer Email address if available, but again the first/last from the order record is what's currently being used, so tried to remain consistent. One could argue this is a bit outside of the purview of a sales reporting mod, but it allows for easy customer follow-up based on sales, so I think it fits, at least until there is another solution. Certainly open to feedback.