Woocommerce - Open product page only if the user is logged in

Asked

Viewed 1,256 times

0

Good afternoon, I need a method that understands if the user is logged in or not to access the product details page.

I am using a Woocommerce (Storefront) to manage a product site, and would like the user to be able to see the products at home, but when you click on the login button and see the product details a registration/login check is made and you can only see the product details if you are logged in, otherwise you are redirected to the registration/login page.

Thanks in advance.

  • Quite complicated... the security settings of a post (or product) totally restrict it. That is, it doesn’t even appear on the main screen. Have you ever looked for any plugin security?

  • 1

    I know some plugins yes, but none attended to what I want. I will test these 2 that @Chun recommended and return to tell you if it worked and if it solved the problem.

1 answer

1


  • I will test the plugins or tamper with PHP @Chun and return saying if it worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.