Hello:
I´d like to change the symbol "$" for the symbol "MXN" (Mexican Pesos). In two areas:
1) In the "Car Button" located in the top of the page.
2) In the "Payment Page".
Can you explain me the steps to do it.
Thanks.
Hello:
I´d like to change the symbol "$" for the symbol "MXN" (Mexican Pesos). In two areas:
1) In the "Car Button" located in the top of the page.
2) In the "Payment Page".
Can you explain me the steps to do it.
Thanks.
woocommerce>basic settings>currency
Hi!
Thanks mAqq for helping us out.
Best regards,
Peter
Hi.
The currency it´s all ready in Mexican Pesos.
But, What I need to change is the symbol "$" and place de symbol "MXN"
¿Can I do that?
Thanks.
Hey!
You can use a filter function. http://docs.woothemes.com/document/add-a-custom-currency-symbol/
Regards,
Peter
Hi.
I understand the filter funcion, but sorry I kind of new in this.
¿Where exactly I have to paste the code?
Thanks.
Is this the correct route:
wp-content/themes/replete/functions.php
Hey!
Yes, that's the correct file - just insert the code at the very bottom of it and change the currency symbol.
Regards,
Peter
I need to place "Pesos Mexicanos" in currency type.
And the symbol "MXN" in the symbol type.
But I don´t now where exactly this info goes.
This is the original code.
¿Can you send me this code with the correct change of concepts?
Thanks.
add_filter( 'woocommerce_currencies', 'add_my_currency' );
function add_my_currency( $currencies ) {
$currencies['ABC'] = __( 'Currency name', 'woocommerce' );
return $currencies;
}
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'ABC': $currency_symbol = '$'; break;
}
return $currency_symbol;
}
I think what you are looking for is:
add_filter( 'woocommerce_currencies', 'add_my_currency' );
function add_my_currency( $currencies ) {
$currencies['ABC'] = __( 'Pesos Mexicanos', 'woocommerce' );
return $currencies;
}
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'ABC': $currency_symbol = 'MXN'; break;
}
return $currency_symbol;
}
Regards,
Devin
Hello:
Thanks for all your help!!
Done.
:)
Glad we could help :)
Let us know if you have any other questions or issues.
Regards,
Devin
This topic has been closed to new replies.