This topic has 12 replies, 6 voices, and was last updated 10 years by Abe.

  • Author
  • #2564
     YoudoMedia
    Participant

    Hi there, I love this theme and wish to not hack it too much. I want the default layout and everything to be as is, however once someone registers, instead of heading straight to the “Register” section they need to buy a membership first. Any idea of how this can be done? If I refer to register- I mean all of the register buttons and even the register block in Home Page must direct to membership level first.

    Please assist.

    H

    #2609
     SQadmin
    Keymaster

    Hello,
    That could be done but to choose a membership level you need to be registered first..

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2629
     YoudoMedia
    Participant

    Can you give me more detail regarding “that can be done” please. I am sure others have this question too and it can benefit them.
    I have installed the membership plugin and latest version of the theme. Now I need to understand the process of getting everything to tie in nicely.

    Many thanks

    H

    #2678
     SQadmin
    Keymaster

    I am working on something like this when user goes and chooses the level, then it needs to register. After the user registers he will be redirected to the checkout page for the level he already chosen. Will keep you posted.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2686
     YoudoMedia
    Participant

    Awesome stuff. Please do keep me posted. Appreciated. Thanks for your great service yet again. Regards. H

    #4023
     getyler2
    Participant

    I have the same question (or maybe the opposite question)… I just noticed that after I tested a signup from the Sign Up | Login button (top-right of homepage) then looked at WordPress’ Edit User and see Membership’s Current Level is –None– (User is not paying.) and Expires is No. For a dating site, you want everyone on the Free 30-Day membership that expires in 30 days, just like when they have to choose on the Membership Levels page.

    So how can I force that Sign Up link in the top right corner to go to the Membership Levels page? That should fix the issue. Thanks!

    #4043
     SQadmin
    Keymaster

    To modify the link, you can modify line 136 from header.php. Copy the file from sweetdate theme to sweetdate-child theme and edit it there. Here is the new line:

    http://pastebin.com/h24u18zj

    This will go to levels page but a user has to be registered before picking a level.

    Also, a better way is to assign users a default level at registration: https://archived.seventhqueen.com/forums/topic/membership-auto-in-registration

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7436
     vanaila
    Participant

    I’m interested by the original point. Have you something new about it ?

    #7489
     SQadmin
    Keymaster

    My answer above will change the link for the registration button to the levels page. The thing is you have to be registered to choose a membership.
    You can redirect users of their first login to the membership levels page with the codes bellow added to sweetdate-child/functions.php

    COPY CODE
    
    //Whenever a new user is created, this function will add a custom field with value 1.
    function function_new_user($user_id) { 
       add_user_meta( $user_id, '_new_user', '1' );
    }
    add_action( 'user_register', 'function_new_user');
    
    //The next function will check if it's the first login and redirect the user.
    function function_check_login_redirect($user_login, $user) {
       $logincontrol = get_user_meta($user->ID, '_new_user', 'TRUE');
       if ( $logincontrol ) {
          //set the user to old
          update_user_meta( $user->ID, '_new_user', '0' );
    
          //Do the redirects or whatever you need to do for the first login
          wp_redirect( pmpro_url("levels"), 302 ); exit;
       }
    }
    add_action('wp_login', 'function_check_login_redirect', 10, 2);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7504
     alim.jivraj
    Participant

    hi, so if i’m understanding this correctly, instead of going to the registration page, they go to the membership/levels page. but once they finished selecting the membership/levels page, do they automatically get redirected to the registration page, or do they have to go to it themselves?

    is there a way they can register first and then directed to the membership/levels page automatically? so before it directs them to the page that says ‘sign up complete, check your email’, it forces them to select a membership/level.

    thanks

    #7562
     SQadmin
    Keymaster

    It is the other way around. After user registers, at the first login it will be redirected to the levels page. You need to have an active account to go to the levels page

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #9367
     alim.jivraj
    Participant

    is there any way of having them first pick the level, then register?
    or someone have them pick a level during registration?

    #9453
     Abe
    Keymaster

    Hi, this is another related topic: https://archived.seventhqueen.com/forums/topic/registration-and-subscription-in-the-same-time

    We will think of other solutions but right now something like that is not possible

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?