WooCommerce Correios - Version 3.8.0

Version Description

  • 2019/09/20 =

  • Nome do plugin atualizado de "WooCommerce Correios" para "Claudio Sanches - Correios for WooCommerce".

  • Atualizado limites de peso para Impresso normal, Registro Mdico e Registro Nacional.

  • Corrigida rotina de atualizao das opes do plugin.

Download this release

Release Info

Developer claudiosanches
Plugin Icon 128x128 WooCommerce Correios
Version 3.8.0
Comparing to
See all releases

Code changes from version 3.7.2 to 3.8.0

assets/js/frontend/autofill-address.js CHANGED
@@ -1,6 +1,6 @@
1
  /* global WCCorreiosAutofillAddressParams */
2
  /*!
3
- * WooCommerce Correios Autofill Brazilian 2016.
4
  *
5
  * Autofill address with postcodes.
6
  *
1
  /* global WCCorreiosAutofillAddressParams */
2
  /*!
3
+ * Claudio Sanches - Correios for WooCommerce: Autofill Brazilian 2016.
4
  *
5
  * Autofill address with postcodes.
6
  *
assets/js/frontend/autofill-address.min.js CHANGED
@@ -1,8 +1,8 @@
1
  /*!
2
- * WooCommerce Correios Autofill Brazilian 2016.
3
  *
4
  * Autofill address with postcodes.
5
  *
6
  * Version: 3.0.0
7
  */
8
- jQuery(function(a){var b={init:function(){this.autofill("billing",!0),a(document.body).on("blur","#billing_postcode",function(){b.autofill("billing")}),a(document.body).on("blur","#shipping_postcode",function(){b.autofill("shipping")})},block:function(){a("form.checkout, form#order_review").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a("form.checkout, form#order_review").removeClass("processing").unblock()},autofill:function(c,d){if(d=d||!1,a("#"+c+"_postcode").length){var e=a("#"+c+"_postcode").val().replace(".","").replace("-",""),f=a("#"+c+"_country").val(),g=a("#"+c+"_address_1").val(),h="yes"===WCCorreiosAutofillAddressParams.force||0===g.length;""!==e&&8===e.length&&"BR"===f&&h&&(b.block(),a.ajax({type:"GET",url:WCCorreiosAutofillAddressParams.url+"&postcode="+e,dataType:"json",contentType:"application/json",success:function(a){if(a.success&&(b.fillFields(c,a.data),d)){var e="billing"===c?"shipping":"billing";b.fillFields(e,a.data)}b.unblock()}}))}},fillFields:function(b,c){a("#"+b+"_address_1").val(c.address).change(),a("#"+b+"_neighborhood").length?a("#"+b+"_neighborhood").val(c.neighborhood).change():a("#"+b+"_address_2").val(c.neighborhood).change(),a("#"+b+"_city").val(c.city).change(),a("#"+b+"_state option:selected").attr("selected",!1).change(),a("#"+b+'_state option[value="'+c.state+'"]').attr("selected","selected").change(),a("#"+b+"_state").trigger("liszt:updated").trigger("chosen:updated")}};b.init()});
1
  /*!
2
+ * Claudio Sanches - Correios for WooCommerce: Autofill Brazilian 2016.
3
  *
4
  * Autofill address with postcodes.
5
  *
6
  * Version: 3.0.0
7
  */
