admin emails
I recently did some investigation into the generation of email content for emails intiated via the admin interface.
The code that gets executed is in zen-cart’s admin files for each admin function (for example, admin/gv_mail.php).
The only email that gets currently handled by ZenMagick is the order status update mail All others still use the zen-cart email templates under ../email (for HTML), or the hardcoded text for text based emails.
While it might be possible to improve the situation here (which I should and will do) there are some issues.
- Guest checkout may result in duplicate email addresses
While this is not very likely it does complicate matters. This would mean to rewrite most of the customer selection code that is based on email address. - Without a lot of patching the only information available will be the predefined HTML blocks.
That means some more regular expressions in email templates to extract the information wanted. Alternatively, this could/should be moved into zen_fixes.php or the ZMEventFixes class.
In any case, if you have been wondering about the format of your stores emails, at least now you know why:)
Expect some gradual improvements over the next few releases…
