Customizing the Shopping Cart Points Column

Some MageRewards store owners have modified the order of display for shopping cart items. In accommodate the majority of MageRewards users that only slightly modify their shopping cart look.

Changing Column Header Order

If the Column Header Display is correct and does not require modifications, ignore this step. 

  1. Copy base/default/template/rewards/checkout/cart.phtmlto default/<your_theme>/template/rewards/checkout/cart.phtml
  2. Edit default/<your_theme>/template/rewards/checkout/cart.phtml at ~line86 find injection text:
  3.  <?php /*WDCA CODE BEGINS*/?>      <?php echo $this->getChildHtml('catalogpoints-header'); ?>       <?php /*WDCA CODE ENDS*/?>
    				
  4. Move this injection text to other locations in the html table header, save clear cache and test.


Note: Before version 1.6 of MageRewards, template files were located in the 'default/default' folder rather than the 'base/default' folder.

Changing Column Content Display

You should have a general knowledge of HTML before attempting to make these changes. These instructions are for MageRewards versions 1.2.8.* or newer. If you're using  MageRewards 1.2.7.3 or lower, follow these instructions instead.

If you DON'T have your own shopping cart renderer templates...

1. Copy app\design\frontend\base\default\template\rewards\checkout\cart\item\default.phtml to app\design\frontend\ your_package\your_theme\template\rewards\checkout\cart\item\default.phtml 

2. At around lines 164 to 217 you'll see some WDCA specific template code starting with 'WDCA CODE ENDS' and 'WDCA CODE BEGINS'. The rest was copied from the default Magento shopping cart row rendering template. You can can move this code to other places in the file to adjust where the content is rendered. You can customize this file further if you'd like.

3. When you're done, save, clear cache and refresh your shopping cart to see changes.

Note: Before version 1.6 of MageRewards, template files were located in the 'default/default' folder rather than the 'base/default' folder.

If you DO have your own shopping cart renderer templates...

1. Copy your default/ your_theme/template/checkout/cart/item/default.phtml to default/your_theme/template/rewards/checkout/cart/item/default.phtml. 
    If the files or folders don't exist for the destination, create theme.

2. Copy the code in between the <?php /*WDCA CODE BEGINS*/?> and the <?php /*WDCA CODE ENDS*/?> tags within the default/default/template/rewards/checkout/cart/item/default.phtml file. 

3. Paste it into default/ your_theme/template/rewards/checkout/cart/item/default.phtml in the appropriate column.

I Want To Remove The MageRewards Columns

Please see  How To Turn Off The Points Columns In The Shopping Cart

Still need help? Get Help Get Help