Integration for displaying both prices in the shopping cart

Note: This is only compatible with MageRewards 1.3+.


If you are using a shopping cart display that shows both the price before tax and price after tax in the shopping cart you need to follow these steps to make the cart display properly. 

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

2. Copy this code:

<?php /*WDCA CODE BEGINS*/ ?>
 <?php if ($this->helper('tax')->displayCartBothPrices()): ?><th></th><th></th><?php endif; ?>
 <?php /*WDCA CODE ENDS*/ ?>
	

3. Look for line 89 and place the copied code in lines 95-97 as shown here:

<th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Subtotal') ?></th> 
</tr>
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
    <tr>
        <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
        <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
        <?php /*WDCA CODE BEGINS*/ ?>
        <?php if ($this->helper('tax')->displayCartBothPrices()): ?><th></th><?php endif; ?>
        <?php /*WDCA CODE ENDS*/ ?>
        <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
        <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
	

Older Versions of Magento

Older Magento templates have one less <th></th> set as shown here:

 <?php /*WDCA CODE BEGINS*/ ?>
 <?php if ($this->helper('tax')->displayCartBothPrices()): ?><th></th><?php endif; ?>
 <?php /*WDCA CODE ENDS*/ ?>
	

Further troubleshooting

If the cart still does not display properly, ensure that no columns in /design/frontend/[your package]/[your theme]/template/rewards/cart/headers.phtml or /design/frontend/default/default/template/rewards/cart/headers.phtml contain:

 colspan="<?php echo $mergedCells; ?>"
	

This was a bug that was fixed in MageRewards 1.3 but if you upgraded the template may have persisted with your design.

Still need help? Get Help Get Help