Display points in the one page checkout

What does this block do?

This provides a side box during the order process which indicates to the customer which rewards they will be earning and spending.

How do I integrate this block manually?

1. Open /design/frontend/ [your package]/[your theme]/template/checkout/onepage/progress.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/checkout_onepage_progress_sidebox')->toHtml(); ?>
    <?php endif;?>
    <?php /*MageRewards CODE ENDS*/?>
	

3. Look for line 27 and place the copied code in lines 31-36 as shown here: 

<div class="box one-page-checkout-progress">
    <h3><?php echo $this->__('Your Checkout Progress') ?></h3>
    <ol>
    <?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/checkout_onepage_progress_sidebox')->toHtml(); ?>
    <?php endif;?>
    <?php /*MageRewards CODE ENDS*/?> 
    <?php if ($this->getCheckout()->getStepData('billing', 'is_show')): ?>
        <?php if ($this->getCheckout()->getStepData('billing', 'complete')): ?>
            <li>
                <h4 class="complete"><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="#billing" onclick="checkout.accordion.openSection('opc-billing'); return false;"><?php echo $this->__('Change') ?></a></h4>
                <div class="content">
                    <address><?php echo $this->getBilling()->format('html') ?></address>
                </div>
            </li>
        <?php else: ?>
	

Still need help? Get Help Get Help