Chirag
Chirag

Reputation: 1239

What is the best way to change currency in wordpress woocommerce?

The default currency in the template based n woocomeerce that I am using is British pounds. The currency in the target country is different. Based on searching I found few ways of changing the currency. What is the best way?

http://www.kriesi.at/support/topic/change-of-the-woocommerce-price-currency

http://wcdocs.woothemes.com/snippets/add-a-custom-currency-symbol/

Furthermore, in which function.php file should the code be included? (one within wootemplate folder or within wp-includes directory)

Upvotes: 1

Views: 6736

Answers (3)

If you want multi currency on your shop then try wordpress plugins for this functionality. but you must need to change settings from the woo-commerce end for checkout page & shipping cost calculation. plugins will switch currency at the shop but only few of them can able manage the same currency at cart & checkout page & while shipping cost calculation.

Upvotes: 0

Therichpost
Therichpost

Reputation: 1815

Here you can check this code:

add_filter('woocommerce_currency_symbol', 'change_currency_symbol', 10, 2);
function change_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'AUD': $currency_symbol = 'AUD $'; break;
}
return $currency_symbol;
}

Upvotes: 0

Chirag
Chirag

Reputation: 1239

Use any of the link mentioned in the above question. Add the code to functions.php of the theme. If using child theme, add it to the functions.php of child.

Upvotes: 1

Related Questions