Issue 1319 in wp-e-commerce: Purchase emails / receipts not sending in version 3.8.9.5

26 views
Skip to first unread message

wp-e-c...@googlecode.com

unread,
Jan 6, 2013, 4:20:48 PM1/6/13
to wp-e-commerce-googl...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1319 by solhar...@gmail.com: Purchase emails / receipts not
sending in version 3.8.9.5
http://code.google.com/p/wp-e-commerce/issues/detail?id=1319

What steps will reproduce the problem?
1. Using a custom payment gateway
2. No purchase receipt email and no admin email notification being sent
3. Only rolling back some files solves this.

What is the expected output? What do you see instead?
Upon successful purchase, the buyer and admin should both receive email
notifications. The system does not send them and only reverting some files
to the previous version will re-enable this. The DB shows "email sent : 0"

What version of WP e-Commerce are you using? WordPress version? Which
browser? 3.8.9.5 all browsers. Reverting 1)
plugins/wp-e-commerce/wpsc-theme/functions/wpsc-transaction_results_functions.php
and 2) plugins/wp-e-commerce/wpsc-theme/wpsc-transaction_results.php to
3.8.5 version solves this.

If this issue has been discussed in the forums, please link to the relevant
posts.
Forum post: http://getshopped.org/forums/topic/emails-are-not-sending

Some users are also reporting this issue with PayPal gateway.

Some acknowledgement from the team would be good.
Thanks
Sol




wp-e-c...@googlecode.com

unread,
Jan 7, 2013, 11:14:02 AM1/7/13
to wp-e-commerce-googl...@googlegroups.com

Comment #1 on issue 1319 by p...@dwdonline.com: Purchase emails / receipts
This is happening for me as well. It works for any gateways that come with
it, but does not work for custom gateways after 3.8.5

wp-e-c...@googlecode.com

unread,
Jan 7, 2013, 2:24:09 PM1/7/13
to wp-e-commerce-googl...@googlegroups.com

Comment #2 on issue 1319 by nika.fa...@gmail.com: Purchase emails /
receipts not sending in version 3.8.9.5
http://code.google.com/p/wp-e-commerce/issues/detail?id=1319

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...

wp-e-c...@googlecode.com

unread,
May 1, 2013, 8:05:53 AM5/1/13
to wp-e-commerce-googl...@googlegroups.com

Comment #3 on issue 1319 by mostph...@gmail.com: Purchase emails / receipts
I have similar problem, but here is my solution that worked for me:

In your wordpress dashboard, go to Settings > General.

Tick the Anyone can register box.

Save it.

Test a purchase, then it should work.

I hope this help.

Thank you

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

wp-e-c...@googlecode.com

unread,
May 1, 2013, 12:46:32 PM5/1/13
to wp-e-commerce-googl...@googlegroups.com

Comment #4 on issue 1319 by paypa...@gmail.com: Purchase emails / receipts
I have same problem but in my case it doesn't work just with @gmail.com. I
did work around mentioned by 3rd Answer from member and it doesn't work.
Any Ideas?. Thanks

wp-e-c...@googlecode.com

unread,
Jul 29, 2013, 4:01:12 AM7/29/13
to wp-e-commerce-googl...@googlegroups.com

Comment #5 on issue 1319 by michael....@gmail.com: Purchase emails /
receipts not sending in version 3.8.9.5
http://code.google.com/p/wp-e-commerce/issues/detail?id=1319

That worked.. but now nobody can register with my website..... wp ecommerce
pisses me off

wp-e-c...@googlecode.com

unread,
Jul 29, 2013, 8:49:39 AM7/29/13
to wp-e-commerce-googl...@googlegroups.com

Comment #6 on issue 1319 by wilhelm....@gmail.com: Purchase emails /
receipts not sending in version 3.8.9.5
http://code.google.com/p/wp-e-commerce/issues/detail?id=1319

The issue is due to that wpsc updated their code to process payments and
sending reciepts. Older gateways needs to be updates to handle the new
wpsc, or they wont work. Ask your gateway provider to fix it for you! :)

wp-e-c...@googlecode.com

unread,
Aug 13, 2013, 9:12:28 AM8/13/13
to wp-e-commerce-googl...@googlegroups.com

Comment #7 on issue 1319 by k...@allyourmedia.nl: Purchase emails /
receipts not sending in version 3.8.9.5
http://code.google.com/p/wp-e-commerce/issues/detail?id=1319

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 the purchase_log
parameter.


#70

if ( $selected_gateway ) {
switch( $selected_gateway ){
case 'idealcheckoutideal':

if ( ! isset( $_REQUEST['sessionid'] ) )
return;


$purchase_log = new WPSC_Purchase_Log(
$_REQUEST['sessionid'], 'sessionid' );
wpsc_send_admin_email($purchase_log);
wpsc_send_customer_email($purchase_log);

break;

wp-e-c...@googlecode.com

unread,
Oct 10, 2013, 8:27:35 AM10/10/13
to wp-e-commerce-googl...@googlegroups.com

Comment #8 on issue 1319 by solhar...@gmail.com: Purchase emails / receipts
I still have this issue outstanding on one of my WPEC installs. Would be
good to see some documentation as to how to update the code without hacking
the core file

wp-e-c...@googlecode.com

unread,
Nov 16, 2013, 5:22:46 AM11/16/13
to wp-e-commerce-googl...@googlegroups.com

Comment #9 on issue 1319 by wrbermu...@gmail.com: Purchase emails /
receipts not sending in version 3.8.9.5
http://code.google.com/p/wp-e-commerce/issues/detail?id=1319

I am also experiencing the same thing and have taken all the steps to work
this out without trying to hack the core files.
Reply all
Reply to author
Forward
0 new messages