Open Login popup for non logged in users and redirect to the cart page

Home Forums Legacy Support Support queries How-to & Troubleshooting Open Login popup for non logged in users and redirect to the cart page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #369306
    Aminul
    Participant
    https://prnt.sc/1ql8b1o > https://prnt.sc/1ql8c0i We select a setting from LMS > settings > Open Login popup for non logged in users when they click on take this course button(For all courses) So my key point is when a student login or sign up with this option I want to send my student to redirect to the cart page with the selected course. I found no option to redirect to the cart page.
    #369352
    Veronica
    Moderator
    hi custom login redirect on take this course button is not available
    #369583
    Aminul
    Participant
    yes, we know that, but is there any way or script to do that??
    #369612
    Veronica
    Moderator
    you are on v4 or v3?
    #369772
    Aminul
    Participant
    we are on v3
    #369805
    Veronica
    Moderator
    hi try to use this:
    add_filter('wplms_course_non_loggedin_user',function($html,$id){
    
    return '<a href="my-page">Take this course</a>';
    },10,2);
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Open Login popup for non logged in users and redirect to the cart page’ is closed to new replies.