Search

MercadoPago plugin configuration

MercadoPago is a payment gateway used in Latin America, offering multiple payment alternatives for the following countries:

  • Argentina (currently the only country compatible with the plugin)
  • Brasil
  • Chile
  • Colombia
  • México
  • Venezuela

Download the plugin  Changelog

Configuration ↑ Back to Top

To configure the plugin once installed, you need:

  1. Enter the required information, which you can obtain from your MercadoPago dashboard
  2. Set ARS (Argentine pesos) as the currency in WooCommerce settings by editing your theme’s functions.php file and adding:
add_filter( 'woocommerce_currencies', 'add_ars_currency' );
function add_ars_currency( $currencies ) {
$currencies['ARS'] = __( 'Pesos Argentinos', 'woothemes' );
return $currencies;
}
add_filter( 'woocommerce_currency_symbol', 'add_ars_symbol', 1, 2);
function add_ars_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'ARS': $currency_symbol = '$'; break;
}
return $currency_symbol;
}

MercadoPago configuration screen

Back to the top