WooCommerce Extra Checkout Fields for Brazil - Version 3.7.1

Version Description

  • 2019/09/24 =

  • Corrigido bug causado pelo WooCommerce na exibio do endereo de entrega na lista de pedidos no painel admininstrativo.

Download this release

Release Info

Developer claudiosanches
Plugin Icon 128x128 WooCommerce Extra Checkout Fields for Brazil
Version 3.7.1
Comparing to
See all releases

Code changes from version 3.7.0 to 3.7.1

includes/class-extra-checkout-fields-for-brazil-front-end.php CHANGED
@@ -47,7 +47,7 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
47
  */
48
  public function enqueue_scripts() {
49
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
50
-
51
  wp_register_style( 'woocommerce-extra-checkout-fields-for-brazil-front', plugins_url( 'assets/css/frontend/frontend.css', plugin_dir_path( __FILE__ ) ), array(), Extra_Checkout_Fields_For_Brazil::VERSION, 'all' );
52
 
53
  wp_register_script( 'jquery-mask', plugins_url( 'assets/js/jquery.mask/jquery.mask' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), '1.14.10', true );
@@ -517,6 +517,8 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
517
  * @return array New address format.
518
  */
519
  public function order_formatted_shipping_address( $address, $order ) {
 
 
520
  // WooCommerce 3.0 or later.
521
  if ( method_exists( $order, 'get_meta' ) ) {
522
  $address['number'] = $order->get_meta( '_shipping_number' );
47
  */
48
  public function enqueue_scripts() {
49
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
50
+
51
  wp_register_style( 'woocommerce-extra-checkout-fields-for-brazil-front', plugins_url( 'assets/css/frontend/frontend.css', plugin_dir_path( __FILE__ ) ), array(), Extra_Checkout_Fields_For_Brazil::VERSION, 'all' );
52
 
53
  wp_register_script( 'jquery-mask', plugins_url( 'assets/js/jquery.mask/jquery.mask' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), '1.14.10', true );
517
  * @return array New address format.
518
  */
519
  public function order_formatted_shipping_address( $address, $order ) {
520
+ $address = (array) $address;
521
+
522
  // WooCommerce 3.0 or later.
523
  if ( method_exists( $order, 'get_meta' ) ) {
524
  $address['number'] = $order->get_meta( '_shipping_number' );
languages/woocommerce-extra-checkout-fields-for-brazil.pot CHANGED
@@ -1,19 +1,31 @@
1
- # Copyright (C) 2018 Claudio Sanches
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Extra Checkout Fields for Brazil 3.6.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-extra-checkout-fields-for-"
8
  "brazil\n"
9
- "POT-Creation-Date: 2018-05-24 15:50:55+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
- "X-Generator: grunt-wp-i18n1.0.2\n"
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  #: includes/admin/class-extra-checkout-fields-for-brazil-admin.php:49
19
  msgid "Load the customer extras data?"
@@ -33,8 +45,8 @@ msgstr ""
33
  #: includes/admin/views/html-order-billing-data.php:22
34
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:128
35
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:143
36
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:423
37
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:427
38
  msgid "CPF"
39
  msgstr ""
40
 
@@ -43,7 +55,7 @@ msgstr ""
43
  #: includes/admin/views/html-legacy-order-billing-data.php:24
44
  #: includes/admin/views/html-order-billing-data.php:24
45
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:136
46
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:431
47
  msgid "RG"
48
  msgstr ""
49
 
@@ -53,8 +65,8 @@ msgstr ""
53
  #: includes/admin/views/html-order-billing-data.php:30
54
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:162
55
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:177
56
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:442
57
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:446
58
  msgid "CNPJ"
59
  msgstr ""
60
 
@@ -63,7 +75,7 @@ msgstr ""
63
  #: includes/admin/views/html-legacy-order-billing-data.php:33
64
  #: includes/admin/views/html-order-billing-data.php:33
65
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:170
66
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:450
67
  msgid "State Registration"
68
  msgstr ""
69
 
@@ -115,7 +127,7 @@ msgstr ""
115
 
116
  #: includes/admin/class-extra-checkout-fields-for-brazil-order.php:54
117
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:113
118
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:417
119
  msgid "Person type"
120
  msgstr ""
121
 
@@ -143,7 +155,7 @@ msgstr ""
143
  #: includes/admin/class-extra-checkout-fields-for-brazil-order.php:95
144
  #: includes/admin/views/html-legacy-order-billing-data.php:37
145
  #: includes/admin/views/html-order-billing-data.php:37
146
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:438
147
  msgid "Company"
148
  msgstr ""
149
 
@@ -244,31 +256,23 @@ msgid ""
244
  "and Cell Phone."
245
  msgstr ""
246
 
247
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:190
248
- msgid "Enable Address Autocomplete:"
249
- msgstr ""
250
-
251
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:197
252
- msgid "If checked automatically complete the address fields based on the zip code."
253
- msgstr ""
254
-
255
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:205
256
  msgid "Validation:"
257
  msgstr ""
258
 
259
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:213
260
  msgid "Validate CPF:"
261
  msgstr ""
262
 
263
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:220
264
  msgid "Checks if the CPF is valid."
265
  msgstr ""
266
 
267
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:227
268
  msgid "Validate CNPJ:"
269
  msgstr ""
270
 
271
- #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:234
272
  msgid "Checks if the CNPJ is valid."
273
  msgstr ""
274
 
@@ -279,7 +283,7 @@ msgid ""
279
  msgstr ""
280
 
281
  #. Plugin Name of the plugin/theme
282
- msgid "WooCommerce Extra Checkout Fields for Brazil"
283
  msgstr ""
284
 
285
  #: includes/admin/views/html-admin-help-message.php:15
@@ -368,32 +372,20 @@ msgstr ""
368
  msgid "Address line 2"
369
  msgstr ""
370
 
371
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:417
372
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:423
373
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:431
374
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:438
375
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:442
376
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:450
377
  msgid "is a required field"
378
  msgstr ""
379
 
380
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:427
381
- #: includes/class-extra-checkout-fields-for-brazil-front-end.php:446
382
  msgid "is not valid"
383
  msgstr ""
384
 
385
- #: woocommerce-extra-checkout-fields-for-brazil.php:137
386
- msgid "Settings"
387
- msgstr ""
388
-
389
- #: woocommerce-extra-checkout-fields-for-brazil.php:148
390
- msgid "WooCommerce Extra Checkout Fields for Brazil depends on %s to work!"
391
- msgstr ""
392
-
393
- #: woocommerce-extra-checkout-fields-for-brazil.php:148
394
- msgid "WooCommerce"
395
- msgstr ""
396
-
397
  #. Plugin URI of the plugin/theme
398
  msgid ""
399
  "https://github.com/claudiosanches/woocommerce-extra-checkout-fields-for-"
1
+ # Copyright (C) 2019 Claudio Sanches
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Brazilian Market on WooCommerce 3.7.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-extra-checkout-fields-for-"
8
  "brazil\n"
9
+ "POT-Creation-Date: 2019-09-24 15:11:13+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
17
+
18
+ #: .legacy.php:105 woocommerce-extra-checkout-fields-for-brazil.php:137
19
+ msgid "Settings"
20
+ msgstr ""
21
+
22
+ #: .legacy.php:116 woocommerce-extra-checkout-fields-for-brazil.php:148
23
+ msgid "Brazilian Market on WooCommerce depends on %s to work!"
24
+ msgstr ""
25
+
26
+ #: .legacy.php:116 woocommerce-extra-checkout-fields-for-brazil.php:148
27
+ msgid "WooCommerce"
28
+ msgstr ""
29
 
30
  #: includes/admin/class-extra-checkout-fields-for-brazil-admin.php:49
31
  msgid "Load the customer extras data?"
45
  #: includes/admin/views/html-order-billing-data.php:22
46
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:128
47
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:143
48
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:424
49
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:428
50
  msgid "CPF"
51
  msgstr ""
52
 
55
  #: includes/admin/views/html-legacy-order-billing-data.php:24
56
  #: includes/admin/views/html-order-billing-data.php:24
57
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:136
58
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:432
59
  msgid "RG"
60
  msgstr ""
61
 
65
  #: includes/admin/views/html-order-billing-data.php:30
66
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:162
67
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:177
68
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:443
69
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:447
70
  msgid "CNPJ"
71
  msgstr ""
72
 
75
  #: includes/admin/views/html-legacy-order-billing-data.php:33
76
  #: includes/admin/views/html-order-billing-data.php:33
77
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:170
78
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:451
79
  msgid "State Registration"
80
  msgstr ""
81
 
127
 
128
  #: includes/admin/class-extra-checkout-fields-for-brazil-order.php:54
129
  #: includes/class-extra-checkout-fields-for-brazil-front-end.php:113
130
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:418
131
  msgid "Person type"
132
  msgstr ""
133
 
155
  #: includes/admin/class-extra-checkout-fields-for-brazil-order.php:95
156
  #: includes/admin/views/html-legacy-order-billing-data.php:37
157
  #: includes/admin/views/html-order-billing-data.php:37
158
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:439
159
  msgid "Company"
160
  msgstr ""
161
 
256
  "and Cell Phone."
257
  msgstr ""
258
 
259
+ #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:189
 
 
 
 
 
 
 
 
260
  msgid "Validation:"
261
  msgstr ""
262
 
263
+ #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:197
264
  msgid "Validate CPF:"
265
  msgstr ""
266
 
267
+ #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:204
268
  msgid "Checks if the CPF is valid."
269
  msgstr ""
270
 
271
+ #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:211
272
  msgid "Validate CNPJ:"
273
  msgstr ""
274
 
275
+ #: includes/admin/class-extra-checkout-fields-for-brazil-settings.php:218
276
  msgid "Checks if the CNPJ is valid."
277
  msgstr ""
278
 
283
  msgstr ""
284
 
285
  #. Plugin Name of the plugin/theme
286
+ msgid "Brazilian Market on WooCommerce"
287
  msgstr ""
288
 
289
  #: includes/admin/views/html-admin-help-message.php:15
372
  msgid "Address line 2"
373
  msgstr ""
374
 
375
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:418
376
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:424
377
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:432
378
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:439
379
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:443
380
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:451
381
  msgid "is a required field"
382
  msgstr ""
383
 
384
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:428
385
+ #: includes/class-extra-checkout-fields-for-brazil-front-end.php:447
386
  msgid "is not valid"
387
  msgstr ""
388
 
 
 
 
 
 
 
 
 
 
 
 
 
389
  #. Plugin URI of the plugin/theme
390
  msgid ""
391
  "https://github.com/claudiosanches/woocommerce-extra-checkout-fields-for-"
phpcs.ruleset.xml DELETED
@@ -1,14 +0,0 @@
1
- <?xml version="1.0"?>
2
- <ruleset name="WordPress Coding Standards">
3
- <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
4
- <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
5
-
6
- <!-- Set a description for this ruleset. -->
7
- <description>A custom set of code standard rules to check for WordPress themes and plugins.</description>
8
-
9
- <!-- Include the WordPress ruleset, with exclusions. -->
10
- <rule ref="WordPress">
11
- <exclude name="WordPress.VIP" />
12
- <exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
13
- </rule>
14
- </ruleset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://claudiosmweb.com/doacoes/
4
  Tags: woocommerce, checkout, brazil, cpf, cpnj
5
  Requires at least: 3.5
6
  Tested up to: 5.2
7
- Stable tag: 3.7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,10 @@ Você pode contribuir com código-fonte em nossa página no [GitHub](https://git
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 3.7.0 - 2019/09/20 =
70
 
71
  - Nome do plugin alterado de "WooCommerce Extra Checkout Fields for Brazil" to "Brazilian Market on WooCommerce".
@@ -94,7 +98,8 @@ Você pode contribuir com código-fonte em nossa página no [GitHub](https://git
94
 
95
  == Upgrade Notice ==
96
 
97
- = 3.7.0 =
98
 
99
  - Nome do plugin alterado de "WooCommerce Extra Checkout Fields for Brazil" to "Brazilian Market on WooCommerce".
100
  - Removida opção obsoleta de preenchimento de endereço, no lugar dela utilize a integração direta que existe no plugin "Claudio Sanches - Correios for WooCommerce".
 
4
  Tags: woocommerce, checkout, brazil, cpf, cpnj
5
  Requires at least: 3.5
6
  Tested up to: 5.2
7
+ Stable tag: 3.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
 
67
  == Changelog ==
68
 
69
+ = 3.7.1 - 2019/09/24 =
70
+
71
+ - Corrigido bug causado pelo WooCommerce na exibição do endereço de entrega na lista de pedidos no painel admininstrativo.
72
+
73
  = 3.7.0 - 2019/09/20 =
74
 
75
  - Nome do plugin alterado de "WooCommerce Extra Checkout Fields for Brazil" to "Brazilian Market on WooCommerce".
98
 
99
  == Upgrade Notice ==
100
 
101
+ = 3.7.1 =
102
 
103
  - Nome do plugin alterado de "WooCommerce Extra Checkout Fields for Brazil" to "Brazilian Market on WooCommerce".
104
  - Removida opção obsoleta de preenchimento de endereço, no lugar dela utilize a integração direta que existe no plugin "Claudio Sanches - Correios for WooCommerce".
105
+ - Corrigido bug causado pelo WooCommerce na exibição do endereço de entrega na lista de pedidos no painel admininstrativo.
woocommerce-extra-checkout-fields-for-brazil.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Adds new checkout fields, field masks and other things necessary to properly work with WooCommerce on Brazil.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
- * Version: 3.7.0
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-extra-checkout-fields-for-brazil
11
  * Domain Path: /languages
@@ -43,7 +43,7 @@ class Extra_Checkout_Fields_For_Brazil {
43
  *
44
  * @var string
45
  */
46
- const VERSION = '3.7.0';
47
 
48
  /**
49
  * Instance of this class.
5
  * Description: Adds new checkout fields, field masks and other things necessary to properly work with WooCommerce on Brazil.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
+ * Version: 3.7.1
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-extra-checkout-fields-for-brazil
11
  * Domain Path: /languages
43
  *
44
  * @var string
45
  */
46
+ const VERSION = '3.7.1';
47
 
48
  /**
49
  * Instance of this class.