Manually Integrating Product View Page Earned and Redeemable Points Block

This article is outdated starting from  MageRewards v1.12.0!

Where is the configuration setting for this block?

If you were to set this in  Rewards > Configuration > Other Configuration in the Integrated Content section, it would be this setting:

What does this block do?

This will let your customers select catalog rewards from the product view page. It  will display directly under the price as shown below. If you're using any type of catalog redemption rules in your store this step is required to show the redeemer slider/selector.

How do I integrate this block manually?

If your theme is too customized to use the configuration setting or you simply would rather implement the code manually, please follow these directions to integrate this block into your product view page.

1. Open /design/frontend/ [your package]/[your theme]/template/catalog/product/view.phtml

2. Copy this code:

<?php /*MageRewards CODE BEGINS*/ ?>
<?php echo $this->getChildHtml('points'); ?>
<?php /*MageRewards CODE ENDS*/ ?>

3. Look for line 70 and place the copied code in lines 74-76 as shown here:

<?php echo $this->getChildHtml('alert_urls') ?>
<?php echo $this->getChildHtml('product_type_data') ?>
<?php echo $this->getTierPriceHtml() ?>
<?php /*MageRewards CODE BEGINS*/ ?>
<?php echo $this->getChildHtml('points'); ?>
<?php /*MageRewards CODE ENDS*/ ?>
<?php if (!$this->hasOptions()):?>
    <div class="add-to-holder">
    <?php if($_product->isSaleable()): ?>
        <?php echo $this->getChildHtml('addtocart') ?>
        <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
            <span class="add-or"><?php echo $this->__('OR') ?></span>
        <?php endif; ?> for Magento

If you're using the for Magento extension, the above code will not work. You will need to use the following instead:

 // MageRewards CODE BEGINS
 $points_earned = Mage::getSingleton('core/layout')->
 echo $points_earned ? $points_earned->toHtml() : "";
 //MageRewards CODE ENDS 

Easy Tabs

If you're using the Easy Tabs extension please view the  Easy Tabs Integration Instructions we wrote or else you may not see this section on your site.

Still need help? Get Help Get Help