8
+ jQuery(function(a){var b={init:function(){this.autofill("billing",!0),a(document.body).on("blur","#billing_postcode",function(){b.autofill("billing")}),a(document.body).on("blur","#shipping_postcode",function(){b.autofill("shipping")})},block:function(){a("form.checkout, form#order_review").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a("form.checkout, form#order_review").removeClass("processing").unblock()},autofill:function(c,d){if(d=d||!1,a("#"+c+"_postcode").length){var e=a("#"+c+"_postcode").val().replace(".","").replace("-",""),f=a("#"+c+"_country").val(),g=a("#"+c+"_address_1").val(),h="yes"===WCCorreiosAutofillAddressParams.force||0===g.length;""!==e&&8===e.length&&"BR"===f&&h&&(b.block(),a.ajax({type:"GET",url:WCCorreiosAutofillAddressParams.url+"&postcode="+e,dataType:"json",contentType:"application/json",success:function(a){if(a.success&&(b.fillFields(c,a.data),d)){var e="billing"===c?"shipping":"billing";b.fillFields(e,a.data)}b.unblock()}}))}},fillFields:function(b,c){a("#"+b+"_address_1").val(c.address).change(),a("#"+b+"_neighborhood").length?a("#"+b+"_neighborhood").val(c.neighborhood).change():a("#"+b+"_address_2").val(c.neighborhood).change(),a("#"+b+"_city").val(c.city).change(),a("#"+b+"_state option:selected").attr("selected",!1).change(),a("#"+b+'_state option[value="'+c.state+'"]').attr("selected","selected").change(),a("#"+b+"_state").trigger("liszt:updated").trigger("chosen:updated")}};b.init()});
includes/abstracts/class-wc-correios-shipping-impresso.php CHANGED
@@ -22,7 +22,7 @@ abstract class WC_Correios_Shipping_Impresso extends WC_Correios_Shipping_Carta
22
  * National Registry cost.
23
  *
24
  * Cost based in 01/08/2018 from:
25
- * http://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
26
  *
27
  * @var float
28
  */
@@ -32,7 +32,7 @@ abstract class WC_Correios_Shipping_Impresso extends WC_Correios_Shipping_Carta
32
  * Reasonable Registry cost.
33
  *
34
  * Cost based in 01/08/2018 from:
35
- * http://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
36
  *
37
  * @var float
38
  */
@@ -42,7 +42,7 @@ abstract class WC_Correios_Shipping_Impresso extends WC_Correios_Shipping_Carta
42
  * Receipt Notice cost.
43
  *
44
  * Cost based in 01/08/2018 from:
45
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
46
  *
47
  * @var float
48
  */
@@ -52,7 +52,7 @@ abstract class WC_Correios_Shipping_Impresso extends WC_Correios_Shipping_Carta
52
  * Own Hands cost.
53
  *
54
  * Cost based in 01/08/2018 from:
55
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
56
  *
57
  * @var float
58
  */
@@ -61,12 +61,12 @@ abstract class WC_Correios_Shipping_Impresso extends WC_Correios_Shipping_Carta
61
  /**
62
  * Weight limit for reasonable registry.
63
  *
64
- * Value based in 01/02/2017 from:
65
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
66
  *
67
  * @var float
68
  */
69
- protected $reasonable_registry_weight_limit = 500.000;
70
 
71
  /**
72
  * Initialize Impresso shipping method.
22
  * National Registry cost.
23
  *
24
  * Cost based in 01/08/2018 from:
25
+ * https://www.correios.com.br/precos-e-prazos/servicos-adicionais-nacionais
26
  *
27
  * @var float
28
  */
32
  * Reasonable Registry cost.
33
  *
34
  * Cost based in 01/08/2018 from:
35
+ * https://www.correios.com.br/precos-e-prazos/servicos-adicionais-nacionais
36
  *
37
  * @var float
38
  */
42
  * Receipt Notice cost.
43
  *
44
  * Cost based in 01/08/2018 from:
45
+ * https://www.correios.com.br/precos-e-prazos/servicos-adicionais-nacionais
46
  *
47
  * @var float
48
  */
52
  * Own Hands cost.
53
  *
54
  * Cost based in 01/08/2018 from:
55
+ * https://www.correios.com.br/precos-e-prazos/servicos-adicionais-nacionais
56
  *
57
  * @var float
58
  */
61
  /**
62
  * Weight limit for reasonable registry.
63
  *
64
+ * Value based in 01/02/2018 from:
65
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
66
  *
67
  * @var float
68
  */
69
+ protected $reasonable_registry_weight_limit = 2000.000;
70
 
71
  /**
72
  * Initialize Impresso shipping method.
includes/admin/views/html-admin-help-message.php CHANGED
@@ -14,7 +14,7 @@ if ( apply_filters( 'woocommerce_correios_help_message', true ) ) : ?>
14
  <p>
15
  <?php
16
  /* translators: %s: plugin name */
