- This topic has 1 reply, 1 voice, and was last updated 13 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Purchase History
Have integrated eStore with eMembers but I have noticed that when a customer is not logged in and buys “buy now” the member_username field in the wp_eStore_customer_tbl primarily because the eMember_id custom field is null. This causes the buyer to miss out on the purchse history when he eventually finishes registration. I would suggest that in the Paypal IPN you put a query to return the next id if the customer email does not already exist. Unless if there is another way to deal with it
I ended up having add to $member_table_name and then querying the it after it had been updated by the eMember_handle_subsc_signup($this->ipn_data,$member_ref,$this->ipn_data,$eMember_id); around line 359.
results = $wpdb->get_row(“SELECT * FROM $members_table_name where email=’$emailaddress'”, OBJECT);
$eMember_id = $results->member_id;
It works for me