log out issue after registration

Hi there i have an issue after my users register for to become an affiliate, it says thank you for registering, but whenever they need to go to their student dashboard or affiliate dashboard the system kicks them out. i need you to get back to me urgently as we are relaunching this in 2 days

10 Responses to log out issue after registration

  1. George February 8, 2023 at 9:59 am #

    Hi there,

    The code should go to the functions.php of your child theme, in order to keep it intact upon a theme update, or you can create a small plugin and add it this way on your site.

    Kind regards,
    George

  2. George February 6, 2023 at 5:13 pm #

    You’re welcome.

    I think you can either create a redirect using something like ie

    add_action( 'init', 'my_redirect');
    function my_redirect() {
    $affiliates_url_param = get_query_var( 'your_affiliate_url_param', null );
    if ( isset( $affiliates_url_param ) ) {
    wp_redirect( 'your_iedf_course_url' );
    exit;
    }
    }

    alternatively, you can encourage your affiliates to share the affiliate link to this course using the following:
    [affiliates_url]http://www.example.com/your_iedf_course_url[/affiliates_url]

    Kind regards,
    George

    • Zhandre February 8, 2023 at 8:35 am #

      where must the code go?

  3. George February 6, 2023 at 10:10 am #

    Hi Zhandre, that’s great!

    As for the exports, you can get a list of your affiliates through Affiliates > Manage Affiliates by hitting the Export button located at the top right corner. You can also get a list of your Referrals if you go to Affiliates > Referrals and again hit the Export button at the top right corner.

    Both export files are .tsv but can be opened with an excel application.

    Kind regards,
    George

    • Zhandre February 6, 2023 at 1:06 pm #

      thank you for your feedback! Please advise how i can redirect the the user to a specific course instead of the homepage.

      e.g if the user clicks on an affiliate link, it must redirect them to the IEDF ambassadors course. Can this be done?

  4. Zhandre February 4, 2023 at 6:58 pm #

    hi there, thank you i am sorted, it appears that it was the password that was causing the confusion. Is there any way to export affiliates and referrals on excel?

  5. George February 4, 2023 at 12:14 pm #

    Hi Zhandre,

    Thanks for sharing additional info and the pages involved in the registration process.
    What I’ve noticed on your video is that the user-affiliate is still logged-in after the affiliate registration process has completed, https://youtu.be/wsnZFk06O34 at 1:42 and is logged out once they visit the courses.

    Furthermore, if I login with my user credentials I can see the Affiliates Dashboard, but I can’t ie edit my user profile:
    https://www.dropbox.com/s/kkak19eu13fuqm9/visiting_my_account_page.mov?dl=0

    However, if I go back I’m still authenticated and another try to edit my profile gives the same result, asking me to authenticate again. If I proceed and try to authenticate, then the system asks me to logout, which doesn’t make sense at all.

    What I would recommend you to do, is first remove the password field from the affiliates registration form. When the new customer tries to register as an affiliate, they are already registered and this password field is redundant. I suspect that this might be related, because the user password in this step is updated.

    In addition and if you are using a caching plugin this might also relate to the confusion, a user is authenticated then appears as non-authenticated and then back again as authenticated. If indeed there is a caching plugin or server feature running at the moment, then I would recommend you to disable them all temporary and repeat the test.

    For the record and to help you further with your tests please keep in mind the following:
    1. When you register as a customer on checkout, a new user record is created on your site.
    2. If this new customer continues and registers as an affiliate while logged in, then an affiliate record is created and mapped to this existing user.

    On the other hand:
    1. When a visitor registers as an affiliate, a new user record is created on your site 2. At the same time a new affiliate record is created that is mapped to the new user registered on the previous step.

    I’m mentioning these facts because regardless of how an affiliate registers, after checkout, or through the affiliate registration form, the result is the same and the user is created and authenticated.

    Kind regards,
    George

  6. Zhandre February 4, 2023 at 6:54 am #

    Hello Itthinx

    Thank you for your getting back to me.

    Herewith the link to the affiliate registration page

    https://elearnsa.com/ambassador-dashboard/

    I have also attached a video for you to see. So I would advise you to have a look because it is also the process our ambassadors needs to follow.

    https://youtu.be/wsnZFk06O34

    Please note the following process

    1. User is directed to the website
    2. User register for the course
    3. Thank you page will appear with the notice to register as an affiliate
    4. On the same thank you page, on the right users should be able to login to the course the registered in step 1

    At the moment, after the user registers as an affiliate, and they click on my courses (which we need them to) or any other page for that matter, it kicks them out. And require them to sign in again.

    We are working with informal traders, people who have not been educated, school dropout. We need this system to work smoothly and it must flow.

    I trust this is in order.

    We launching in 2 days..

    Hope to hear from you soon. And I hope there is a solution to this because I do prefer using your system.

    Regards
    Zhandre

    • Zhandre February 4, 2023 at 7:02 am #

      Hi there,

      Its also on this page.
      https://elearnsa.com/thank-you/
      Please follow the exact process we want it to be in. You will then see the problem. The ambassador page is what they will see after the have registered

  7. George February 3, 2023 at 10:51 pm #

    Hi Zhandre,

    Welcome to our support forum and many thanks for using Affiliates Enterprise on your site.

    Can you please share the URL to your affiliates registration page? I would like to make a test registration on your site.
    You mentioned that new affiliates are logged out after registration.
    Are you using separate pages for affiliates registration and the Affiliates Dashboard? If that’s true please make sure to share with us both URLs.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share