Hello,
I would like to change the email address of the “Alert admin” template.
Indeed, the basic email address of the super Admin is the one that automatically receives the alerts, but I would like the email address of the Shop Manager to be alerted instead.
I duplicated the template stock_alert_admin_email.php in a directory woocommerce/emails inside the theme but I can not change the email address of the recipient.
At the very beginning of the code, there seems to be the following action:
do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>
I added just above : $email = ‘whatiwant@mail.fr’;
But it is always the admin email address that receives the alert.
Do you have a solution ?
Sincerely,
Quentin