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

We recommend using Claudio’s Mercado Pago free and updated plugin at WordPress.org: https://wordpress.org/plugins/woocommerce-mercadopago/

Configuration ↑ Back to Top

To configure the plugin once installed, you need to do a few things:

  1. Enter the required information in the gateways settings under the checkout tab, you can get those from your MercadoPago dashboard
  2. Add a custom currency for ARS (Argentinos Pesos) in WooCommerce. Add the below code to your theme’s functions.php or in its own plugin file.
  3. Set ARS (Argentine pesos) as the currency in WooCommerce general settings tab.

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;
}

Back to the top