Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eStore – purchases don't link up when a buyer registers?

by

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, 10 months ago by oliver.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 24, 2012 at 11:49 am #6651
    oliver
    Member

    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 #46408
    Peter
    Member
    June 25, 2012 at 1:32 am #46409
    admin
    Keymaster

    Please 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 #46410
    oliver
    Member

    I’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 #46411
    admin
    Keymaster

    I 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 #46412
    oliver
    Member

    Ok, 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 #46413
    oliver
    Member

    Ok 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 FROM wp_wp_eMember_members_tbl WHERE email = ‘$emailaddress'”, OBJECT);

    $eMember_id = $query_hldb->member_id;

    }

    //Oliver end

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