I am using GeneratePress premium version.
I would like to hide the prices for visitors that are not logged in, or don’t have an account.
In replacement, I would like to show some text like: Login to see price, with a link to the login page.
Without login, prices should not be seen anywhere, also not in the cart.
Could you help me out please. I have tried many suggestions from other forums, editing functions.php of the generatepress theme. I got to hide the price from the products pages, but NOT from the cart. I used this code:
I did, but they all give me code that I should paste at the end of the functions.php file, which I did and it works, but not for the cart.
Hope you can help me out, because I cannot, even may not start (restricted by Herbalife) my website, if I show prices before customers login.