WooCommerce MercadoPago - Version 4.3.1

Version Description

Download this release

Release Info

Developer mercadopago
Plugin Icon 128x128 WooCommerce MercadoPago
Version 4.3.1
Comparing to
See all releases

Code changes from version 4.3.0 to 4.3.1

i18n/languages/woocommerce-mercadopago-es_AR.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_AR.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:07-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_CL.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_CL.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:07-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_CO.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_CO.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:07-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_ES.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_ES.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:07-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_MX.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_MX.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:07-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_PE.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_PE.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:07-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_UY.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_UY.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:35-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:08-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-es_VE.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_VE.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:36-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:08-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago-pt_BR.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-pt_BR.po CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
- "PO-Revision-Date: 2020-08-18 17:36-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 4.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
12
+ "PO-Revision-Date: 2020-09-10 09:08-0300\n"
13
  "X-Generator: Poedit 2.4.1\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
includes/module/config/WC_WooMercadoPago_Constants.php CHANGED
@@ -11,7 +11,7 @@ class WC_WooMercadoPago_Constants
11
  {
12
  const PRODUCT_ID = 'BC32CPFTRPP001U8NHRG';
13
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
14
- const VERSION = '4.3.0';
15
  const MIN_PHP = 5.6;
16
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
17
  }
11
  {
12
  const PRODUCT_ID = 'BC32CPFTRPP001U8NHRG';
13
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
14
+ const VERSION = '4.3.1';
15
  const MIN_PHP = 5.6;
16
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
17
  }
includes/stock/WC_WooMercadoPago_Stock_Manager.php CHANGED
@@ -14,12 +14,12 @@ class WC_WooMercadoPago_Stock_Manager
14
  */
15
  public function __construct()
16
  {
 
17
  add_action('woocommerce_order_status_pending_to_cancelled', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
18
- add_action('woocommerce_order_status_processing_to_cancelled', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
19
- add_action('woocommerce_order_status_completed_to_cancelled', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
20
- add_action('woocommerce_order_status_on-hold_to_cancelled', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
21
  add_action('woocommerce_order_status_processing_to_refunded', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
22
- add_action('woocommerce_order_status_completed_to_refunded', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
23
  add_action('woocommerce_order_status_on-hold_to_refunded', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
24
  }
25
 
@@ -28,9 +28,18 @@ class WC_WooMercadoPago_Stock_Manager
28
  */
29
  public static function restore_stock_item($order_id)
30
  {
31
- $order = new WC_Order($order_id);
 
 
 
 
 
 
 
 
32
 
33
- if (!get_option('woocommerce_manage_stock') == 'yes' && !sizeof($order->get_items()) > 0) {
 
34
  return;
35
  }
36
 
14
  */
15
  public function __construct()
16
  {
17
+ // MP status pending logic
18
  add_action('woocommerce_order_status_pending_to_cancelled', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
19
+ add_action('woocommerce_order_status_pending_to_failed', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
20
+
21
+ // Mp status approved logic
22
  add_action('woocommerce_order_status_processing_to_refunded', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
 
23
  add_action('woocommerce_order_status_on-hold_to_refunded', array('WC_WooMercadoPago_Stock_Manager', 'restore_stock_item'), 10, 1);
24
  }
25
 
28
  */
29
  public static function restore_stock_item($order_id)
30
  {
31
+ $order = wc_get_order($order_id);
32
+
33
+ if (!$order || 'yes' !== get_option('woocommerce_manage_stock') || !apply_filters('woocommerce_can_reduce_order_stock', true, $order)) {
34
+ return;
35
+ }
36
+
37
+ if ($order->get_payment_method() !== 'woo-mercado-pago-ticket') {
38
+ return;
39
+ }
40
 
41
+ $mp_ticket_settings = get_option('woocommerce_woo-mercado-pago-ticket_settings');
42
+ if (empty($mp_ticket_settings) || in_array('stock_reduce_mode', $mp_ticket_settings) || $mp_ticket_settings['stock_reduce_mode'] == 'no') {
43
  return;
44
  }
45
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
4
  Requires at least: 4.9.10
5
  Tested up to: 5.5
6
  Requires PHP: 5.6
7
- Stable tag: 4.3.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,6 +115,10 @@ Set up both the plugin and the checkouts you want to activate on your payment av
115
  Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
116
 
117
  == Changelog ==
 
 
 
 
118
  = v4.3.0 (31/08/2020) =
119
  * Features
120
  - Improve plugin initialization
4
  Requires at least: 4.9.10
5
  Tested up to: 5.5
6
  Requires PHP: 5.6
7
+ Stable tag: 4.3.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
115
  Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
116
 
117
  == Changelog ==
118
+ = v4.3.1 (10/09/2020) =
119
+ * Bug fixes
120
+ - Adjusted inventory (for canceled orders) on payments made at the personalized offline checkout
121
+
122
  = v4.3.0 (31/08/2020) =
123
  * Features
124
  - Improve plugin initialization
woocommerce-mercadopago.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Mercado Pago payments for WooCommerce
5
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
6
  * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
7
- * Version: 4.3.0
8
  * Author: Mercado Pago
9
  * Author URI: https://developers.mercadopago.com/
10
  * Text Domain: woocommerce-mercadopago
4
  * Plugin Name: Mercado Pago payments for WooCommerce
5
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
6
  * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
7
+ * Version: 4.3.1
8
  * Author: Mercado Pago
9
  * Author URI: https://developers.mercadopago.com/
10
  * Text Domain: woocommerce-mercadopago