Customize Product View

  1. Copy app/design/frontend/default/default/template/rewards/product/view/points_earned.phtml 
    to app/design/frontend/<your_package>/<your_theme>/template/template/rewards/product/view/points_earned.phtml.
    • Note: Never edit the default template files because updates to MageRewards will remove any of your customizations.
  2. In the new file, edit 'You will earn %s for buying this product' to your new text:
  1. div class="distri_section">
    	<?php foreach ($this->getDistriRewards() as $reward_currency => $reward_amount): ?>
    	<?php $points_summary = $this->getPointsString($reward_amount, $reward_currency); ?>
    	<?php if($this->doGraphicalEarning()): ?>        
    		<div class="earnable" align="left">
    		    <table border=0 cellspacing=0 cellpadding=0><tbody><tr>
    		    	<td align="left" class="rewards-mini-icon-holder">
    			    <img src="<?php echo $this->getSkinUrl("images/rewards/add_points.png"); ?>">
    			</td>
                  <td align="left">
    <!-- HERE -->             <?php echo $this->__('Get %s for buying this product', $points_summary); ?>
                  </td>
                </tr></tbody></table>
            </div>
    	<?php else: ?>
    		<div class="you_will_earn">
    <!-- HERE -->             <?php echo $this->__('Get %s for buying this product', $points_summary); ?>
    		</div>
    	<?php endif ?>
    		<!-- $reward_currency is almost always '1' and $reward_amount is an integer amount of points to display. -->
    		<?php $img_url = $this->getPointsImgUrl($reward_amount, $reward_currency); ?>
    		<?php $imgPath = Mage::getModel('rewards/currency')->load($reward_currency)->getImage(); ?>
    		<?php if(!empty($imgPath)): ?>
    			<img src="<?php echo $img_url; ?>" class="points_image points_currency_image-<?php echo $reward_currency?>"/>
    		<?php endif; ?>
    	<?php endforeach; ?>
    </div><br>
    	

Still need help? Get Help Get Help