Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – purchases don't link up when a buyer registers?
- This topic has 6 replies, 3 voices, and was last updated 12 years, 4 months ago by oliver.
-
AuthorPosts
-
June 24, 2012 at 11:49 am #6651oliverMember
Hi,
So a visitor finds product X and adds it to their cart, then going to paypal to pay.
Visitor receives two emails, one thanking and one inviting them to register. Visitor chooses to register and does so.
But purchase of product X does not update to be attached to the visitor (and now registered user) account?
So when visitor checks their ‘purchase history’ page, it’s completely empty.
Surely I am missing something?
Thanks in advance!
Oliver
June 25, 2012 at 12:47 am #46408PeterMemberJune 25, 2012 at 1:32 am #46409adminKeymasterPlease read the documentation and choose the correct registration flow for your site and then it will work fine:
http://www.tipsandtricks-hq.com/wordpress-membership/a-typical-member-registration-flow-96
In your case it seems like the 3rd scenario (Extended with WP eStore) will work good for what you are trying to do.
If you have done that already then let me know.
June 26, 2012 at 9:18 pm #46410oliverMemberI’ve tried turning on the ‘only logged in members…’ But when i press the same ‘subscribe’ button on the frontend, it still takes me through to Paypal without joining.
Do I need to change the subscribe button?
Thanks,
June 27, 2012 at 6:18 am #46411adminKeymasterI see… you are using a subscribe button. Your first post (see your post above) says the following which gave me the impression that you are using the “add to cart” type buttons:
So a visitor finds product X and adds it to their cart, then going to paypal to pay.
Anyway, the “only logged in members can checkout” is for the standard shopping cart checkout. It doesn’t work for subscription type buttons.
For subscription button you can do the following to force user to create an account and log in before they can pay:
Use eMember’s section protection to hide the subscription payment button so only logged in user can see it and interact with it. This will force them to log in before they can make the payment.
July 8, 2012 at 3:23 pm #46412oliverMemberOk, so I added the following to eStore_handle_subsc_ipn.php line 137. Unfortunately this will only change past donations, not the one which is being processed. So will now look to find that.
//Oliver added in order for member_id to be added to donation
$updatehldb = "UPDATE wp_wp_eStore_customer_tbl SET member_username='".$eMember_id."' WHERE member_username='' AND email_address = '".$email."' ";
$results = $wpdb->query($updatehldb);
debug_log_subsc("Also looked for and changed customers with the email ".$email." but without Member ID: ".$eMember_id,true);
//Oliver end
July 8, 2012 at 4:03 pm #46413oliverMemberOk and now ive added to paypal.php line 654 the following. Now all un-logged in people with member accounts will have their purchases added to their account.
//Oliver added in order for member_id to be added to donation
if(!$eMember_id || $eMember_id==""){
$query_hldb = $wpdb->get_row("SELECT
member_id
FROMwp_wp_eMember_members_tbl
WHEREemail
= ‘$emailaddress'”, OBJECT);$eMember_id = $query_hldb->member_id;
}
//Oliver end
-
AuthorPosts
- You must be logged in to reply to this topic.