Page 1 of 1
Resend welcome and order emails
Posted: Fri Nov 04, 2022 10:58 am
by 14Steve14
Only been using this software for about 12 years now and have no idea whether it is possible to resend the welcome and order emails.
Is it possible or is it something that cannot be done. I have had a customer add an incorrect email and would like a copy of both emails.
Re: Resend welcome and order emails
Posted: Fri Nov 04, 2022 4:26 pm
by ecartz
It is not possible to do within the core application (i.e. by pushing buttons).
It would be possible for someone to code it.
Welcome email:
https://github.com/CE-PhoenixCart/Phoen ... in.php#L38 Code: Select all
Notifications::notify('create_account', $GLOBALS['customer']);
Order email:
https://github.com/CE-PhoenixCart/Phoen ... t.php#L184 Code: Select all
$GLOBALS['customer_notification'] = Notifications::notify('checkout', $GLOBALS['order']) ? 1 : 0;
Note that to do this from admin would probably require some hackery. In particular, those assume that $Linker exists and that $customer and $order exist.
It would probably be easier to add this functionality into the account and account history pages. Payment modules with IPN functionality already send the order email late.
If you have EXTRA_ORDER_EMAILS_TO configured, you may have a copy of the order email that you could forward. And the welcome email is static. So you could register for your site and then forward an edited version of that to the customer. I think that you would only need to edit the To: line and the customer greeting in what you forward.
Re: Resend welcome and order emails
Posted: Fri Nov 04, 2022 4:43 pm
by 14Steve14
ecartz wrote: ↑Fri Nov 04, 2022 4:26 pm
If you have EXTRA_ORDER_EMAILS_TO configured, you may have a copy of the order email that you could forward. And the welcome email is static. So you could register for your site and then forward an edited version of that to the customer. I think that you would only need to edit the To: line and the customer greeting in what you forward.
That is what I did in the end as it seemed the quickest way to do it.
I was just wondering if some other store owner had found a way to do it. Its the first time in 12 years that I have been asked to do it, so its not a real high priority.
Thanks for the help anyway.