Manage Points Currency in Magento

What is Points Currency?

In MageRewards you are able to customize the name of your reward points to match your store's experience. For example, instead of saying  Earn 100 Points, you might want to say Earn 100 Gold Points. In this case, Gold is your Currency Caption.

Similarly,  Earn 100 Gold Points would be considered your Points String.

How do I change the Currency Caption?

If you want to assign a  Currency Caption, for example 50 Gold Points, you can do this by navigating to Rewards > Configuration > Points Currency in your Magento admin..

How do I set a Points Currency Image?

Learn how to setup a Points Currency Image

How do I replace the default icon next to Earn 100 Gold Points?

1. Create a 16px x 16px .png file.

2. Save your new image to skin/frontend/ <your_package>/<your_theme>/images/rewards/add_points.png. If the rewards folder does not exist, you will have to create it in this location. Saving your image here prevents it from being overwritten in a future extension update.

3. Upload your new add_points.png file.

4. Clear your cache.

How is the points string rendered in Magento templates?

The rewards/points.phtml file modifies how the entire system renders  Points Strings in the front-end and in the admin. It also allows you to change the points string caption. For admin displays, the base/default theme is always used so your app/design/frontend/base/default/rewards/points.html should always be in place.

How can I remove the points currency display completely?

You can follow these instructions to change the phrasing  123 Gold Points to 123 Points. You can remove the points currency display from your MageRewards installation, and even do this on a per-store-view, per-store or per-website basis. Simply modify the rewards/points.phtml file.

1. Copy app/design/frontend/ base/default/template/rewards/points.phtml 
to app/design/frontend/ <your_package>/<your_theme>/template/rewards/points.phtml so that you are not modifying core template files.

2. Open app/design/frontend/ <your_package>/<your_theme>/template/rewards/points.phtml, change line 66:

echo $p['amount'] . " " . $p['currency'];
	

to

echo $p['amount'] ;
	


3. Upload new and modified files to your server..

4. Clear your cache.

How do I translate the currency name?

Currently MageRewards does not allow you to create different currencies based on store views in the Magento Configuration. However, if you are using different translations for each store view, you can still achieve the same result.

1. Open app/design/frontend/ base/default/template/rewards/points.phtml and look for anything like this:

$this->__('Text I want to translate.');
	


2. Locate the line you want to translate in your  TBT_Rewards.csv translation file(s).

3. Translate the lines as needed for your store views.

4. If the line does not already exist, you can add it to your translation file.

How can I change the currency name?

Note: The Currency Name is different from the Currency Caption. This is what you need in order to change Points to Pebbles. Ideally, it should be done using translations; however, it can also be changed by modifying code.

1. Copy app/design/frontend/ base/default/template/rewards/points.phtml 
to app/design/frontend/ <your_package>/<your_theme>/template/rewards/points.phtml so that you are not modifying core template files.

2. Open app/design/frontend/ <your_package>/<your_theme>/template/rewards/points.phtml, change lines 66-69:

echo $p['amount'] . " " . $p['currency']; 
if(!$this->getDontShowStringPoints()) {  
echo " " . (($p['amount'] == 1) ? $this->__('Point') : $this->__('Points')); 
}
	

How do I add a prefix to the Points Currency?

You can add any prefix to the  Points Currency displayed on your store. For example, you can add a "$" sign in front of the currency. To do, this you will need to do a bit of code customization:

1. Copy app/design/frontend/ base/default/template/rewards/points.phtml 
to app/design/frontend/ <your_package>/<your_theme>/template/rewards/points.phtml so that you are not modifying core template files.

2. Open app/design/frontend/ <your_package>/<your_theme>/template/rewards/points.phtml, change lines 62-65 from:

if (empty($p['currency'])) {   // if the currency caption is blank or empty       
echo $p['amount_formatted'];       // <- then don't display the caption         
} else {                     // <- otherwise display the caption as normal             
echo $p['amount_formatted'] . " " . $p['currency'];         
}
	

to: 

if (empty($p['currency'])) {   // if the currency caption is blank or empty       
echo "$" . $p['amount_formatted'];       // <- then don't display the caption         
} else {                     // <- otherwise display the caption as normal             
echo "$" . $p['amount_formatted'] . " " . $p['currency'];         
}
	

3. Upload new and modified files to your server.

4. Clear your cache.

How do I change the mention of 'points' in other places?

  • You may want to modify your translation file in app/locale/[en_US]/TBT_Rewards.csv to change the other mentions of "points".
  • Upload new and modified TBT_Rewards.csv to your server.
  • Clear your cache.

Still need help? Get Help Get Help