Good afternoon, I need a method that understands whether the user is logged in or not to access the product details page.
I'm using a Woocommerce (Storefront) to manage a product site, and would like the user to be able to see the products on Home, but clicking the button to enter and viewing the product details will be done a registration / login check and you can only see the product details if you are logged in, otherwise you will be redirected to the registration / login page.
Thank you in advance.