17
- echo esc_html( sprintf( esc_html__( 'Help us keep the %s plugin free making a donation or rate &#9733;&#9733;&#9733;&#9733;&#9733; on WordPress.org. Thank you in advance!', 'woocommerce-correios' ), __( 'WooCommerce Correios', 'woocommerce-correios' ) ) );
18
  ?>
19
  </p>
20
  <p><a href="https://claudiosanches.com/doacoes/" target="_blank" rel="nofollow noopener noreferrer" class="button button-primary"><?php esc_html_e( 'Make a donation', 'woocommerce-correios' ); ?></a> <a href="https://wordpress.org/support/plugin/woocommerce-correios/reviews/?filter=5#new-post" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'woocommerce-correios' ); ?></a></p>
14
  <p>
15
  <?php
16
  /* translators: %s: plugin name */
17
+ echo esc_html( sprintf( esc_html__( 'Help us keep the %s plugin free making a donation or rate &#9733;&#9733;&#9733;&#9733;&#9733; on WordPress.org. Thank you in advance!', 'woocommerce-correios' ), __( 'Claudio Sanches - Correios for WooCommerce', 'woocommerce-correios' ) ) );
18
  ?>
19
  </p>
20
  <p><a href="https://claudiosanches.com/doacoes/" target="_blank" rel="nofollow noopener noreferrer" class="button button-primary"><?php esc_html_e( 'Make a donation', 'woocommerce-correios' ); ?></a> <a href="https://wordpress.org/support/plugin/woocommerce-correios/reviews/?filter=5#new-post" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'woocommerce-correios' ); ?></a></p>
includes/admin/views/html-admin-missing-dependencies.php CHANGED
@@ -19,7 +19,7 @@ if ( function_exists( 'get_plugins' ) ) {
19
  ?>
20
 
21
  <div class="error">
22
- <p><strong><?php esc_html_e( 'WooCommerce Correios', 'woocommerce-correios' ); ?></strong> <?php esc_html_e( 'depends on the last version of WooCommerce to work!', 'woocommerce-correios' ); ?></p>
23
 
24
  <?php if ( $is_installed && current_user_can( 'install_plugins' ) ) : ?>
25
  <p><a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=woocommerce/woocommerce.php&plugin_status=active' ), 'activate-plugin_woocommerce/woocommerce.php' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Active WooCommerce', 'woocommerce-correios' ); ?></a></p>
19
  ?>
20
 
21
  <div class="error">
22
+ <p><strong><?php esc_html_e( 'Claudio Sanches - Correios for WooCommerce', 'woocommerce-correios' ); ?></strong> <?php esc_html_e( 'depends on the last version of WooCommerce to work!', 'woocommerce-correios' ); ?></p>
23
 
24
  <?php if ( $is_installed && current_user_can( 'install_plugins' ) ) : ?>
25
  <p><a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=woocommerce/woocommerce.php&plugin_status=active' ), 'activate-plugin_woocommerce/woocommerce.php' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Active WooCommerce', 'woocommerce-correios' ); ?></a></p>
includes/class-wc-correios-install.php CHANGED
@@ -42,6 +42,7 @@ class WC_Correios_Install {
42
 
43
  if ( empty( $version ) ) {
44
  $wpdb->query( "UPDATE $wpdb->postmeta SET meta_key = '_correios_tracking_code' WHERE meta_key = 'correios_tracking';" ); // WPCS: db call ok, cache ok.
 
45
  }
46
  }
47
 
42
 
43
  if ( empty( $version ) ) {
44
  $wpdb->query( "UPDATE $wpdb->postmeta SET meta_key = '_correios_tracking_code' WHERE meta_key = 'correios_tracking';" ); // WPCS: db call ok, cache ok.
45
+ self::update_version();
46
  }
47
  }
48
 
includes/class-wc-correios.php CHANGED
@@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  }
13
 
14
  /**
15
- * WooCommerce Correios main class.
16
  */
17
  class WC_Correios {
18
 
12
  }
13
 
14
  /**
15
+ * Plugins main class.
16
  */
