Adding a URL or Image to the Point Currency

So you want to add a URL or an image to your point currency?  Below are the steps to allow you to do this.

Step 1:

Edit TBT_Rewards.csv and remove the right column of Points and Point (see below)

Points,
Point,

Step 2:

Copy

 app/code/community/TBT/Rewards/Block/Customer/Summary.php

to

 app/code/local/TBT/Rewards/Block/Customer/

Edit the file remove this code:

"$this->htmlEscape"

Step 3:

Copy

 app/code/community/TBT/Rewards/Block/Customer/Transfers/Grid.php

to

 app/code/local/TBT/Rewards/Block/Customer/Transfers/

Edit the file and add:

 'type' => 'text'

You can use the following for reference

$this->addColumn('points', array(<br>	'header'    => $this->_pointsColumnHeader,<br>	'index'     => 'points_caption',<br>	'width'     => '125px',<br>	'type'      => 'text', //This is the line I've added<br>	'sortable'  => false  // TODO: it would be cool to sort by this<br>));

Step 4:

Copy

 app/code/community/TBT/Rewards/Block/Manage/Transfer/Grid.php

to

app/code/local/TBT/Rewards/Block/Manage/Transfer/

Edit the file and add 

 'type' => 'text'

 You can use the following for reference

 $this->addColumn ( 'points', array ('header' => Mage::helper ( 'rewards' )->__ ( 'Points' ), 'align' => 'left', 'width' => '70px', 'index' => 'points', 'type' => 'text', 'filter_index' => "main_table.quantity" ) );

Step 5:

Go to Rewards -> Configuration -> Points Currency -> Currency Information -> Currency Caption -> call the image using html image tag.

For Example:

<img src="url">

Step 6:

Flush all Cache in your store

Setting up different images for Multiple Stores 

Step: 1

Rewards -> Configuration -> Points Currency -> Currency Information -> Currency Caption -> Removed image url from here (if you have done set up for single store)

Step 2:

Copy

/app/design/frontend/base/default/template/rewards/points.phtml

to your

Store Theme 1

/app/design/frontend/{your_package}/{your_store_1_theme/template/rewards/points.phtml

Store Theme 2

/app/design/frontend/{your_package}/{your_store_2_theme/template/rewards/points.phtml

Step 3:

Find Line 68 in the copied files and add the Image Path as below

Store Theme 1

echo '<img src="'.$this->getSkinUrl("images/rewards/store-1-point-currency.png").'"> ';

Store Theme 2

echo '<img src="'.$this->getSkinUrl("images/rewards/store-2-point-currency.png").'"> ';

Step 4:

Copy the Images to both of your skin theme images directory

Store Theme 1

/skin/frontend/{your_package}/{your_store_1_theme}/images/rewards/store-1-point-currency.png

Store Theme 2

/skin/frontend/{your_package}/{your_store_2_theme}/images/rewards/store-2-point-currency.png

Step 5:

Flush all Cache in your store

Still need help? Get Help Get Help