Add A Currency

Last updated on Wednesday, October 26th, 2011

These instructions are intended for those who are proficient in theme development. The relevant tutorials on developing & customising themes can be found on wordpress.org. If this is beyond you, we do offer a competitively-priced theme development service starting at £33 per hour. Please contact us for further details.

To add a currency to the list in Settings → eShop → Merchant Gateways, add the a function to the eshop_currency_codes filter to your theme’s functions.php.

Example:

function add_klingon($currencycodes) {
	$currencycodes['XYZ'] = __('Klingon Darsek','eshop');
	return $currencycodes;
}
add_filter('eshop_currency_codes', 'add_klingon');

Remeber to also set up the correct currency symbol in Settings → eShop → General and to ensure that the eShop currency matches the currency selected in your chosen merchant gateway.

WordPress Installation and Set Up

Top