I've found that the issue was with the WPLMS blank theme...I don't know what was missing or wrong but I have set back a backup one and that works fine now.. sorry
You can close this topic.
Thanks
Hi, I don't think it's the payment gateway because it worked well before, and if I change it, it's the same issue
Also, it looks like it's the same issue of this post : https://wplms.io/support/forums/topic/woocommerce-update-issue/
Seems that this file is wrong : wplms/woocommerce/cart/cart.php version 3.4.0
If I switch woth another template, it works fine.. some there must be a problem somewhere with the theme.
Thanks for your help
Yes, that works fine now
Thank you very much
That is still not working, there's absolutely no changes.
After login, the button "Take this course" always redirects to the register form instead of my custom page : https://adekoite-dev.fr/appli/formulaire-dacceptation/
Have you tested this code ???
Thanks but if I add this code below in wplms-customizer.php, website is broken with a blank page...
add_filter('wplms_take_course_button_html','custom_non_loggedin_user_redirect',10,2);
add_filter('wplms_course_non_loggedin_user','custom_non_loggedin_user_redirect',10,2);
add_filter('wplms_private_course_button_html','custom_non_loggedin_user_redirect',10,2);
function custom_non_loggedin_user_redirect($html,$course_id){
if(!is_user_logged_in()){
$extra ='';
$page = 'https://adekoite-dev.fr/appli/inscription/';
return ''.apply_filters('wplms_take_this_course_button_label',__('TAKE THIS COURSE','vibe'),$course_id).apply_filters('wplms_course_button_extra',$extra,$course_id).'';
}
if(is_user_logged_in()){
$extra ='';
$page = 'https://adekoite-dev.fr/appli/formulaire-dacceptation/';
return ''.apply_filters('wplms_take_this_course_button_label',__('TAKE THIS COURSE','vibe'),$course_id).apply_filters('wplms_course_button_extra',$extra,$course_id).'';
}
return $html;
}
Like I said it's the button "Take this course" for which I need to change it's redirection whether the user is connected or not.
This button is not a widget, so having 2 different sidebars don't change anything I guess..
What code have you added please, because if you test it you'll see no changes and still redirects to resgister form even if user is already registered.
Hi,
I've checked but I don't see any changes...after registering the button still redirects to the registration page..
This reply has been marked as private.
This reply has been marked as private.
Ok but what was your previous code for, then ?
And where to use the BP registratin forms ?
You replied that was not possible..
This code is not working, having a blank page on every pages but the homepage...
Sure,
I'm using a 3rd party plugin to deal with the self-hosted video playslist : https://foliovision.com/player/download
Oh ok, my bad sorry !
Thanks for your help