In this tutorial, I’m going to show you how to hide the prices of your products for visitors and make them visible for logged-in users.
A lot of e-commerce stores have the same problem. They have a great product that people are desperately looking for, but nobody can buy it because the price is too high. If you want to make your products accessible to everyone and not just those who can afford it, you should try hiding your prices from the public view.
This is a simple tutorial with PHP code that will take you through the whole process from start to finish.