How to add custom english verbiage for price label for specific customer group in magento

This is the php if statement that you would add to your view.php file for changing out the english verbiage that pulls the price label for a specific customer group, like wholesale as this rule is for. You would find this in your view.php file for the product page

<span class="price-label"><?php echo $_specialPriceStoreLabel</span>

and change it to this:

 <span class="price-label">
					
					
<?php $_isLoggedIn = $this->helper('customer')->isLoggedIn(); ?>

<?php $_myGroupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
    if($_myGroupId == 2){
?>
  Wholesale Price
 <?php 
    }
    else
    {
    ?>
       <?php echo $_specialPriceStoreLabel ?><?php } ?></span>

Leave a Reply

Your email address will not be published. Required fields are marked *