How Can I Hide Price For Magento Guest

How can I hide the price for Magento if user not login, e,g on Magento product detail page and Magento cateogry page

From your price template
e.g “magento_root\app\design\frontend\default\\template\catalog\product\price.phtml”
, you can use Magento Method “isLoggedIn()” to detect if user login or not

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>
/** move the price code (you would like to hide) to this area **/
<?php endif;  ?>
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments