| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I noticed that in the order update settings for uc_notify (admin/store/settings/notify/edit/update) you can set the input format to php code. But currently uc_notify doesn't actually use this format selection. It looks like uc_notify_order_update is missing a check_markup.
This line:
$body = variable_get('uc_notify_order_update_body', uc_get_message('order_update_email'));should become something like
$body = check_markup(variable_get('uc_notify_order_update_body', uc_get_message('order_update_email')), variable_get('uc_notify_order_update_format', 3), FALSE);By the way, the reason I'm doing this is so that I can send out a "you're order has been shipped" update to customers when their order is marked as completed. Setting this to PHP code and then calling different templates based on the order_status seemed to be the easiest way to do this, but let me know if I missed a better way.
Best,
Chad

I've applied and committed your fix. Feel free to test it from Bazaar and let me know how if it's screwed up.
