Hide product price if magento User is not logged In


Option – 1

magento\app\design\frontend\default\<your theme>\template\catalog\product\price.phtml

<!--?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>


just above (line 26)

<!--?php if (!$_product->isGrouped()): ?>

and close it at the end of the file

<!--?php endif; ?>

Option – 2

 
Add some code in your themes head.phtml such as:
magento\app\design\frontend\default\template\page\html\head.phtml

<!--?php $loggedIn = Mage::getSingleton('customer/session')->isLoggedIn(); ?>
Advertisements

5 thoughts on “Hide product price if magento User is not logged In

  1. Hey! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your posts. Can you suggest any other blogs/websites/forums that cover the same subjects? Thanks a ton!

  2. Nice post. I used to be checking constantly this weblog and I am inspired! Very helpful information particularly the ultimate section 🙂 I handle such information much. I was seeking this particular info for a very lengthy time. Thank you and good luck.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s