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
Recommendation
↑ Back to top*We recommend using Claudio’s MercadoPago free and updated plugin at WordPress.org: https://wordpress.org/plugins/woocommerce-mercadopago/
Installation
↑ Back to top- Download the .zip file from your WooCommerce account.
- Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
- Install Now and Activate the extension.
More information at: Install and Activate Plugins/Extensions.
Setup and Configuration
↑ Back to topTo configure the plugin:
- Enter the required information in the gateways settings under the checkout tab, you can get those from your MercadoPago dashboard
- 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.
- 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;
}