17
  class WC_Correios {
18
 
includes/shipping/class-wc-correios-shipping-impresso-normal.php CHANGED
@@ -20,7 +20,7 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
20
  * Additional cost per kg or fraction.
21
  *
22
  * Cost based in 01/02/2018 from:
23
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
24
  *
25
  * @var float
26
  */
@@ -30,11 +30,11 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
30
  * Weight limit for this shipping method.
31
  *
32
  * Value based in 01/02/2018 from:
33
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
34
  *
35
  * @var float
36
  */
37
- protected $shipping_method_weight_limit = 20000.000;
38
 
39
  /**
40
  * Initialize Impresso Normal.
@@ -44,7 +44,7 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
44
  public function __construct( $instance_id = 0 ) {
45
  $this->id = 'correios-impresso-normal';
46
  $this->method_title = __( 'Impresso Normal', 'woocommerce-correios' );
47
- $this->more_link = 'http://www.correios.com.br/para-voce/correios-de-a-a-z/impresso-normal';
48
 
49
  parent::__construct( $instance_id );
50
  }
@@ -53,7 +53,7 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
53
  * Get additional costs per kg or fraction.
54
  *
55
  * Cost based in 01/02/2018 from:
56
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
57
  *
58
  * @return float
59
  */
@@ -64,8 +64,8 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
64
 
65
  /**
66
  * Get costs.
67
- * Costs based in 01/02/2017 from:
68
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
69
  *
70
  * @return array
71
  */
20
  * Additional cost per kg or fraction.
21
  *
22
  * Cost based in 01/02/2018 from:
23
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
24
  *
25
  * @var float
26
  */
30
  * Weight limit for this shipping method.
31
  *
32
  * Value based in 01/02/2018 from:
33
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
34
  *
35
  * @var float
36
  */
37
+ protected $shipping_method_weight_limit = 2000.000;
38
 
39
  /**
40
  * Initialize Impresso Normal.
44
  public function __construct( $instance_id = 0 ) {
45
  $this->id = 'correios-impresso-normal';
46
  $this->method_title = __( 'Impresso Normal', 'woocommerce-correios' );
47
+ $this->more_link = 'https://www.correios.com.br/a-a-z/impresso-normal';
48
 
49
  parent::__construct( $instance_id );
50
  }
53
  * Get additional costs per kg or fraction.
54
  *
55
  * Cost based in 01/02/2018 from:
56
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
57
  *
58
  * @return float
59
  */
64
 
65
  /**
66
  * Get costs.
67
+ * Costs based in 01/02/2018 from:
68
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
69
  *
70
  * @return array
71
  */
includes/shipping/class-wc-correios-shipping-impresso-urgente.php CHANGED
@@ -20,7 +20,7 @@ class WC_Correios_Shipping_Impresso_Urgente extends WC_Correios_Shipping_Impress
20
  * Weight limit for this shipping method.
21
  *
22
  * Value based in 01/02/2018 from:
23
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
24
  *
25
  * @var float
26
  */
@@ -34,7 +34,7 @@ class WC_Correios_Shipping_Impresso_Urgente extends WC_Correios_Shipping_Impress
34
  public function __construct( $instance_id = 0 ) {
35
  $this->id = 'correios-impresso-urgente';
36
  $this->method_title = __( 'Impresso Urgente', 'woocommerce-correios' );
37
- $this->more_link = 'http://www.correios.com.br/para-voce/correios-de-a-a-z/impresso-normal';
38
 
39
  parent::__construct( $instance_id );
40
  }
@@ -42,7 +42,7 @@ class WC_Correios_Shipping_Impresso_Urgente extends WC_Correios_Shipping_Impress
42
  /**
43
  * Get costs.
44
  * Costs based in 01/02/2018 from:
45
- * https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-nacionais_pasta/impresso-normal
46
  *
47
  * @return array
48
  */
20
  * Weight limit for this shipping method.
21
  *
22
  * Value based in 01/02/2018 from:
23
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
24
  *
25
  * @var float
26
  */
34
  public function __construct( $instance_id = 0 ) {
35
  $this->id = 'correios-impresso-urgente';
36
  $this->method_title = __( 'Impresso Urgente', 'woocommerce-correios' );
37
+ $this->more_link = 'https://www.correios.com.br/a-a-z/impresso-normal';
38
 
39
  parent::__construct( $instance_id );
40
  }
42
  /**
43
  * Get costs.
44
  * Costs based in 01/02/2018 from:
45
+ * https://www.correios.com.br/precos-e-prazos/servicos-nacionais/impresso-normal
46
  *
47
  * @return array
48
  */
languages/woocommerce-correios.pot CHANGED
@@ -2,17 +2,17 @@
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Correios 3.7.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-correios\n"
8
- "POT-Creation-Date: 2019-05-06 21:07:09+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "X-Generator: grunt-wp-i18n 0.5.4\n"
16
 
17
  #: includes/abstracts/class-wc-correios-shipping-carta.php:26
18
  #: includes/abstracts/class-wc-correios-shipping-impresso.php:78
@@ -438,7 +438,7 @@ msgid ""
438
  msgstr ""
439
 
440
  #. Plugin Name of the plugin/theme
441
- msgid "WooCommerce Correios"
442
  msgstr ""
443
 
444
  #: includes/admin/views/html-admin-help-message.php:20
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Claudio Sanches - Correios for WooCommerce 3.8.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-correios\n"
8
+ "POT-Creation-Date: 2019-09-20 22:02:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
16
 
17
  #: includes/abstracts/class-wc-correios-shipping-carta.php:26
18
  #: includes/abstracts/class-wc-correios-shipping-impresso.php:78
438
  msgstr ""
439
 
440
  #. Plugin Name of the plugin/theme
441
+ msgid "Claudio Sanches - Correios for WooCommerce"
442
  msgstr ""
443
 
444
  #: includes/admin/views/html-admin-help-message.php:20
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WooCommerce Correios ===
2
  Contributors: claudiosanches, rodrigoprior, matheuscl
3
  Donate link: https://claudiosanches.com/doacoes/
4
  Tags: shipping, delivery, woocommerce, correios
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
- Stable tag: 3.7.2
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -17,7 +17,7 @@ Utilize os métodos de entrega e serviços dos Correios com a sua loja WooCommer
17
 
18
  [Correios](http://www.correios.com.br/) é um método de entrega brasileiro.
19
 
20
- O plugin WooCommerce Correios foi desenvolvido sem nenhum incentivo dos Correios. Nenhum dos desenvolvedores deste plugin possuem vínculos com esta empresa. E note que este plugin foi feito baseado na documentação do [Webservices Correios](http://www.correios.com.br/webservices/) e com apoio da [Infranology](http://infranology.com.br/) na construção das classes de cubagem.
21
 
22
  = Serviços integrados =
23
 
@@ -204,6 +204,12 @@ Em caso de dúvidas, basta abrir um tópico no [fórum de suporte do plugin](htt
204
 
205
  == Changelog ==
206
 
 
 
 
 
 
 
207
  = 3.7.2 - 2019/05/06 =
208
 
209
  - Correção dos links que levam para a página de rastreio de encomenda.
@@ -227,9 +233,8 @@ Em caso de dúvidas, basta abrir um tópico no [fórum de suporte do plugin](htt
227
 
228
  == Upgrade Notice ==
229
 
230
- = 3.7.2 =
231
 
232
- - Correção dos links que levam para a página de rastreio de encomenda.
233
- - Corrigido problema com código incorreto vindo do Webservice dos Correios impossibilitando mostrar o frete corretamente.
234
- - Atualizado valores do Impresso normal, Registro Módico e Registro Nacional para tabela de 01/08/2018.
235
- - Corrigido os valores de altura e comprimento que estavamos trocados.
1
+ === Claudio Sanches - Correios for WooCommerce ===
2
  Contributors: claudiosanches, rodrigoprior, matheuscl
3
  Donate link: https://claudiosanches.com/doacoes/
4
  Tags: shipping, delivery, woocommerce, correios
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
+ Stable tag: 3.8.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
17
 
18
  [Correios](http://www.correios.com.br/) é um método de entrega brasileiro.
19
 
20
+ Este plugin foi desenvolvido sem nenhum incentivo dos Correios. Nenhum dos desenvolvedores deste plugin possuem vínculos com esta empresa. E note que este plugin foi feito baseado na documentação do [Webservices Correios](https://www.correios.com.br/precos-e-prazos/calculador-remoto-de-precos-e-prazos) e com apoio da [Infranology](http://infranology.com.br/) na construção das classes de cubagem.
21
 
22
  = Serviços integrados =
23
 
204
 
205
  == Changelog ==
206
 
207
+ = 3.8.0 - 2019/09/20 =
208
+
209
+ - Nome do plugin atualizado de "WooCommerce Correios" para "Claudio Sanches - Correios for WooCommerce".
210
+ - Atualizado limites de peso para Impresso normal, Registro Módico e Registro Nacional.
211
+ - Corrigida rotina de atualização das opções do plugin.
212
+
213
  = 3.7.2 - 2019/05/06 =
214
 
215
  - Correção dos links que levam para a página de rastreio de encomenda.
233
 
234
  == Upgrade Notice ==
235
 
236
+ = 3.8.0 =
237
 
238
+ - Nome do plugin atualizado de "WooCommerce Correios" para "Claudio Sanches - Correios for WooCommerce".
239
+ - Atualizado limites de peso para Impresso normal, Registro Módico e Registro Nacional.
240
+ - Corrigida rotina de atualização das opções do plugin.
 
uninstall.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * WooCommerce Correios Uninstall
4
  *
5
  * @package WooCommerce_Correios/Uninstaller
6
  * @since 3.0.0
1
  <?php
2
  /**
3
+ * Uninstall
4
  *
5
  * @package WooCommerce_Correios/Uninstaller
6
  * @since 3.0.0
woocommerce-correios.php CHANGED
@@ -1,39 +1,37 @@
1
  <?php
2
  /**
3
- * Plugin Name: WooCommerce Correios
4
  * Plugin URI: https://github.com/claudiosanches/woocommerce-correios
5
  * Description: Adds Correios shipping methods to your WooCommerce store.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
- * Version: 3.7.2
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-correios
11
  * Domain Path: /languages
12
  * WC requires at least: 3.0.0
13
  * WC tested up to: 3.6.0
14
  *
15
- * WooCommerce Correios is free software: you can redistribute it and/or modify
16
- * it under the terms of the GNU General Public License as published by
17
- * the Free Software Foundation, either version 2 of the License, or
18
- * any later version.
19
  *
20
- * WooCommerce Correios is distributed in the hope that it will be useful,
21
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
- * along with WooCommerce Correios. If not, see
27
  * <https://www.gnu.org/licenses/gpl-2.0.txt>.
28
  *
29
  * @package WooCommerce_Correios
30
  */
31
 
32
- if ( ! defined( 'ABSPATH' ) ) {
33
- exit; // Exit if accessed directly.
34
- }
35
 
36
- define( 'WC_CORREIOS_VERSION', '3.7.2' );
37
  define( 'WC_CORREIOS_PLUGIN_FILE', __FILE__ );
38
 
39
  if ( ! class_exists( 'WC_Correios' ) ) {
1
  <?php
2
  /**
3
+ * Plugin Name: Claudio Sanches - Correios for WooCommerce
4
  * Plugin URI: https://github.com/claudiosanches/woocommerce-correios
5
  * Description: Adds Correios shipping methods to your WooCommerce store.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
+ * Version: 3.8.0
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-correios
11
  * Domain Path: /languages
12
  * WC requires at least: 3.0.0
13
  * WC tested up to: 3.6.0
14
  *
15
+ * Claudio Sanches - Correios for WooCommerce is free software: you can
16
+ * redistribute it and/or modify it under the terms of the
17
+ * GNU General Public License as published by the Free Software Foundation,
18
+ * either version 2 of the License, or any later version.
19
  *
20
+ * Claudio Sanches - Correios for WooCommerce is distributed in the hope that it
21
+ * will be useful, but WITHOUT ANY WARRANTY; without even the implied
22
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
+ * along with Claudio Sanches - Correios for WooCommerce. If not, see
27
  * <https://www.gnu.org/licenses/gpl-2.0.txt>.
28
  *
29
  * @package WooCommerce_Correios
30
  */
31
 
32
+ defined( 'ABSPATH' ) || exit;
 
 
33
 
34
+ define( 'WC_CORREIOS_VERSION', '3.8.0' );
35
  define( 'WC_CORREIOS_PLUGIN_FILE', __FILE__ );
36
 
37
  if ( ! class_exists( 'WC_Correios' ) ) {