Display points in newsletter sign-up sidebox

Note: This only works for MageRewards 1.3+. 

What does this block do?

This informs the customer how many points they will earn by signing up for your newsletter. Nothing will show if you do not have a rule distributing points for newsletter sign-ups.

How do I integrate this block manually?

1. Open /design/frontend/ [your package]/ [your theme]/template/newsletter/subscribe.phtml
2. Copy this code:
<?php /*MageRewards CODE BEGINS*/?>
 <?php if(!Mage::getStoreConfigFlag('advanced/modules_disable_output/TBT_Rewards') 
        && Mage::getConfig()->getModuleConfig('TBT_Rewards')->is('active', 'true')) : ?>
     <?php echo Mage::getBlockSingleton('rewards/special_newsletter')->setTemplate("rewards/special/newsletter.phtml")->toHtml(); ?>
 <?php endif;?>
 <?php /*MageRewards CODE ENDS*/?>
	

3. Look for line 42 and place the copied code in lines 45-50 as shown here:

<label for="newsletter"><?php echo $this->__('Sign up for our newsletter:') ?></label>
            <input name="email" type="text" id="newsletter" class="required-entry validate-email input-text" />
            <button type="submit" class="form-button-alt"><span><?php echo $this->__('Subscribe') ?></span></button>
            <?php /*MageRewards CODE BEGINS*/?>
            <?php if(!Mage::getStoreConfigFlag('advanced/modules_disable_output/TBT_Rewards') 
&& Mage::getConfig()->getModuleConfig('TBT_Rewards')->is('active', 'true')) : ?>
            	<?php echo Mage::getBlockSingleton('rewards/special_newsletter')->setTemplate("rewards/special/newsletter.phtml")->toHtml(); ?>
            <?php endif;?>
            <?php /*MageRewards CODE ENDS*/?> 
    </fieldset>
</form>
	

Still need help? Get Help Get Help