My client doesn’t want to accept online payments, just have the order details emailed, so I’m using the Test Gateway. It’s only sending emails to the buyer and I need it to send to the admin’s email too.
Here’s the code from the plugin:
$email = wpsc_get_buyers_email($purchase_log['id']);
I tried making it an array, but it throws errors and doesn’t work. I don’t have a lot of php experience!
$email = array (wpsc_get_buyers_email($purchase_log['id']), 'myemail@email.com');
Any help?
I was just searching for the same, but couldn’t find an easy answer anywhere. I know the topic is quite old but this solution should be quite helpful.
In my WP-Ecommerce I edited:
wpsc-theme/functions/wpsc-transaction_results_functions.php
I just added merchant
idealcheckoutideal
(this could be any merchant) and the functions that fire the notification emails. I guess you could call those functions anywhere as long as you are using thepurchase_log
parameter.If you are using the wp-ecomemrce plugin then you shouldn’t have to edit any code the admin email address will get sent emails of new orders. Have a look through the backend settings in wordpress you may have flicked a setting off.
How is it sending the mail? Is it using php’s
mail()
orwp_mail()
. If it’s using php’smail()
you should send the$email
variable as comma separated, not as an array. (If it’s their custom roller, also try sending the addresses separated by a comma)