Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Show prices after login only
 
Tonitobleroni
Member
 
Total Posts:  40
Joined:  2008-10-17
 

I am distributing products to resellers all over the country. I want product prices to show up after login only, so that only registered resellers can see the reseller prices. Does anyone know how to do this? Thanks a million in advance!

 
Magento Community Magento Community
Magento Community
Magento Community
 
SteveM
Jr. Member
 
Total Posts:  20
Joined:  2008-07-25
 

It would be great to know this also as I wish to set up a Wholesale customer section which is accessible only to them. Would I be correct in suggesting that a wholesale customer group would be set up and you would then add a wholesale website (or storefront?) to your normal retail website?

We have recently moved from Actinic Ecommerce to Magento and have to say that this seems to be one area where Actinic beats Magento as it has a simple Price Config section to do this as standard.

Or am I missing something?

Steve M

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tonitobleroni
Member
 
Total Posts:  40
Joined:  2008-10-17
 

Ding dong, anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
O2
Jr. Member
 
Total Posts:  5
Joined:  2008-11-11
 

Hey guys .. I’ll be interested in finding out about the above as well.
I’m in the wholesale business as well and was thinking of launching 2 different sites to address wholesale & retail.

Thanks ..

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tonitobleroni
Member
 
Total Posts:  40
Joined:  2008-10-17
 

I downloaded 2 extensions by Netzarbeiter, one to have visitors register before being able to see the catalogue, the other to prevent registered visitors to use their account until their account is activated in Admin. Works well! See http://www.magentocommerce.com/extension/490

 
Magento Community Magento Community
Magento Community
Magento Community
 
Wouterm
Jr. Member
 
Total Posts:  4
Joined:  2008-12-02
 

I want only the price not visable for guests…
Do sloved it yet?

Tnx Wouter!

 
Magento Community Magento Community
Magento Community
Magento Community
 
lash
Jr. Member
 
Total Posts:  25
Joined:  2008-11-20
 

I wrapped the whole code in catalog/product/price.phtml with

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

...

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

maybe not the best way but works fine…

! This will not prevent displaying the prices in the cart ! I disabled all the “Add to cart” links the same way, so guests can’t add items to it!

See catalog/product/list.phtml (you have to do this twice… for list and grid mode)

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()) { ?>
            <?php 
if($_product->isSaleable()): ?>
                      
<button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart'?></span></button>
            
<?php else: ?>
            
<div class="out-of-stock"><?php echo $this->__('Out of stock'?></div>
            
<?php endif; ?>
<?php } 
/* if(Mage::getSingleton('customer/session')->isLoggedIn()) */ ?>

and catalog/product/view/addtocart.phtml

<?php if(Mage::getSingleton('customer/session')->isLoggedIn() && $_product->isSaleable()): ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
AdeshSuryan
Jr. Member
 
Avatar
Total Posts:  10
Joined:  2011-02-25
Delhi
 

Step first :

First check session value and/or some one login or not

check below code for maganto

<?php  if (Mage::isInstalled() && Mage::getSingleton('customer/session')->isLoggedIn()) {
}
?>

Step second: now apply above condition on following file

below file for default price

/app/design/frontend/default/Your_Theme/template/catalog/product/price.phtml

Now if you want to hide the price ( From price ) use below link

/app/design/frontend/default/Your_Theme/template/bundle/catalog/product/price.phtml

Remark : price.phtm file is common file for all references like product view product list etc .  So apply this condition in price.phtml file .

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top