Magento: Disappear Product Prices when customer does not log in
July 21st, 2010This post aims to make the Product Prices and the “Shop By” Box in the sidebar disappear in case of customers not loggin in:
1 – Disappear the Product Prices :
Open [YOUR THEME]\template\catalog\product\list.phtml go to line 98 or find this code <?php echo $this->getPriceHtml($_product, true) ?> and replace it by :
<?php if (Mage::isInstalled() && Mage::getSingleton(‘customer/session’)->isLoggedIn()): ?> <?php /*check loggin in or not*/?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif;?>
2 – Disappear the “Shop by” Box:
- Open [YOUR THEME]\template\catalog\layer\view.phtm go to line 34 or find this code <?php if($this->canShowBlock()): ?> and replace it by:
<?php if (Mage::isInstalled() && Mage::getSingleton(‘customer/session’)->isLoggedIn()): ?> <?php /*check loggin in or not*/?>
<?php if($this->canShowBlock()): ?>
- Add this code to the end:
<?php endif; ?>










No Response to Magento: Disappear Product Prices when customer does not log in
Still quiet here.