Version Description
2019/05/06 =
Correo dos links que levam para a pgina de rastreio de encomenda.
Corrigido problema com cdigo incorreto vindo do Webservice dos Correios impossibilitando mostrar o frete corretamente.
Atualizado valores do Impresso normal, Registro Mdico e Registro Nacional para tabela de 01/08/2018.
Corrigido os valores de altura e comprimento que estavamos trocados.
Download this release
Release Info
| Developer | claudiosanches |
| Plugin | |
| Version | 3.7.2 |
| Comparing to | |
| See all releases | |
Code changes from version 3.7.1 to 3.7.2
- assets/js/admin/open-tracking-code.js +2 -2
- assets/js/admin/open-tracking-code.min.js +1 -1
- includes/abstracts/class-wc-correios-shipping-impresso.php +8 -8
- includes/abstracts/class-wc-correios-shipping.php +1 -0
- includes/admin/views/html-meta-box-tracking-code.php +1 -1
- includes/class-wc-correios-package.php +2 -2
- includes/class-wc-correios.php +1 -1
- includes/emails/class-wc-correios-tracking-email.php +3 -8
- includes/shipping/class-wc-correios-shipping-impresso-normal.php +1 -1
- languages/woocommerce-correios.pot +12 -6
- readme.txt +14 -9
- templates/myaccount/tracking-codes.php +1 -1
- templates/myaccount/tracking-history-table.php +1 -1
- woocommerce-correios.php +3 -3
assets/js/admin/open-tracking-code.js
CHANGED
|
@@ -12,7 +12,7 @@ jQuery( function( $ ) {
|
|
| 12 |
*/
|
| 13 |
init: function() {
|
| 14 |
$( document.body )
|
| 15 |
-
.on( 'click', '.correios-tracking-code a', this.openTrackingLink );
|
| 16 |
},
|
| 17 |
|
| 18 |
/**
|
|
@@ -27,7 +27,7 @@ jQuery( function( $ ) {
|
|
| 27 |
$( '#wc-correios-tracking__form' ).remove();
|
| 28 |
|
| 29 |
var code = $( this ).text();
|
| 30 |
-
var form = '<form id="wc-correios-tracking__form" method="post" action="
|
| 31 |
form += '<input type="hidden" name="objetos" value="' + code + '" />';
|
| 32 |
form += '</form>';
|
| 33 |
|
| 12 |
*/
|
| 13 |
init: function() {
|
| 14 |
$( document.body )
|
| 15 |
+
.on( 'click', '.correios-tracking-code a.tracking-code-link', this.openTrackingLink );
|
| 16 |
},
|
| 17 |
|
| 18 |
/**
|
| 27 |
$( '#wc-correios-tracking__form' ).remove();
|
| 28 |
|
| 29 |
var code = $( this ).text();
|
| 30 |
+
var form = '<form id="wc-correios-tracking__form" method="post" action="https://www2.correios.com.br/sistemas/rastreamento/resultado.cfm" target="_blank" rel="nofollow noopener noreferrer" style="display: none;">';
|
| 31 |
form += '<input type="hidden" name="objetos" value="' + code + '" />';
|
| 32 |
form += '</form>';
|
| 33 |
|
assets/js/admin/open-tracking-code.min.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
jQuery(function(a){({init:function(){a(document.body).on("click",".correios-tracking-code a",this.openTrackingLink)},openTrackingLink:function(b){b.preventDefault(),a("#wc-correios-tracking__form").remove();var c=a(this).text(),d='<form id="wc-correios-tracking__form" method="post" action="
|
| 1 |
+
jQuery(function(a){({init:function(){a(document.body).on("click",".correios-tracking-code a.tracking-code-link",this.openTrackingLink)},openTrackingLink:function(b){b.preventDefault(),a("#wc-correios-tracking__form").remove();var c=a(this).text(),d='<form id="wc-correios-tracking__form" method="post" action="https://www2.correios.com.br/sistemas/rastreamento/resultado.cfm" target="_blank" rel="nofollow noopener noreferrer" style="display: none;">';d+='<input type="hidden" name="objetos" value="'+c+'" />',d+="</form>",a("body").prepend(d),a("#wc-correios-tracking__form").submit()}}).init()});
|
includes/abstracts/class-wc-correios-shipping-impresso.php
CHANGED
|
@@ -21,42 +21,42 @@ abstract class WC_Correios_Shipping_Impresso extends WC_Correios_Shipping_Carta
|
|
| 21 |
/**
|
| 22 |
* National Registry cost.
|
| 23 |
*
|
| 24 |
-
* Cost based in
|
| 25 |
* http://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
|
| 26 |
*
|
| 27 |
* @var float
|
| 28 |
*/
|
| 29 |
-
protected $national_registry_cost = 5.
|
| 30 |
|
| 31 |
/**
|
| 32 |
* Reasonable Registry cost.
|
| 33 |
*
|
| 34 |
-
* Cost based in
|
| 35 |
* http://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
|
| 36 |
*
|
| 37 |
* @var float
|
| 38 |
*/
|
| 39 |
-
protected $reasonable_registry_cost = 2.
|
| 40 |
|
| 41 |
/**
|
| 42 |
* Receipt Notice cost.
|
| 43 |
*
|
| 44 |
-
* Cost based in
|
| 45 |
* https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
|
| 46 |
*
|
| 47 |
* @var float
|
| 48 |
*/
|
| 49 |
-
protected $receipt_notice_cost = 5.
|
| 50 |
|
| 51 |
/**
|
| 52 |
* Own Hands cost.
|
| 53 |
*
|
| 54 |
-
* Cost based in
|
| 55 |
* https://www.correios.com.br/para-voce/consultas-e-solicitacoes/precos-e-prazos/servicos-adicionais-nacionais
|
| 56 |
*
|
| 57 |
* @var float
|
| 58 |
*/
|
| 59 |
-
protected $own_hands_cost =
|
| 60 |
|
| 61 |
/**
|
| 62 |
* Weight limit for reasonable registry.
|
| 21 |
/**
|
| 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 |
*/
|
| 29 |
+
protected $national_registry_cost = 5.75;
|
| 30 |
|
| 31 |
/**
|
| 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 |
*/
|
| 39 |
+
protected $reasonable_registry_cost = 2.90;
|
| 40 |
|
| 41 |
/**
|
| 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 |
*/
|
| 49 |
+
protected $receipt_notice_cost = 5.75;
|
| 50 |
|
| 51 |
/**
|
| 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 |
*/
|
| 59 |
+
protected $own_hands_cost = 6.80;
|
| 60 |
|
| 61 |
/**
|
| 62 |
* Weight limit for reasonable registry.
|
includes/abstracts/class-wc-correios-shipping.php
CHANGED
|
@@ -437,6 +437,7 @@ abstract class WC_Correios_Shipping extends WC_Shipping_Method {
|
|
| 437 |
protected function get_accepted_error_codes() {
|
| 438 |
$codes = apply_filters( 'woocommerce_correios_accepted_error_codes', array( '-33', '-3', '010', '011' ) );
|
| 439 |
$codes[] = '0';
|
|
|
|
| 440 |
|
| 441 |
return $codes;
|
| 442 |
}
|
| 437 |
protected function get_accepted_error_codes() {
|
| 438 |
$codes = apply_filters( 'woocommerce_correios_accepted_error_codes', array( '-33', '-3', '010', '011' ) );
|
| 439 |
$codes[] = '0';
|
| 440 |
+
$codes[] = '';
|
| 441 |
|
| 442 |
return $codes;
|
| 443 |
}
|
includes/admin/views/html-meta-box-tracking-code.php
CHANGED
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 16 |
<strong><?php echo esc_html( _n( 'Tracking code:', 'Tracking codes:', count( $tracking_codes ), 'woocommerce-correios' ) ); ?></strong>
|
| 17 |
<ul>
|
| 18 |
<?php foreach ( $tracking_codes as $tracking_code ) : ?>
|
| 19 |
-
<li><a href="#" aria-label="<?php esc_attr_e( 'Tracking code', 'woocommerce-correios' ); ?>"><?php echo esc_html( $tracking_code ); ?></a> <a href="#" class="dashicons-dismiss" title="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ); ?>" aria-label="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ) ?>" data-code="<?php echo esc_attr( $tracking_code ); ?>"></a></li>
|
| 20 |
<?php endforeach; ?>
|
| 21 |
</ul>
|
| 22 |
</div>
|
| 16 |
<strong><?php echo esc_html( _n( 'Tracking code:', 'Tracking codes:', count( $tracking_codes ), 'woocommerce-correios' ) ); ?></strong>
|
| 17 |
<ul>
|
| 18 |
<?php foreach ( $tracking_codes as $tracking_code ) : ?>
|
| 19 |
+
<li><a href="#" class="tracking-code-link" aria-label="<?php esc_attr_e( 'Tracking code', 'woocommerce-correios' ); ?>"><?php echo esc_html( $tracking_code ); ?></a> <a href="#" class="dashicons-dismiss" title="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ); ?>" aria-label="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ) ?>" data-code="<?php echo esc_attr( $tracking_code ); ?>"></a></li>
|
| 20 |
<?php endforeach; ?>
|
| 21 |
</ul>
|
| 22 |
</div>
|
includes/class-wc-correios-package.php
CHANGED
|
@@ -53,9 +53,9 @@ class WC_Correios_Package {
|
|
| 53 |
|
| 54 |
if ( $qty > 0 && $product->needs_shipping() ) {
|
| 55 |
|
| 56 |
-
$_height = wc_get_dimension( (float) $product->
|
| 57 |
$_width = wc_get_dimension( (float) $product->get_width(), 'cm' );
|
| 58 |
-
$_length = wc_get_dimension( (float) $product->
|
| 59 |
$_weight = wc_get_weight( (float) $product->get_weight(), 'kg' );
|
| 60 |
|
| 61 |
$height[ $count ] = $_height;
|
| 53 |
|
| 54 |
if ( $qty > 0 && $product->needs_shipping() ) {
|
| 55 |
|
| 56 |
+
$_height = wc_get_dimension( (float) $product->get_height(), 'cm' );
|
| 57 |
$_width = wc_get_dimension( (float) $product->get_width(), 'cm' );
|
| 58 |
+
$_length = wc_get_dimension( (float) $product->get_length(), 'cm' );
|
| 59 |
$_weight = wc_get_weight( (float) $product->get_weight(), 'kg' );
|
| 60 |
|
| 61 |
$height[ $count ] = $_height;
|
includes/class-wc-correios.php
CHANGED
|
@@ -42,7 +42,7 @@ class WC_Correios {
|
|
| 42 |
* Load the plugin text domain for translation.
|
| 43 |
*/
|
| 44 |
public static function load_plugin_textdomain() {
|
| 45 |
-
load_plugin_textdomain( 'woocommerce-correios', false, dirname( plugin_basename(
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
| 42 |
* Load the plugin text domain for translation.
|
| 43 |
*/
|
| 44 |
public static function load_plugin_textdomain() {
|
| 45 |
+
load_plugin_textdomain( 'woocommerce-correios', false, dirname( plugin_basename( WC_CORREIOS_PLUGIN_FILE ) ) . '/languages/' );
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
includes/emails/class-wc-correios-tracking-email.php
CHANGED
|
@@ -171,20 +171,15 @@ class WC_Correios_Tracking_Email extends WC_Email {
|
|
| 171 |
$this->recipient = $order->billing_email;
|
| 172 |
}
|
| 173 |
|
| 174 |
-
$this->find[] = '{order_number}';
|
| 175 |
-
$this->replace[] = $order->get_order_number();
|
| 176 |
-
|
| 177 |
-
$this->find[] = '{date}';
|
| 178 |
-
$this->replace[] = date_i18n( wc_date_format(), time() );
|
| 179 |
-
|
| 180 |
if ( empty( $tracking_code ) ) {
|
| 181 |
$tracking_codes = wc_correios_get_tracking_codes( $order );
|
| 182 |
} else {
|
| 183 |
$tracking_codes = array( $tracking_code );
|
| 184 |
}
|
| 185 |
|
| 186 |
-
$this->
|
| 187 |
-
$this->
|
|
|
|
| 188 |
}
|
| 189 |
|
| 190 |
if ( ! $this->get_recipient() ) {
|
| 171 |
$this->recipient = $order->billing_email;
|
| 172 |
}
|
| 173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
if ( empty( $tracking_code ) ) {
|
| 175 |
$tracking_codes = wc_correios_get_tracking_codes( $order );
|
| 176 |
} else {
|
| 177 |
$tracking_codes = array( $tracking_code );
|
| 178 |
}
|
| 179 |
|
| 180 |
+
$this->placeholders['{order_number}'] = $order->get_order_number();
|
| 181 |
+
$this->placeholders['{date}'] = date_i18n( wc_date_format(), time() );
|
| 182 |
+
$this->placeholders['{tracking_code}'] = $this->get_tracking_codes( $tracking_codes );
|
| 183 |
}
|
| 184 |
|
| 185 |
if ( ! $this->get_recipient() ) {
|
includes/shipping/class-wc-correios-shipping-impresso-normal.php
CHANGED
|
@@ -76,7 +76,7 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
|
|
| 76 |
'100' => 2.15,
|
| 77 |
'150' => 2.60,
|
| 78 |
'200' => 3.10,
|
| 79 |
-
'250' => 3.
|
| 80 |
'300' => 4.05,
|
| 81 |
'350' => 4.50,
|
| 82 |
'400' => 5.05,
|
| 76 |
'100' => 2.15,
|
| 77 |
'150' => 2.60,
|
| 78 |
'200' => 3.10,
|
| 79 |
+
'250' => 3.60,
|
| 80 |
'300' => 4.05,
|
| 81 |
'350' => 4.50,
|
| 82 |
'400' => 5.05,
|
languages/woocommerce-correios.pot
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
# Copyright (C)
|
| 2 |
# This file is distributed under the GPLv2 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Correios 3.7.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-correios\n"
|
| 8 |
-
"POT-Creation-Date:
|
| 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:
|
| 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"
|
|
@@ -622,10 +622,10 @@ msgid "Tracking History Table"
|
|
| 622 |
msgstr ""
|
| 623 |
|
| 624 |
#: includes/integrations/class-wc-correios-integration.php:76
|
| 625 |
-
#: includes/integrations/class-wc-correios-integration.php:109
|
| 626 |
msgid ""
|
| 627 |
"Displays a table with informations about the shipping in My Account > View "
|
| 628 |
-
"Order page."
|
|
|
|
| 629 |
msgstr ""
|
| 630 |
|
| 631 |
#: includes/integrations/class-wc-correios-integration.php:81
|
|
@@ -641,6 +641,12 @@ msgstr ""
|
|
| 641 |
msgid "Autofill Addresses"
|
| 642 |
msgstr ""
|
| 643 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 644 |
#: includes/integrations/class-wc-correios-integration.php:114
|
| 645 |
msgid "Enable Autofill Addresses"
|
| 646 |
msgstr ""
|
| 1 |
+
# Copyright (C) 2019 Claudio Sanches
|
| 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"
|
| 622 |
msgstr ""
|
| 623 |
|
| 624 |
#: includes/integrations/class-wc-correios-integration.php:76
|
|
|
|
| 625 |
msgid ""
|
| 626 |
"Displays a table with informations about the shipping in My Account > View "
|
| 627 |
+
"Order page. Required username and password that can be obtained with the "
|
| 628 |
+
"Correios' commercial area."
|
| 629 |
msgstr ""
|
| 630 |
|
| 631 |
#: includes/integrations/class-wc-correios-integration.php:81
|
| 641 |
msgid "Autofill Addresses"
|
| 642 |
msgstr ""
|
| 643 |
|
| 644 |
+
#: includes/integrations/class-wc-correios-integration.php:109
|
| 645 |
+
msgid ""
|
| 646 |
+
"Displays a table with informations about the shipping in My Account > View "
|
| 647 |
+
"Order page."
|
| 648 |
+
msgstr ""
|
| 649 |
+
|
| 650 |
#: includes/integrations/class-wc-correios-integration.php:114
|
| 651 |
msgid "Enable Autofill Addresses"
|
| 652 |
msgstr ""
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ 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:
|
| 7 |
-
Stable tag: 3.7.
|
| 8 |
Requires PHP: 5.6
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
@@ -204,6 +204,13 @@ 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.1 - 2018/05/11 =
|
| 208 |
|
| 209 |
- Melhorado o comportamento quando login e senha para tabela de rastreamento estão incorretos.
|
|
@@ -220,11 +227,9 @@ Em caso de dúvidas, basta abrir um tópico no [fórum de suporte do plugin](htt
|
|
| 220 |
|
| 221 |
== Upgrade Notice ==
|
| 222 |
|
| 223 |
-
= 3.7.
|
| 224 |
|
| 225 |
-
-
|
| 226 |
-
-
|
| 227 |
-
-
|
| 228 |
-
-
|
| 229 |
-
- Melhorado o comportamento quando login e senha para tabela de rastreamento estão incorretos.
|
| 230 |
-
- Melhorada a descrição para opção de integração com tabela de rastreamento.
|
| 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
|
| 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.
|
| 210 |
+
- Corrigido problema com código incorreto vindo do Webservice dos Correios impossibilitando mostrar o frete corretamente.
|
| 211 |
+
- Atualizado valores do Impresso normal, Registro Módico e Registro Nacional para tabela de 01/08/2018.
|
| 212 |
+
- Corrigido os valores de altura e comprimento que estavamos trocados.
|
| 213 |
+
|
| 214 |
= 3.7.1 - 2018/05/11 =
|
| 215 |
|
| 216 |
- Melhorado o comportamento quando login e senha para tabela de rastreamento estão incorretos.
|
| 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.
|
|
|
|
|
|
templates/myaccount/tracking-codes.php
CHANGED
|
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 20 |
<tr>
|
| 21 |
<th><?php echo esc_html( $code ); ?></th>
|
| 22 |
<td>
|
| 23 |
-
<form method="POST" target="_blank" rel="nofollow noopener noreferrer" action="
|
| 24 |
<input type="hidden" name="Objetos" value="<?php echo esc_attr( $code ); ?>">
|
| 25 |
<input class="wc-correios-tracking__button button" type="submit" value="<?php esc_attr_e( 'Query on Correios', 'woocommerce-correios' ); ?>">
|
| 26 |
</form>
|
| 20 |
<tr>
|
| 21 |
<th><?php echo esc_html( $code ); ?></th>
|
| 22 |
<td>
|
| 23 |
+
<form method="POST" target="_blank" rel="nofollow noopener noreferrer" action="https://www2.correios.com.br/sistemas/rastreamento/resultado.cfm" class="wc-correios-tracking__form">
|
| 24 |
<input type="hidden" name="Objetos" value="<?php echo esc_attr( $code ); ?>">
|
| 25 |
<input class="wc-correios-tracking__button button" type="submit" value="<?php esc_attr_e( 'Query on Correios', 'woocommerce-correios' ); ?>">
|
| 26 |
</form>
|
templates/myaccount/tracking-history-table.php
CHANGED
|
@@ -46,7 +46,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 46 |
<tfoot>
|
| 47 |
<tr>
|
| 48 |
<td colspan="3">
|
| 49 |
-
<form method="POST" target="_blank" rel="nofollow noopener noreferrer" action="
|
| 50 |
<input type="hidden" name="Objetos" value="<?php echo esc_attr( $code ); ?>">
|
| 51 |
<input class="wc-correios-tracking__button button" type="submit" value="<?php esc_attr_e( 'Query on Correios', 'woocommerce-correios' ); ?>">
|
| 52 |
</form>
|
| 46 |
<tfoot>
|
| 47 |
<tr>
|
| 48 |
<td colspan="3">
|
| 49 |
+
<form method="POST" target="_blank" rel="nofollow noopener noreferrer" action="https://www2.correios.com.br/sistemas/rastreamento/resultado.cfm" class="wc-correios-tracking__form">
|
| 50 |
<input type="hidden" name="Objetos" value="<?php echo esc_attr( $code ); ?>">
|
| 51 |
<input class="wc-correios-tracking__button button" type="submit" value="<?php esc_attr_e( 'Query on Correios', 'woocommerce-correios' ); ?>">
|
| 52 |
</form>
|
woocommerce-correios.php
CHANGED
|
@@ -5,12 +5,12 @@
|
|
| 5 |
* Description: Adds Correios shipping methods to your WooCommerce store.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: https://claudiosanches.com
|
| 8 |
-
* Version: 3.7.
|
| 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.
|
| 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
|
|
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 33 |
exit; // Exit if accessed directly.
|
| 34 |
}
|
| 35 |
|
| 36 |
-
define( 'WC_CORREIOS_VERSION', '3.7.
|
| 37 |
define( 'WC_CORREIOS_PLUGIN_FILE', __FILE__ );
|
| 38 |
|
| 39 |
if ( ! class_exists( 'WC_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
|
| 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' ) ) {
|
