How to Hide Price for Not Logged-In Customers in Magento 2

To hide the price for not logged-in customers in Magento 2, one needs to implement the below code.

Method to hide price for not logged-in customers in Magento 2:

Create di.xml in Vendor\Extension\etc folder

Step 2: After this, you will require to create FinalPriceBox.php in the following path: Vendor\Extension\Pricing\Render

Leave a comment

Your email address will not be published. Required fields are marked *