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

Creating Price Labels
 
jaatendi
Jr. Member
 
Total Posts:  20
Joined:  2013-05-08
 

How can I have a price-label (such as \\\"Price:\\\") for non-logged in customers, and a different price-label for logged-in customers (such as \\\"Your Price:\\\”?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

I did something similar before. I created a custom template for VIP price for exclusively logged-in users. change view.phtml in / app / design / frontend / default / celebrity / template / catalog / product /

I can’t embed my code here. this site is so crap. it’s falling apart. contact me for the code via private message.

UPDATE: here is the part I added to view.phtml

<?php if ($_taxHelper->displayBothPrices()): ?>
                
<class="special-price">
                    <
span class="price-label"><?php echo $this->__('Special Price:'?></span>
                    <
span class="price-excluding-tax">
                        <
span class="label"><?php echo $_taxHelper->__('Excl. Tax:'?></span>
                        <
span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                            
<?php echo $_coreHelper->currency($_finalPrice,true,false?>
                        
</span>
                    </
span>
                    <
span class="price-including-tax">
                        <
span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:'?></span>
                        <
span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                            
<?php echo $_coreHelper->currency($_finalPriceInclTax,true,false?>
                        
</span>
                    </
span>
                </
p>
            
<?php else: ?>
            
<class="special-price">
                <
span class="price-label"><?php echo $this->__('VIP Price:'?></span
                <!-- 
VIP Price--> <?php if ($this->helper('customer')->isLoggedIn()) { ?><!-- VIP Price || --><span class="vip price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                    
<?php echo $_coreHelper->currency($_finalPrice,true,false?>
                
</span>
                                <!-- 
VIP Price :> --> 
                                
<?php }else{ ?>
                                        
<class="vip" href="/customer/account/login/"You need to login for VIP Price</a>
                                
<?php } ?>
            
</p>
            
<?php endif; ?>
        <?php 
endif; ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
jaatendi
Jr. Member
 
Total Posts:  20
Joined:  2013-05-08
 

Thanks for posting, I will try it out!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Amasty
Mentor
 
Avatar
Total Posts:  3988
Joined:  2009-11-10
 

deleted

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