WooCommerce Correios - Version 3.5.1

Version Description

  • 2017/10/26 =

  • Usa por padro o CEP de base do WooCommerce 3.2 ao adicionar um novo mtodo de entrega.

  • Correo do valor declarado para PAC, que ainda no aceitava o pedido quando o valor era igual a 17 reais.

  • Correo do peso mximo para Impresso Normal.

Download this release

Release Info

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

Code changes from version 3.5.0 to 3.5.1

includes/abstracts/abstract-wc-correios-shipping.php CHANGED
@@ -82,6 +82,21 @@ abstract class WC_Correios_Shipping extends WC_Shipping_Method {
82
  return ' <a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' . esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' . __( 'View logs.', 'woocommerce-correios' ) . '</a>';
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  /**
86
  * Get shipping classes options.
87
  *
@@ -130,7 +145,7 @@ abstract class WC_Correios_Shipping extends WC_Shipping_Method {
130
  'description' => __( 'The postcode of the location your packages are delivered from.', 'woocommerce-correios' ),
131
  'desc_tip' => true,
132
  'placeholder' => '00000-000',
133
- 'default' => '',
134
  ),
135
  'shipping_class_id' => array(
136
  'title' => __( 'Shipping Class', 'woocommerce-correios' ),
82
  return ' <a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' . esc_attr( $this->id ) . '-' . sanitize_file_name( wp_hash( $this->id ) ) . '.log' ) ) . '">' . __( 'View logs.', 'woocommerce-correios' ) . '</a>';
83
  }
84
 
85
+ /**
86
+ * Get base postcode.
87
+ *
88
+ * @since 3.5.1
89
+ * @return string
90
+ */
91
+ protected function get_base_postcode() {
92
+ // WooCommerce 3.1.1+.
93
+ if ( method_exists( WC()->countries, 'get_base_postcode' ) ) {
94
+ return WC()->countries->get_base_postcode();
95
+ }
96
+
97
+ return '';
98
+ }
99
+
100
  /**
101
  * Get shipping classes options.
102
  *
145
  'description' => __( 'The postcode of the location your packages are delivered from.', 'woocommerce-correios' ),
146
  'desc_tip' => true,
147
  'placeholder' => '00000-000',
148
+ 'default' => $this->get_base_postcode(),
149
  ),
150
  'shipping_class_id' => array(
151
  'title' => __( 'Shipping Class', 'woocommerce-correios' ),
includes/shipping/class-wc-correios-shipping-impresso-normal.php CHANGED
@@ -113,7 +113,9 @@ class WC_Correios_Shipping_Impresso_Normal extends WC_Correios_Shipping_Impresso
113
  }
114
 
115
  if ( $weight <= $this->shipping_method_weight_limit ) {
116
- if ( $weight > 1000 ) {
 
 
117
  // Get the additional kgs over 1 kg.
118
  $additional_weight_kgs = intval( $weight / 1000 );
119
 
113
  }
114
 
115
  if ( $weight <= $this->shipping_method_weight_limit ) {
116
+ if ( $weight > 2000 ) {
117
+ return 0;
118
+ } elseif ( $weight > 1000 ) {
119
  // Get the additional kgs over 1 kg.
120
  $additional_weight_kgs = intval( $weight / 1000 );
121
 
includes/shipping/class-wc-correios-shipping-pac.php CHANGED
@@ -52,7 +52,7 @@ class WC_Correios_Shipping_PAC extends WC_Correios_Shipping {
52
  * @return float
53
  */
54
  protected function get_declared_value( $package ) {
55
- if ( 17 >= $package['contents_cost'] ) {
56
  return 0;
57
  }
58
 
52
  * @return float
53
  */
54
  protected function get_declared_value( $package ) {
55
+ if ( 18 >= $package['contents_cost'] ) {
56
  return 0;
57
  }
58
 
languages/woocommerce-correios.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Correios 3.5.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-correios\n"
8
- "POT-Creation-Date: 2017-10-06 17:25: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"
@@ -27,7 +27,7 @@ msgstr ""
27
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:79
28
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:114
29
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:57
30
- #: includes/abstracts/abstract-wc-correios-shipping.php:110
31
  #: includes/emails/class-wc-correios-tracking-email.php:50
32
  #: includes/integrations/class-wc-correios-integration.php:76
33
  #: includes/integrations/class-wc-correios-integration.php:94
@@ -38,7 +38,7 @@ msgstr ""
38
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:81
39
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:116
40
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:59
41
- #: includes/abstracts/abstract-wc-correios-shipping.php:112
42
  #: includes/shipping/class-wc-correios-shipping-legacy.php:81
43
  msgid "Enable this shipping method"
44
  msgstr ""
@@ -46,7 +46,7 @@ msgstr ""
46
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:85
47
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:120
48
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:63
49
- #: includes/abstracts/abstract-wc-correios-shipping.php:116
50
  #: includes/shipping/class-wc-correios-shipping-legacy.php:85
51
  msgid "Title"
52
  msgstr ""
@@ -54,7 +54,7 @@ msgstr ""
54
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:87
55
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:122
56
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:65
57
- #: includes/abstracts/abstract-wc-correios-shipping.php:118
58
  #: includes/shipping/class-wc-correios-shipping-legacy.php:87
59
  msgid "This controls the title which the user sees during checkout."
60
  msgstr ""
@@ -62,14 +62,14 @@ msgstr ""
62
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:92
63
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:127
64
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:70
65
- #: includes/abstracts/abstract-wc-correios-shipping.php:123
66
  msgid "Behavior Options"
67
  msgstr ""
68
 
69
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:97
70
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:132
71
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:96
72
- #: includes/abstracts/abstract-wc-correios-shipping.php:136
73
  msgid "Shipping Class"
74
  msgstr ""
75
 
@@ -81,21 +81,21 @@ msgstr ""
81
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:106
82
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:155
83
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:105
84
- #: includes/abstracts/abstract-wc-correios-shipping.php:145
85
  msgid "Delivery Time"
86
  msgstr ""
87
 
88
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:108
89
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:157
90
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:107
91
- #: includes/abstracts/abstract-wc-correios-shipping.php:147
92
  msgid "Show estimated delivery time"
93
  msgstr ""
94
 
95
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:109
96
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:158
97
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:108
98
- #: includes/abstracts/abstract-wc-correios-shipping.php:148
99
  msgid "Display the estimated delivery time in working days."
100
  msgstr ""
101
 
@@ -112,7 +112,7 @@ msgstr ""
112
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:122
113
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:171
114
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:113
115
- #: includes/abstracts/abstract-wc-correios-shipping.php:161
116
  #: includes/shipping/class-wc-correios-shipping-legacy.php:123
117
  msgid "Handling Fee"
118
  msgstr ""
@@ -120,7 +120,7 @@ msgstr ""
120
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:124
121
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:173
122
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:115
123
- #: includes/abstracts/abstract-wc-correios-shipping.php:163
124
  #: includes/shipping/class-wc-correios-shipping-legacy.php:125
125
  msgid ""
126
  "Enter an amount, e.g. 2.50, or a percentage, e.g. 5%. Leave blank to "
@@ -130,57 +130,57 @@ msgstr ""
130
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:130
131
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:179
132
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:121
133
- #: includes/abstracts/abstract-wc-correios-shipping.php:169
134
  msgid "Optional Services"
135
  msgstr ""
136
 
137
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:132
138
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:181
139
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:123
140
- #: includes/abstracts/abstract-wc-correios-shipping.php:171
141
  msgid "Use these options to add the value of each service provided by the Correios."
142
  msgstr ""
143
 
144
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:136
145
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:185
146
- #: includes/abstracts/abstract-wc-correios-shipping.php:175
147
  msgid "Receipt Notice"
148
  msgstr ""
149
 
150
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:138
151
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:187
152
- #: includes/abstracts/abstract-wc-correios-shipping.php:177
153
  msgid "Enable receipt notice"
154
  msgstr ""
155
 
156
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:139
157
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:188
158
- #: includes/abstracts/abstract-wc-correios-shipping.php:178
159
  msgid "This controls whether to add costs of the receipt notice service."
160
  msgstr ""
161
 
162
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:144
163
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:193
164
- #: includes/abstracts/abstract-wc-correios-shipping.php:183
165
  msgid "Own Hands"
166
  msgstr ""
167
 
168
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:146
169
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:195
170
- #: includes/abstracts/abstract-wc-correios-shipping.php:185
171
  msgid "Enable own hands"
172
  msgstr ""
173
 
174
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:147
175
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:196
176
- #: includes/abstracts/abstract-wc-correios-shipping.php:186
177
  msgid "This controls whether to add costs of the own hands service"
178
  msgstr ""
179
 
180
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:152
181
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:201
182
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:127
183
- #: includes/abstracts/abstract-wc-correios-shipping.php:272
184
  #: includes/shipping/class-wc-correios-shipping-legacy.php:224
185
  msgid "Testing"
186
  msgstr ""
@@ -188,7 +188,7 @@ msgstr ""
188
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:157
189
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:206
190
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:132
191
- #: includes/abstracts/abstract-wc-correios-shipping.php:277
192
  #: includes/integrations/class-wc-correios-integration.php:82
193
  #: includes/integrations/class-wc-correios-integration.php:135
194
  #: includes/shipping/class-wc-correios-shipping-legacy.php:228
@@ -198,7 +198,7 @@ msgstr ""
198
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:159
199
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:208
200
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:134
201
- #: includes/abstracts/abstract-wc-correios-shipping.php:279
202
  #: includes/shipping/class-wc-correios-shipping-legacy.php:230
203
  msgid "Enable logging"
204
  msgstr ""
@@ -206,7 +206,7 @@ msgstr ""
206
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:161
207
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:210
208
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:136
209
- #: includes/abstracts/abstract-wc-correios-shipping.php:281
210
  #: includes/integrations/class-wc-correios-integration.php:86
211
  #: includes/integrations/class-wc-correios-integration.php:139
212
  msgid "Log %s events, such as WebServices requests."
@@ -261,7 +261,7 @@ msgid "Interior"
261
  msgstr ""
262
 
263
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:98
264
- #: includes/abstracts/abstract-wc-correios-shipping.php:138
265
  msgid "If necessary, select a shipping class to apply this method."
266
  msgstr ""
267
 
@@ -270,135 +270,135 @@ msgstr ""
270
  msgid "View logs."
271
  msgstr ""
272
 
273
- #: includes/abstracts/abstract-wc-correios-shipping.php:93
274
  msgid "Any Shipping Class"
275
  msgstr ""
276
 
277
- #: includes/abstracts/abstract-wc-correios-shipping.php:94
278
  msgid "No Shipping Class"
279
  msgstr ""
280
 
281
- #: includes/abstracts/abstract-wc-correios-shipping.php:128
282
  msgid "Origin Postcode"
283
  msgstr ""
284
 
285
- #: includes/abstracts/abstract-wc-correios-shipping.php:130
286
  msgid "The postcode of the location your packages are delivered from."
287
  msgstr ""
288
 
289
- #: includes/abstracts/abstract-wc-correios-shipping.php:153
290
  msgid "Additional Days"
291
  msgstr ""
292
 
293
- #: includes/abstracts/abstract-wc-correios-shipping.php:155
294
  msgid "Additional working days to the estimated delivery."
295
  msgstr ""
296
 
297
- #: includes/abstracts/abstract-wc-correios-shipping.php:191
298
  msgid "Declare Value for Insurance"
299
  msgstr ""
300
 
301
- #: includes/abstracts/abstract-wc-correios-shipping.php:193
302
  msgid "Enable declared value"
303
  msgstr ""
304
 
305
- #: includes/abstracts/abstract-wc-correios-shipping.php:194
306
  msgid ""
307
  "This controls if the price of the package must be declared for insurance "
308
  "purposes."
309
  msgstr ""
310
 
311
- #: includes/abstracts/abstract-wc-correios-shipping.php:199
312
  msgid "Service Options"
313
  msgstr ""
314
 
315
- #: includes/abstracts/abstract-wc-correios-shipping.php:204
316
  msgid "Service Code"
317
  msgstr ""
318
 
319
- #: includes/abstracts/abstract-wc-correios-shipping.php:206
320
  msgid "Service code, use this for custom codes."
321
  msgstr ""
322
 
323
- #: includes/abstracts/abstract-wc-correios-shipping.php:212
324
  #: includes/shipping/class-wc-correios-shipping-esedex.php:40
325
  msgid "Service Type"
326
  msgstr ""
327
 
328
- #: includes/abstracts/abstract-wc-correios-shipping.php:214
329
  #: includes/shipping/class-wc-correios-shipping-esedex.php:42
330
  #: includes/shipping/class-wc-correios-shipping-legacy.php:136
331
  msgid "Choose between conventional or corporate service."
332
  msgstr ""
333
 
334
- #: includes/abstracts/abstract-wc-correios-shipping.php:219
335
  #: includes/shipping/class-wc-correios-shipping-legacy.php:140
336
  msgid "Conventional"
337
  msgstr ""
338
 
339
- #: includes/abstracts/abstract-wc-correios-shipping.php:220
340
  #: includes/shipping/class-wc-correios-shipping-esedex.php:47
341
  #: includes/shipping/class-wc-correios-shipping-legacy.php:141
342
  msgid "Corporate"
343
  msgstr ""
344
 
345
- #: includes/abstracts/abstract-wc-correios-shipping.php:224
346
  #: includes/shipping/class-wc-correios-shipping-legacy.php:145
347
  msgid "Administrative Code"
348
  msgstr ""
349
 
350
- #: includes/abstracts/abstract-wc-correios-shipping.php:226
351
  msgid "Your Correios login. It's usually your CNPJ."
352
  msgstr ""
353
 
354
- #: includes/abstracts/abstract-wc-correios-shipping.php:231
355
  #: includes/shipping/class-wc-correios-shipping-legacy.php:151
356
  msgid "Administrative Password"
357
  msgstr ""
358
 
359
- #: includes/abstracts/abstract-wc-correios-shipping.php:233
360
  #: includes/shipping/class-wc-correios-shipping-legacy.php:153
361
  msgid "Your Correios password."
362
  msgstr ""
363
 
364
- #: includes/abstracts/abstract-wc-correios-shipping.php:238
365
  #: includes/shipping/class-wc-correios-shipping-legacy.php:197
366
  msgid "Package Standard"
367
  msgstr ""
368
 
369
- #: includes/abstracts/abstract-wc-correios-shipping.php:240
370
  msgid "Minimum measure for your shipping packages."
371
  msgstr ""
372
 
373
- #: includes/abstracts/abstract-wc-correios-shipping.php:244
374
  msgid "Minimum Height (cm)"
375
  msgstr ""
376
 
377
- #: includes/abstracts/abstract-wc-correios-shipping.php:246
378
  msgid "Minimum height of your shipping packages. Correios needs at least 2cm."
379
  msgstr ""
380
 
381
- #: includes/abstracts/abstract-wc-correios-shipping.php:251
382
  msgid "Minimum Width (cm)"
383
  msgstr ""
384
 
385
- #: includes/abstracts/abstract-wc-correios-shipping.php:253
386
  msgid "Minimum width of your shipping packages. Correios needs at least 11cm."
387
  msgstr ""
388
 
389
- #: includes/abstracts/abstract-wc-correios-shipping.php:258
390
  msgid "Minimum Length (cm)"
391
  msgstr ""
392
 
393
- #: includes/abstracts/abstract-wc-correios-shipping.php:260
394
  msgid "Minimum length of your shipping packages. Correios needs at least 16cm."
395
  msgstr ""
396
 
397
- #: includes/abstracts/abstract-wc-correios-shipping.php:265
398
  msgid "Extra Weight (kg)"
399
  msgstr ""
400
 
401
- #: includes/abstracts/abstract-wc-correios-shipping.php:267
402
  msgid ""
403
  "Extra weight in kilograms to add to the package total when quoting shipping "
404
  "costs."
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Correios 3.5.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-correios\n"
8
+ "POT-Creation-Date: 2017-10-26 23:40:49+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
27
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:79
28
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:114
29
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:57
30
+ #: includes/abstracts/abstract-wc-correios-shipping.php:125
31
  #: includes/emails/class-wc-correios-tracking-email.php:50
32
  #: includes/integrations/class-wc-correios-integration.php:76
33
  #: includes/integrations/class-wc-correios-integration.php:94
38
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:81
39
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:116
40
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:59
41
+ #: includes/abstracts/abstract-wc-correios-shipping.php:127
42
  #: includes/shipping/class-wc-correios-shipping-legacy.php:81
43
  msgid "Enable this shipping method"
44
  msgstr ""
46
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:85
47
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:120
48
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:63
49
+ #: includes/abstracts/abstract-wc-correios-shipping.php:131
50
  #: includes/shipping/class-wc-correios-shipping-legacy.php:85
51
  msgid "Title"
52
  msgstr ""
54
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:87
55
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:122
56
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:65
57
+ #: includes/abstracts/abstract-wc-correios-shipping.php:133
58
  #: includes/shipping/class-wc-correios-shipping-legacy.php:87
59
  msgid "This controls the title which the user sees during checkout."
60
  msgstr ""
62
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:92
63
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:127
64
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:70
65
+ #: includes/abstracts/abstract-wc-correios-shipping.php:138
66
  msgid "Behavior Options"
67
  msgstr ""
68
 
69
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:97
70
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:132
71
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:96
72
+ #: includes/abstracts/abstract-wc-correios-shipping.php:151
73
  msgid "Shipping Class"
74
  msgstr ""
75
 
81
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:106
82
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:155
83
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:105
84
+ #: includes/abstracts/abstract-wc-correios-shipping.php:160
85
  msgid "Delivery Time"
86
  msgstr ""
87
 
88
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:108
89
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:157
90
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:107
91
+ #: includes/abstracts/abstract-wc-correios-shipping.php:162
92
  msgid "Show estimated delivery time"
93
  msgstr ""
94
 
95
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:109
96
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:158
97
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:108
98
+ #: includes/abstracts/abstract-wc-correios-shipping.php:163
99
  msgid "Display the estimated delivery time in working days."
100
  msgstr ""
101
 
112
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:122
113
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:171
114
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:113
115
+ #: includes/abstracts/abstract-wc-correios-shipping.php:176
116
  #: includes/shipping/class-wc-correios-shipping-legacy.php:123
117
  msgid "Handling Fee"
118
  msgstr ""
120
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:124
121
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:173
122
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:115
123
+ #: includes/abstracts/abstract-wc-correios-shipping.php:178
124
  #: includes/shipping/class-wc-correios-shipping-legacy.php:125
125
  msgid ""
126
  "Enter an amount, e.g. 2.50, or a percentage, e.g. 5%. Leave blank to "
130
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:130
131
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:179
132
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:121
133
+ #: includes/abstracts/abstract-wc-correios-shipping.php:184
134
  msgid "Optional Services"
135
  msgstr ""
136
 
137
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:132
138
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:181
139
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:123
140
+ #: includes/abstracts/abstract-wc-correios-shipping.php:186
141
  msgid "Use these options to add the value of each service provided by the Correios."
142
  msgstr ""
143
 
144
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:136
145
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:185
146
+ #: includes/abstracts/abstract-wc-correios-shipping.php:190
147
  msgid "Receipt Notice"
148
  msgstr ""
149
 
150
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:138
151
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:187
152
+ #: includes/abstracts/abstract-wc-correios-shipping.php:192
153
  msgid "Enable receipt notice"
154
  msgstr ""
155
 
156
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:139
157
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:188
158
+ #: includes/abstracts/abstract-wc-correios-shipping.php:193
159
  msgid "This controls whether to add costs of the receipt notice service."
160
  msgstr ""
161
 
162
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:144
163
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:193
164
+ #: includes/abstracts/abstract-wc-correios-shipping.php:198
165
  msgid "Own Hands"
166
  msgstr ""
167
 
168
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:146
169
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:195
170
+ #: includes/abstracts/abstract-wc-correios-shipping.php:200
171
  msgid "Enable own hands"
172
  msgstr ""
173
 
174
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:147
175
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:196
176
+ #: includes/abstracts/abstract-wc-correios-shipping.php:201
177
  msgid "This controls whether to add costs of the own hands service"
178
  msgstr ""
179
 
180
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:152
181
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:201
182
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:127
183
+ #: includes/abstracts/abstract-wc-correios-shipping.php:287
184
  #: includes/shipping/class-wc-correios-shipping-legacy.php:224
185
  msgid "Testing"
186
  msgstr ""
188
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:157
189
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:206
190
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:132
191
+ #: includes/abstracts/abstract-wc-correios-shipping.php:292
192
  #: includes/integrations/class-wc-correios-integration.php:82
193
  #: includes/integrations/class-wc-correios-integration.php:135
194
  #: includes/shipping/class-wc-correios-shipping-legacy.php:228
198
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:159
199
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:208
200
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:134
201
+ #: includes/abstracts/abstract-wc-correios-shipping.php:294
202
  #: includes/shipping/class-wc-correios-shipping-legacy.php:230
203
  msgid "Enable logging"
204
  msgstr ""
206
  #: includes/abstracts/abstract-wc-correios-shipping-carta.php:161
207
  #: includes/abstracts/abstract-wc-correios-shipping-impresso.php:210
208
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:136
209
+ #: includes/abstracts/abstract-wc-correios-shipping.php:296
210
  #: includes/integrations/class-wc-correios-integration.php:86
211
  #: includes/integrations/class-wc-correios-integration.php:139
212
  msgid "Log %s events, such as WebServices requests."
261
  msgstr ""
262
 
263
  #: includes/abstracts/abstract-wc-correios-shipping-international.php:98
264
+ #: includes/abstracts/abstract-wc-correios-shipping.php:153
265
  msgid "If necessary, select a shipping class to apply this method."
266
  msgstr ""
267
 
270
  msgid "View logs."
271
  msgstr ""
272
 
273
+ #: includes/abstracts/abstract-wc-correios-shipping.php:108
274
  msgid "Any Shipping Class"
275
  msgstr ""
276
 
277
+ #: includes/abstracts/abstract-wc-correios-shipping.php:109
278
  msgid "No Shipping Class"
279
  msgstr ""
280
 
281
+ #: includes/abstracts/abstract-wc-correios-shipping.php:143
282
  msgid "Origin Postcode"
283
  msgstr ""
284
 
285
+ #: includes/abstracts/abstract-wc-correios-shipping.php:145
286
  msgid "The postcode of the location your packages are delivered from."
287
  msgstr ""
288
 
289
+ #: includes/abstracts/abstract-wc-correios-shipping.php:168
290
  msgid "Additional Days"
291
  msgstr ""
292
 
293
+ #: includes/abstracts/abstract-wc-correios-shipping.php:170
294
  msgid "Additional working days to the estimated delivery."
295
  msgstr ""
296
 
297
+ #: includes/abstracts/abstract-wc-correios-shipping.php:206
298
  msgid "Declare Value for Insurance"
299
  msgstr ""
300
 
301
+ #: includes/abstracts/abstract-wc-correios-shipping.php:208
302
  msgid "Enable declared value"
303
  msgstr ""
304
 
305
+ #: includes/abstracts/abstract-wc-correios-shipping.php:209
306
  msgid ""
307
  "This controls if the price of the package must be declared for insurance "
308
  "purposes."
309
  msgstr ""
310
 
311
+ #: includes/abstracts/abstract-wc-correios-shipping.php:214
312
  msgid "Service Options"
313
  msgstr ""
314
 
315
+ #: includes/abstracts/abstract-wc-correios-shipping.php:219
316
  msgid "Service Code"
317
  msgstr ""
318
 
319
+ #: includes/abstracts/abstract-wc-correios-shipping.php:221
320
  msgid "Service code, use this for custom codes."
321
  msgstr ""
322
 
323
+ #: includes/abstracts/abstract-wc-correios-shipping.php:227
324
  #: includes/shipping/class-wc-correios-shipping-esedex.php:40
325
  msgid "Service Type"
326
  msgstr ""
327
 
328
+ #: includes/abstracts/abstract-wc-correios-shipping.php:229
329
  #: includes/shipping/class-wc-correios-shipping-esedex.php:42
330
  #: includes/shipping/class-wc-correios-shipping-legacy.php:136
331
  msgid "Choose between conventional or corporate service."
332
  msgstr ""
333
 
334
+ #: includes/abstracts/abstract-wc-correios-shipping.php:234
335
  #: includes/shipping/class-wc-correios-shipping-legacy.php:140
336
  msgid "Conventional"
337
  msgstr ""
338
 
339
+ #: includes/abstracts/abstract-wc-correios-shipping.php:235
340
  #: includes/shipping/class-wc-correios-shipping-esedex.php:47
341
  #: includes/shipping/class-wc-correios-shipping-legacy.php:141
342
  msgid "Corporate"
343
  msgstr ""
344
 
345
+ #: includes/abstracts/abstract-wc-correios-shipping.php:239
346
  #: includes/shipping/class-wc-correios-shipping-legacy.php:145
347
  msgid "Administrative Code"
348
  msgstr ""
349
 
350
+ #: includes/abstracts/abstract-wc-correios-shipping.php:241
351
  msgid "Your Correios login. It's usually your CNPJ."
352
  msgstr ""
353
 
354
+ #: includes/abstracts/abstract-wc-correios-shipping.php:246
355
  #: includes/shipping/class-wc-correios-shipping-legacy.php:151
356
  msgid "Administrative Password"
357
  msgstr ""
358
 
359
+ #: includes/abstracts/abstract-wc-correios-shipping.php:248
360
  #: includes/shipping/class-wc-correios-shipping-legacy.php:153
361
  msgid "Your Correios password."
362
  msgstr ""
363
 
364
+ #: includes/abstracts/abstract-wc-correios-shipping.php:253
365
  #: includes/shipping/class-wc-correios-shipping-legacy.php:197
366
  msgid "Package Standard"
367
  msgstr ""
368
 
369
+ #: includes/abstracts/abstract-wc-correios-shipping.php:255
370
  msgid "Minimum measure for your shipping packages."
371
  msgstr ""
372
 
373
+ #: includes/abstracts/abstract-wc-correios-shipping.php:259
374
  msgid "Minimum Height (cm)"
375
  msgstr ""
376
 
377
+ #: includes/abstracts/abstract-wc-correios-shipping.php:261
378
  msgid "Minimum height of your shipping packages. Correios needs at least 2cm."
379
  msgstr ""
380
 
381
+ #: includes/abstracts/abstract-wc-correios-shipping.php:266
382
  msgid "Minimum Width (cm)"
383
  msgstr ""
384
 
385
+ #: includes/abstracts/abstract-wc-correios-shipping.php:268
386
  msgid "Minimum width of your shipping packages. Correios needs at least 11cm."
387
  msgstr ""
388
 
389
+ #: includes/abstracts/abstract-wc-correios-shipping.php:273
390
  msgid "Minimum Length (cm)"
391
  msgstr ""
392
 
393
+ #: includes/abstracts/abstract-wc-correios-shipping.php:275
394
  msgid "Minimum length of your shipping packages. Correios needs at least 16cm."
395
  msgstr ""
396
 
397
+ #: includes/abstracts/abstract-wc-correios-shipping.php:280
398
  msgid "Extra Weight (kg)"
399
  msgstr ""
400
 
401
+ #: includes/abstracts/abstract-wc-correios-shipping.php:282
402
  msgid ""
403
  "Extra weight in kilograms to add to the package total when quoting shipping "
404
  "costs."
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: 4.8
7
- Stable tag: 3.5.0
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,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.5.0 - 2017/10/06 =
208
 
209
  - Adicionada opção para adicionar peso extra por pacote.
@@ -323,9 +329,8 @@ Em caso de dúvidas, basta abrir um tópico no [fórum de suporte do plugin](htt
323
 
324
  == Upgrade Notice ==
325
 
326
- = 3.4.1 =
327
 
328
- - Adicionado novamente links para os códigos de rastreamento na detalhes do pedido no admin.
329
- - Adicionado novos links com código de rastreamneto na lista de pedidos no admin.
330
- - Corrigido códigos de rastreamento que ainda não foram atualizados na página de detalhes do pedido em "Minha conta".
331
- - Restaurado o suporte de valores em porcentagem para "Taxa de manuseio".
3
  Donate link: https://claudiosanches.com/doacoes/
4
  Tags: shipping, delivery, woocommerce, correios
5
  Requires at least: 4.0
6
+ Tested up to: 4.9
7
+ Stable tag: 3.5.1
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.5.1 - 2017/10/26 =
208
+
209
+ - Usa por padrão o CEP de base do WooCommerce 3.2 ao adicionar um novo método de entrega.
210
+ - Correção do valor declarado para PAC, que ainda não aceitava o pedido quando o valor era igual a 17 reais.
211
+ - Correção do peso máximo para Impresso Normal.
212
+
213
  = 3.5.0 - 2017/10/06 =
214
 
215
  - Adicionada opção para adicionar peso extra por pacote.
329
 
330
  == Upgrade Notice ==
331
 
332
+ = 3.5.1 =
333
 
334
+ - Usa por padrão o CEP de base do WooCommerce 3.2 ao adicionar um novo método de entrega.
335
+ - Correção do valor declarado para PAC, que ainda não aceitava o pedido quando o valor era igual a 17 reais.
336
+ - Correção do peso máximo para Impresso Normal.
 
woocommerce-correios.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Adds Correios shipping methods to your WooCommerce store.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
- * Version: 3.5.0
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-correios
11
  * Domain Path: /languages
@@ -45,7 +45,7 @@ if ( ! class_exists( 'WC_Correios' ) ) :
45
  *
46
  * @var string
47
  */
48
- const VERSION = '3.5.0';
49
 
50
  /**
51
  * Instance of this class.
5
  * Description: Adds Correios shipping methods to your WooCommerce store.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
+ * Version: 3.5.1
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-correios
11
  * Domain Path: /languages
45
  *
46
  * @var string
47
  */
48
+ const VERSION = '3.5.1';
49
 
50
  /**
51
  * Instance of this class.