Comment #2 on issue 1319 by
nika.fa...@gmail.com: Purchase emails /
Happening the same here. I'm using the version 3.8.5 cause is the only one
I found with translation pt-BR complete. Wordpress version 3.4.2
I've tried with all the payments gateway and nothing changes, buyer and
admin wasn't receiving the emails.
So I decided to change this line on
wp-e-commerce/wpsc-theme/functions/wpsc-transaction_results_functions.php
Line 160
From this:
$email = wpsc_get_buyers_email($purchase_log['id']);
To this:
//$email = wpsc_get_buyers_email($purchase_log['id']);
$bt_sql = "SELECT tusers.user_email, tumeta.meta_value FROM
wp_wpsc_purchase_logs tlogs, wp_users tusers, wp_usermeta AS tumeta WHERE
tlogs.user_ID=tusers.ID AND tusers.ID = tumeta.user_id AND tumeta.meta_key
= ‘first_name’ AND
tlogs.id={$purchase_log['id']}";
$bt_user = $wpdb->get_row($bt_sql);
$email = $bt_user->user_email;
So it would get the user's email, not the email from the checkout form
(since clients have to register before making a purchase, I imagine that it
wouldn't be a problem)
But now, only admin gets the email, clients reports are still missing...