Exactly what I did.
Thanks,
Nope, the page /shop/ still loads products even if I check the option…
That’s exactly what I did using the new version of userpro.
Sorry about that, my purchase key has been added to my account.
Back to my topic,
I’ve inserted this code in woocommerce theme file (archive_products.php) and it worked :
if( !is_user_logged_in() ) {
wp_redirect( home_url(‘/login’) );
}
else{
//rest of the code
}
The only problem is that it’s not redirecting the user to the page they where trying to access before login in.
If you have a better way please inform me.