Manually Integrating Shopping Cart Points Box

Note: If you're using MageRewards or earlier please follow these instructions instead.

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 injection adds a handy Rewards box underneath the shopping cart. Here the customer can add, remove, and/or review current shopping cart redemption and distributions. This also shows the shopping cart points slider and redemption check boxes.

If your rules are validated for the current customer, and the settings are set to show the box, it will look something like this: 

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 shopping cart.

For MageRewards or earlier.

1. Open /design/frontend/[your package]/[your theme]/template/checkout/cart.phtml

2. Copy this code:
<?php /*WDCA CODE BEGINS*/?>
<?php echo $this->getChildHtml('cartpoints_spender'); ?>
<?php /*WDCA CODE ENDS*/?>

3. Look for line 110 and place the copied code in lines 114-116 as shown here:

<div class="shopping-cart-collaterals">
    <div class="col2-set">
        <?php echo $this->getChildHtml('crosssell') ?>
        <div class="col-2">
            <?php /*WDCA CODE BEGINS*/?>
            <?php echo $this->getChildHtml('cartpoints_spender'); ?>        
            <?php /*WDCA CODE ENDS*/?>    
            <?php echo $this->getChildHtml('coupon') ?>
            <?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>

For MageRewards version starting from

Manually integrate Spending block on Cart page.

Edit coupon.phtml of your theme and add the code below. In Magento RWD theme it is /app/design/frontend/rwd/default/template/checkout/cart/coupon.phtml.

<?php echo $this->getChildHtml('points.spender'); ?><br>

Manually integrate Spending block on Checkout page.

Edit  app/design/frontend/base/default/template/checkout/onepage/review.phtml and add the code below.

<?php echo $this->getChildHtml('points.spender'); ?>

Manually integrate Spending block on IDEV Onestep Checkout.

Edit /app/design/frontend/base/default/template/onestepcheckout/summary.phtml insert

<?php echo $this->getChildHtml('points.spender'); ?>


<table class="onestepcheckout-summary">

Manual Integration on cart.phtml for MageRewards version starting from

Edit /app/design/frontend/rwd/default/template/checkout/cart.phtml and insert the code below.

<?php echo Mage::helper('rewards/cart')->createCartSpenderBlock()->toHtml(); ?>

Still need help? Get Help Get Help