Login window not open when click take this course button for paid options

Home Forums Legacy Support Support queries Other issues Login window not open when click take this course button for paid options

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #343707
    Veronica
    Moderator
    This reply has been marked as private.
    #343741
    thusithdb
    Participant
    This reply has been marked as private.
    #343810
    Veronica
    Moderator
    ok let me replicate the same then I will let you know here
    #343927
    Anshuman Sahu
    Keymaster
    Please use this code to change the user role automatically on user registration at checkout : please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
    
    add_filter( 'woocommerce_new_customer_data', 'bbloomer_assign_custom_role' );
      
    function bbloomer_assign_custom_role( $args ) {
      $args['role'] = 'student';
      return $args;
    }
    
    #344070
    thusithdb
    Participant
    Hi Alex, Thanks for your codes. It works for my issue. Now non-login users when buy a course they register as student and can see student dashboard. My all issues regarding course purchasing now solved. Wow !! Thanks everyone for your kind support. You can close this topic. Thusitha
    #344172
    Veronica
    Moderator
    good to know you are happy with the same as you have confirmed closing this one have a great day
Viewing 6 posts - 16 through 21 (of 21 total)
  • The topic ‘Login window not open when click take this course button for paid options’ is closed to new replies.