WooCommerce Advanced Free Shipping - Version 1.0.4

Version Description

  • Fix - Weight condition wasn't working
  • Fix - Cash On Delivery for WAFS
  • Added - Added languages files for Portuguese - Brazil pt_BR
Download this release

Release Info

Developer sormano
Plugin Icon 128x128 WooCommerce Advanced Free Shipping
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

assets/css/admin-style.css CHANGED
@@ -40,7 +40,7 @@
40
  }
41
 
42
  #wafs_conditions p + p {
43
- display: none !important;
44
  }
45
  /* Description */
46
  .wafs_desc {
40
  }
41
 
42
  #wafs_conditions p + p {
43
+ display: none;
44
  }
45
  /* Description */
46
  .wafs_desc {
includes/admin/settings/conditions/condition-values.php CHANGED
@@ -240,7 +240,7 @@ function wafs_condition_values( $id, $group = 0, $condition = 'subtotal', $curre
240
  break;
241
 
242
  default :
243
- do_action( 'wafs_conditino_value_field_type_' . $values['field'], $values );
244
  break;
245
 
246
  endswitch;
240
  break;
241
 
242
  default :
243
+ do_action( 'wafs_condition_value_field_type_' . $values['field'], $values );
244
  break;
245
 
246
  endswitch;
includes/admin/settings/meta-box-conditions.php CHANGED
@@ -16,26 +16,27 @@ wp_nonce_field( 'wafs_conditions_meta_box', 'wafs_conditions_meta_box_nonce' );
16
  global $post;
17
  $conditions = get_post_meta( $post->ID, '_wafs_shipping_method_conditions', true );
18
 
19
- ?>
20
- <div class='wafs wafs_conditions wafs_meta_box wafs_conditions_meta_box'>
21
 
22
- <p><strong><?php _e( 'Match all of the following rules to allow free shipping:', 'woocommerce-advanced-free-shipping' ); ?></strong></p>
23
 
24
- <?php if ( !empty( $conditions ) ) :
25
 
26
  foreach ( $conditions as $condition_group => $conditions ) :
27
 
28
  ?><div class='condition-group condition-group-<?php echo $condition_group; ?>' data-group='<?php echo $condition_group; ?>'>
29
 
30
- <p class='or_match'><?php _e( 'Or match all of the following rules to allow free shipping:', 'woocommerce-advanced-free-shipping' );?></p>
31
- <?php
 
 
32
  foreach ( $conditions as $condition_id => $condition ) :
33
 
34
  new Wafs_Condition( $condition_id, $condition_group, $condition['condition'], $condition['operator'], $condition['value'] );
35
 
36
  endforeach;
37
- ?>
38
- </div>
39
 
40
  <p><strong><?php _e( 'Or', 'woocommerce-advanced-free-shipping' ); ?></strong></p><?php
41
 
@@ -47,8 +48,8 @@ $conditions = get_post_meta( $post->ID, '_wafs_shipping_method_conditions', true
47
  new Wafs_Condition();
48
  ?></div><?php
49
 
50
- endif; ?>
51
 
52
- </div>
53
 
54
  <a class='button condition-group-add' href='javascript:void(0);'><?php _e( 'Add \'Or\' group', 'woocommerce-advanced-free-shipping' ); ?></a>
16
  global $post;
17
  $conditions = get_post_meta( $post->ID, '_wafs_shipping_method_conditions', true );
18
 
19
+ ?><div class='wafs wafs_conditions wafs_meta_box wafs_conditions_meta_box'>
 
20
 
21
+ <p><strong><?php _e( 'Match all of the following rules to allow free shipping:', 'woocommerce-advanced-free-shipping' ); ?></strong></p><?php
22
 
23
+ if ( !empty( $conditions ) ) :
24
 
25
  foreach ( $conditions as $condition_group => $conditions ) :
26
 
27
  ?><div class='condition-group condition-group-<?php echo $condition_group; ?>' data-group='<?php echo $condition_group; ?>'>
28
 
29
+ <p class='or_match'>
30
+ <?php _e( 'Or match all of the following rules to allow free shipping:', 'woocommerce-advanced-free-shipping' );?>
31
+ </p><?php
32
+
33
  foreach ( $conditions as $condition_id => $condition ) :
34
 
35
  new Wafs_Condition( $condition_id, $condition_group, $condition['condition'], $condition['operator'], $condition['value'] );
36
 
37
  endforeach;
38
+
39
+ ?></div>
40
 
41
  <p><strong><?php _e( 'Or', 'woocommerce-advanced-free-shipping' ); ?></strong></p><?php
42
 
48
  new Wafs_Condition();
49
  ?></div><?php
50
 
51
+ endif;
52
 
53
+ ?></div>
54
 
55
  <a class='button condition-group-add' href='javascript:void(0);'><?php _e( 'Add \'Or\' group', 'woocommerce-advanced-free-shipping' ); ?></a>
includes/class-wafs-ajax.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  /**
4
- * Class WAFS_Ajax.
5
  *
6
- * Initialize the WAFS post type.
7
  *
8
  * @class WAFS_Ajax
9
  * @author Jeroen Sormani
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  /**
4
+ * Class Wafs_post_type
5
  *
6
+ * Initialize the WAFS post type
7
  *
8
  * @class WAFS_Ajax
9
  * @author Jeroen Sormani
includes/class-wafs-match-conditions.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  /**
4
- * Class WAFS_Match_Conditions.
5
  *
6
- * The WAFS Match Conditions class handles the matching rules for Free Shipping.
7
  *
8
  * @class WAFS_Match_Conditions
9
  * @author Jeroen Sormani
@@ -16,7 +16,8 @@ class WAFS_Match_Conditions {
16
  /**
17
  * Constructor.
18
  *
19
- * @since 1.0.0 */
 
20
  public function __construct() {
21
 
22
  global $woocommerce;
@@ -27,6 +28,7 @@ class WAFS_Match_Conditions {
27
  add_filter( 'wafs_match_condition_quantity', array( $this, 'wafs_match_condition_quantity' ), 10, 3 );
28
  add_filter( 'wafs_match_condition_contains_product', array( $this, 'wafs_match_condition_contains_product' ), 10, 3 );
29
  add_filter( 'wafs_match_condition_coupon', array( $this, 'wafs_match_condition_coupon' ), 10, 3 );
 
30
  add_filter( 'wafs_match_condition_contains_shipping_class', array( $this, 'wafs_match_condition_contains_shipping_class' ), 10, 3 );
31
 
32
  add_filter( 'wafs_match_condition_zipcode', array( $this, 'wafs_match_condition_zipcode' ), 10, 3 );
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  /**
4
+ * Class WAFS_Match_Conditions
5
  *
6
+ * The WAFS Match Conditions class handles the matching rules for Free Shipping
7
  *
8
  * @class WAFS_Match_Conditions
9
  * @author Jeroen Sormani
16
  /**
17
  * Constructor.
18
  *
19
+ * @since 1.0.0
20
+ */
21
  public function __construct() {
22
 
23
  global $woocommerce;
28
  add_filter( 'wafs_match_condition_quantity', array( $this, 'wafs_match_condition_quantity' ), 10, 3 );
29
  add_filter( 'wafs_match_condition_contains_product', array( $this, 'wafs_match_condition_contains_product' ), 10, 3 );
30
  add_filter( 'wafs_match_condition_coupon', array( $this, 'wafs_match_condition_coupon' ), 10, 3 );
31
+ add_filter( 'wafs_match_condition_weight', array( $this, 'wafs_match_condition_weight' ), 10, 3 );
32
  add_filter( 'wafs_match_condition_contains_shipping_class', array( $this, 'wafs_match_condition_contains_shipping_class' ), 10, 3 );
33
 
34
  add_filter( 'wafs_match_condition_zipcode', array( $this, 'wafs_match_condition_zipcode' ), 10, 3 );
includes/class-wafs-method.php CHANGED
@@ -39,7 +39,7 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
39
  $this->init_settings();
40
 
41
  $this->enabled = $this->get_option( 'enabled' );
42
- $this->hide_shipping = $this->get_option( 'hide_other_shipping' );
43
 
44
  // Save settings in admin if you have any defined
45
  add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
@@ -143,7 +143,7 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
143
  'label' => __( 'Enable Advanced Free Shipping', 'woocommerce-advanced-free-shipping' ),
144
  'default' => 'yes'
145
  ),
146
- 'hide_other_shipping' => array(
147
  'title' => __( 'Hide other shipping', 'woocommerce-advanced-free-shipping' ),
148
  'type' => 'checkbox',
149
  'label' => __( 'Hide other shipping methods when free shipping is available', 'woocommerce-advanced-free-shipping' ),
@@ -164,7 +164,7 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
164
  *
165
  * @since 1.0.0
166
  *
167
- * @return string Conditions table HTML.
168
  */
169
  public function generate_conditions_table_html() {
170
 
@@ -203,6 +203,7 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
203
  * @since 1.0.0
204
  *
205
  * @param mixed $package
 
206
  */
207
  public function calculate_shipping( $package ) {
208
 
@@ -232,8 +233,8 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
232
  *
233
  * @since 1.0.0
234
  *
235
- * @param array $available_methods List of available methods.
236
- * @return array List of modified available methods.
237
  */
238
  public function hide_all_shipping_when_free_is_available( $available_methods ) {
239
 
@@ -241,11 +242,11 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
241
 
242
  if ( isset( $available_methods['advanced_free_shipping'] ) ) :
243
 
244
- return array( $available_methods['advanced_free_shipping'] );
245
 
246
  elseif ( isset( $available_methods['free_shipping'] ) ) :
247
 
248
- return array( $available_methods['free_shipping'] );
249
 
250
  else :
251
 
39
  $this->init_settings();
40
 
41
  $this->enabled = $this->get_option( 'enabled' );
42
+ $this->hide_shipping = $this->get_option( 'hide_other_shipping_when_available' );
43
 
44
  // Save settings in admin if you have any defined
45
  add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
143
  'label' => __( 'Enable Advanced Free Shipping', 'woocommerce-advanced-free-shipping' ),
144
  'default' => 'yes'
145
  ),
146
+ 'hide_other_shipping_when_available' => array(
147
  'title' => __( 'Hide other shipping', 'woocommerce-advanced-free-shipping' ),
148
  'type' => 'checkbox',
149
  'label' => __( 'Hide other shipping methods when free shipping is available', 'woocommerce-advanced-free-shipping' ),
164
  *
165
  * @since 1.0.0
166
  *
167
+ * @return string
168
  */
169
  public function generate_conditions_table_html() {
170
 
203
  * @since 1.0.0
204
  *
205
  * @param mixed $package
206
+ * @return void
207
  */
208
  public function calculate_shipping( $package ) {
209
 
233
  *
234
  * @since 1.0.0
235
  *
236
+ * @param array $available_methods
237
+ * @return array
238
  */
239
  public function hide_all_shipping_when_free_is_available( $available_methods ) {
240
 
242
 
243
  if ( isset( $available_methods['advanced_free_shipping'] ) ) :
244
 
245
+ return array( 'advanced_free_shipping' => $available_methods['advanced_free_shipping'] );
246
 
247
  elseif ( isset( $available_methods['free_shipping'] ) ) :
248
 
249
+ return array( 'free_shipping' => $available_methods['free_shipping'] );
250
 
251
  else :
252
 
languages/woocommerce-advanced-free-shipping-pt_BR.mo ADDED
Binary file
languages/woocommerce-advanced-free-shipping-pt_BR.po ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Woocommerce Advanced Free Shipping v1.0.3\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-10-29 12:22:45+0000\n"
7
+ "Last-Translator: samuelmanzini-2 <samuel@semglutensemlactose.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: CSL v1.x\n"
14
+ "X-Poedit-Language: Portuguese\n"
15
+ "X-Poedit-Country: BRAZIL\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: includes/admin/settings/conditions/condition-conditions.php:18
24
+ #@ woocommerce-advanced-free-shipping
25
+ msgid "Cart"
26
+ msgstr "Carrinho"
27
+
28
+ #: includes/admin/settings/conditions/condition-conditions.php:19
29
+ #@ woocommerce-advanced-free-shipping
30
+ msgid "Subtotal"
31
+ msgstr "Subtotal"
32
+
33
+ #: includes/admin/settings/conditions/condition-conditions.php:20
34
+ #@ woocommerce-advanced-free-shipping
35
+ msgid "Subtotal ex. taxes"
36
+ msgstr "Subtotal sem impostos"
37
+
38
+ #: includes/admin/settings/conditions/condition-conditions.php:21
39
+ #@ woocommerce-advanced-free-shipping
40
+ msgid "Tax"
41
+ msgstr "Imposto"
42
+
43
+ #: includes/admin/settings/conditions/condition-conditions.php:22
44
+ #@ woocommerce-advanced-free-shipping
45
+ msgid "Quantity"
46
+ msgstr "Quantidade"
47
+
48
+ #: includes/admin/settings/conditions/condition-conditions.php:23
49
+ #@ woocommerce-advanced-free-shipping
50
+ msgid "Contains product"
51
+ msgstr "Contém Produto"
52
+
53
+ #: includes/admin/settings/conditions/condition-conditions.php:24
54
+ #@ woocommerce-advanced-free-shipping
55
+ msgid "Coupon"
56
+ msgstr "Cupom"
57
+
58
+ #: includes/admin/settings/conditions/condition-conditions.php:25
59
+ #@ woocommerce-advanced-free-shipping
60
+ msgid "Weight"
61
+ msgstr "Peso"
62
+
63
+ #: includes/admin/settings/conditions/condition-conditions.php:26
64
+ #@ woocommerce-advanced-free-shipping
65
+ msgid "Contains shipping class"
66
+ msgstr "Contém Classe de Entrega"
67
+
68
+ #: includes/admin/settings/conditions/condition-conditions.php:28
69
+ #@ woocommerce-advanced-free-shipping
70
+ msgid "User Details"
71
+ msgstr "Detalhes do Cliente"
72
+
73
+ #: includes/admin/settings/conditions/condition-conditions.php:29
74
+ #@ woocommerce-advanced-free-shipping
75
+ msgid "Zipcode"
76
+ msgstr "CEP"
77
+
78
+ #: includes/admin/settings/conditions/condition-conditions.php:30
79
+ #@ woocommerce-advanced-free-shipping
80
+ msgid "City"
81
+ msgstr "Cidade"
82
+
83
+ #: includes/admin/settings/conditions/condition-conditions.php:31
84
+ #@ woocommerce-advanced-free-shipping
85
+ msgid "State"
86
+ msgstr "Estado"
87
+
88
+ #: includes/admin/settings/conditions/condition-conditions.php:32
89
+ #@ woocommerce-advanced-free-shipping
90
+ msgid "Country"
91
+ msgstr "País"
92
+
93
+ #: includes/admin/settings/conditions/condition-conditions.php:33
94
+ #@ woocommerce-advanced-free-shipping
95
+ msgid "User role"
96
+ msgstr "Função do Usuário"
97
+
98
+ #: includes/admin/settings/conditions/condition-conditions.php:35
99
+ #@ woocommerce-advanced-free-shipping
100
+ msgid "Product"
101
+ msgstr "Produto"
102
+
103
+ #: includes/admin/settings/conditions/condition-conditions.php:36
104
+ #@ woocommerce-advanced-free-shipping
105
+ msgid "Width"
106
+ msgstr "Largura"
107
+
108
+ #: includes/admin/settings/conditions/condition-conditions.php:37
109
+ #@ woocommerce-advanced-free-shipping
110
+ msgid "Height"
111
+ msgstr "Altura"
112
+
113
+ #: includes/admin/settings/conditions/condition-conditions.php:38
114
+ #@ woocommerce-advanced-free-shipping
115
+ msgid "Length"
116
+ msgstr "Comprimento"
117
+
118
+ #: includes/admin/settings/conditions/condition-conditions.php:39
119
+ #@ woocommerce-advanced-free-shipping
120
+ msgid "Stock"
121
+ msgstr "Estoque"
122
+
123
+ #: includes/admin/settings/conditions/condition-conditions.php:40
124
+ #@ woocommerce-advanced-free-shipping
125
+ msgid "Stock status"
126
+ msgstr "Status do Estoque"
127
+
128
+ #: includes/admin/settings/conditions/condition-conditions.php:41
129
+ #@ woocommerce-advanced-free-shipping
130
+ msgid "Category"
131
+ msgstr "Categoria"
132
+
133
+ #: includes/admin/settings/conditions/condition-descriptions.php:16
134
+ #@ woocommerce-advanced-free-shipping
135
+ msgid "States must be installed in WC."
136
+ msgstr "Status precisam estar instalados no WooCommerce"
137
+
138
+ #: includes/admin/settings/conditions/condition-descriptions.php:17
139
+ #@ woocommerce-advanced-free-shipping
140
+ msgid "Weight calculated on all the cart contents"
141
+ msgstr "Peso calculado usando todo o conteúdo do Carrinho"
142
+
143
+ #: includes/admin/settings/conditions/condition-descriptions.php:18
144
+ #@ woocommerce-advanced-free-shipping
145
+ msgid "Compared to lengthiest product in cart"
146
+ msgstr "Compara o maior comprimento do produto no Carrinho"
147
+
148
+ #: includes/admin/settings/conditions/condition-descriptions.php:19
149
+ #@ woocommerce-advanced-free-shipping
150
+ msgid "Compared to widest product in cart"
151
+ msgstr "Compara a maior largura dos produtos no Carrinho"
152
+
153
+ #: includes/admin/settings/conditions/condition-descriptions.php:20
154
+ #@ woocommerce-advanced-free-shipping
155
+ msgid "Compared to highest product in cart"
156
+ msgstr "Compara a maior altura dos produtos no Carrinho"
157
+
158
+ #: includes/admin/settings/conditions/condition-descriptions.php:21
159
+ #@ woocommerce-advanced-free-shipping
160
+ msgid "All products in cart must match stock status"
161
+ msgstr "Todos os produtos precisam corresponder ao status do estoque"
162
+
163
+ #: includes/admin/settings/conditions/condition-descriptions.php:22
164
+ #@ woocommerce-advanced-free-shipping
165
+ msgid "All products in cart must match category"
166
+ msgstr "Todos os produtos no carrinho precisam corresponder a categoria"
167
+
168
+ #: includes/admin/settings/conditions/condition-descriptions.php:23
169
+ #@ woocommerce-advanced-free-shipping
170
+ msgid "Cart must contain one of this product"
171
+ msgstr "O carrinho precisa conter ao menos um produto"
172
+
173
+ #: includes/admin/settings/conditions/condition-descriptions.php:24
174
+ #@ woocommerce-advanced-free-shipping
175
+ msgid "Cart must contain at least one product with the selected shipping class"
176
+ msgstr "O Carrinho precisa conter ao menos um tipo de frete selecionado"
177
+
178
+ #: includes/admin/settings/conditions/condition-operators.php:18
179
+ #@ woocommerce-advanced-free-shipping
180
+ msgid "Equal to"
181
+ msgstr "Igual a"
182
+
183
+ #: includes/admin/settings/conditions/condition-operators.php:19
184
+ #@ woocommerce-advanced-free-shipping
185
+ msgid "Not equal to"
186
+ msgstr "Diferente de"
187
+
188
+ #: includes/admin/settings/conditions/condition-operators.php:20
189
+ #@ woocommerce-advanced-free-shipping
190
+ msgid "Greater or equal to"
191
+ msgstr "Maior ou igual a"
192
+
193
+ #: includes/admin/settings/conditions/condition-operators.php:21
194
+ #@ woocommerce-advanced-free-shipping
195
+ msgid "Less or equal to "
196
+ msgstr "Menor ou igual a"
197
+
198
+ #: includes/admin/settings/conditions/condition-values.php:76
199
+ #@ woocommerce
200
+ msgid "No shipping class"
201
+ msgstr "Nenhum Tipo de Frete"
202
+
203
+ #: includes/admin/settings/conditions/condition-values.php:169
204
+ #@ woocommerce-advanced-free-shipping
205
+ msgid "In stock"
206
+ msgstr "Em estoque"
207
+
208
+ #: includes/admin/settings/conditions/condition-values.php:170
209
+ #@ woocommerce-advanced-free-shipping
210
+ msgid "Out of stock"
211
+ msgstr "Esgotado"
212
+
213
+ #: includes/admin/settings/conditions/condition-values.php:216
214
+ #@ woocommerce-advanced-free-shipping
215
+ msgid "Select option"
216
+ msgstr "Selecione uma opção"
217
+
218
+ #: includes/admin/settings/conditions/condition-values.php:234
219
+ #@ woocommerce-advanced-free-shipping
220
+ msgid "There are no options available"
221
+ msgstr "Não existe opções disponíveis"
222
+
223
+ #: includes/admin/settings/meta-box-conditions.php:22
224
+ #@ woocommerce-advanced-free-shipping
225
+ msgid "Match all of the following rules to allow free shipping:"
226
+ msgstr "Combine todos as regras para habilitar frete grátis:"
227
+
228
+ #: includes/admin/settings/meta-box-conditions.php:30
229
+ #: includes/class-wafs-ajax.php:62
230
+ #@ woocommerce-advanced-free-shipping
231
+ msgid "Or match all of the following rules to allow free shipping:"
232
+ msgstr "Ou combine todas as regras para habilitar frete grátis:"
233
+
234
+ #: includes/admin/settings/meta-box-conditions.php:40
235
+ #: includes/class-wafs-ajax.php:69
236
+ #@ woocommerce-advanced-free-shipping
237
+ msgid "Or"
238
+ msgstr "Ou"
239
+
240
+ #: includes/admin/settings/meta-box-conditions.php:54
241
+ #@ woocommerce-advanced-free-shipping
242
+ msgid "Add 'Or' group"
243
+ msgstr "Adicionar Grupo 'Ou'"
244
+
245
+ #: includes/admin/settings/meta-box-settings.php:23
246
+ #: includes/admin/views/conditions-table.php:27
247
+ #@ woocommerce-advanced-free-shipping
248
+ msgid "Shipping title"
249
+ msgstr "Título do tipo de Frete"
250
+
251
+ #: includes/admin/settings/meta-box-settings.php:25
252
+ #@ woocommerce-advanced-free-shipping
253
+ msgid "e.g. Free Shipping"
254
+ msgstr "Ex.: Frete Grátis"
255
+
256
+ #: includes/admin/views/conditions-table.php:18
257
+ #@ woocommerce-advanced-free-shipping
258
+ msgid "Method conditions"
259
+ msgstr "Condições do Método"
260
+
261
+ #: includes/admin/views/conditions-table.php:26
262
+ #@ woocommerce-advanced-free-shipping
263
+ msgid "Title"
264
+ msgstr "Título"
265
+
266
+ #: includes/admin/views/conditions-table.php:28
267
+ #@ woocommerce-advanced-free-shipping
268
+ msgid "Condition groups"
269
+ msgstr "Condição do Grupo"
270
+
271
+ #: includes/admin/views/conditions-table.php:41
272
+ #: includes/admin/views/conditions-table.php:47
273
+ #@ woocommerce-advanced-free-shipping
274
+ msgid "Edit Method"
275
+ msgstr "Editar Método"
276
+
277
+ #: includes/admin/views/conditions-table.php:42
278
+ #@ woocommerce-advanced-free-shipping
279
+ msgid "Untitled"
280
+ msgstr "Sem Título"
281
+
282
+ #: includes/admin/views/conditions-table.php:48
283
+ #@ woocommerce-advanced-free-shipping
284
+ msgid "Edit"
285
+ msgstr "Editar"
286
+
287
+ #: includes/admin/views/conditions-table.php:53
288
+ #@ woocommerce-advanced-free-shipping
289
+ msgid "Delete Method"
290
+ msgstr "Deletar Método"
291
+
292
+ #: includes/admin/views/conditions-table.php:54
293
+ #@ woocommerce-advanced-free-shipping
294
+ msgid "Delete"
295
+ msgstr "Deletar"
296
+
297
+ #: includes/admin/views/conditions-table.php:59
298
+ #: includes/class-wafs-method.php:218
299
+ #@ woocommerce-advanced-free-shipping
300
+ msgid "Free Shipping"
301
+ msgstr "Frete Grátis"
302
+
303
+ #: includes/admin/views/conditions-table.php:69
304
+ #@ woocommerce-advanced-free-shipping
305
+ msgid "There are no Free Shipping methods. Yet..."
306
+ msgstr "Não existe método para Frete Grátis. Ainda..."
307
+
308
+ #: includes/admin/views/conditions-table.php:77
309
+ #@ woocommerce-advanced-free-shipping
310
+ msgid "Add Free Shipping Method"
311
+ msgstr "Adicionar Método para Frete Grátis"
312
+
313
+ #: includes/class-wafs-method.php:18
314
+ #@ woocommerce-advanced-free-shipping
315
+ msgid "Free Shipping <small>(may change at user configuration)</small>"
316
+ msgstr "Frete Grátis <small>(podem mudar a configuração do usuário)</small>"
317
+
318
+ #: includes/class-wafs-method.php:19
319
+ #@ woocommerce-advanced-free-shipping
320
+ msgid "Advanced Free Shipping"
321
+ msgstr "Advanced Free Shipping"
322
+
323
+ #: includes/class-wafs-method.php:20
324
+ #@ default
325
+ msgid "Configure WooCommerce Advanced Free Shipping"
326
+ msgstr "Configurar WooCommerce Advanced Free Shipping"
327
+
328
+ #: includes/class-wafs-method.php:141
329
+ #@ woocommerce
330
+ msgid "Enable/Disable"
331
+ msgstr "Habilitar/Desabilitar"
332
+
333
+ #: includes/class-wafs-method.php:143
334
+ #@ woocommerce-advanced-free-shipping
335
+ msgid "Enable Advanced Free Shipping"
336
+ msgstr "Habilitar Advanced Free Shipping"
337
+
338
+ #: includes/class-wafs-method.php:147
339
+ #@ woocommerce-advanced-free-shipping
340
+ msgid "Hide other shipping"
341
+ msgstr "Esconder outros tipos de frete"
342
+
343
+ #: includes/class-wafs-method.php:149
344
+ #@ woocommerce-advanced-free-shipping
345
+ msgid "Hide other shipping methods when free shipping is available"
346
+ msgstr "Esconder outros métodos quando Frete Grátis estiver disponível"
347
+
348
+ #: includes/class-wafs-post-type.php:49
349
+ #@ woocommerce-advanced-free-shipping
350
+ msgid "Advanced Free Shipping methods"
351
+ msgstr "Métodos do Advanced Free Shipping"
352
+
353
+ #: includes/class-wafs-post-type.php:50
354
+ #@ woocommerce-advanced-free-shipping
355
+ msgid "Advanced Free Shipping method"
356
+ msgstr "Método do Advanced Free Shipping"
357
+
358
+ #: includes/class-wafs-post-type.php:51
359
+ #@ woocommerce-advanced-free-shipping
360
+ msgid "Add New"
361
+ msgstr "Adicionar Novo"
362
+
363
+ #: includes/class-wafs-post-type.php:52
364
+ #@ woocommerce-advanced-free-shipping
365
+ msgid "Add New Advanced Free Shipping method"
366
+ msgstr "Adicionar Método do Advanced Free Shipping"
367
+
368
+ #: includes/class-wafs-post-type.php:53
369
+ #@ woocommerce-advanced-free-shipping
370
+ msgid "Edit Advanced Free Shipping method"
371
+ msgstr "Editar Método do Advanced Free Shipping"
372
+
373
+ #: includes/class-wafs-post-type.php:54
374
+ #@ woocommerce-advanced-free-shipping
375
+ msgid "New Advanced Free Shipping method"
376
+ msgstr "Novo Método do Advanced Free Shipping"
377
+
378
+ #: includes/class-wafs-post-type.php:55
379
+ #@ woocommerce-advanced-free-shipping
380
+ msgid "View Advanced Free Shipping method"
381
+ msgstr "Visualizar Método do Advanced Free Shipping"
382
+
383
+ #: includes/class-wafs-post-type.php:56
384
+ #@ woocommerce-advanced-free-shipping
385
+ msgid "Search Advanced Free Shipping methods"
386
+ msgstr "Procurar Método do Advanced Free Shipping"
387
+
388
+ #: includes/class-wafs-post-type.php:57
389
+ #@ woocommerce-advanced-free-shipping
390
+ msgid "No Advanced Free Shipping methods"
391
+ msgstr "Nenhum Método do Advanced Free Shipping"
392
+
393
+ #: includes/class-wafs-post-type.php:58
394
+ #@ woocommerce-advanced-free-shipping
395
+ msgid "No Advanced Free Shipping methods found in Trash"
396
+ msgstr "Nenhum Método do Advanced Free Shipping encontrado na Lixeira"
397
+
398
+ #: includes/class-wafs-post-type.php:95
399
+ #: includes/class-wafs-post-type.php:98
400
+ #@ woocommerce-advanced-free-shipping
401
+ msgid "Free shipping method updated."
402
+ msgstr "Advanced Free Shipping Atualizado"
403
+
404
+ #: includes/class-wafs-post-type.php:96
405
+ #@ woocommerce-advanced-free-shipping
406
+ msgid "Custom field updated."
407
+ msgstr "Campos customizados atualizados."
408
+
409
+ #: includes/class-wafs-post-type.php:97
410
+ #@ woocommerce-advanced-free-shipping
411
+ msgid "Custom field deleted."
412
+ msgstr "Campo customizado deletado."
413
+
414
+ #: includes/class-wafs-post-type.php:100
415
+ #, php-format
416
+ #@ woocommerce-advanced-free-shipping
417
+ msgid "Free shipping method restored to revision from %s"
418
+ msgstr "Médoto de frete grátis restaurado da revisão de %s"
419
+
420
+ #: includes/class-wafs-post-type.php:102
421
+ #@ woocommerce-advanced-free-shipping
422
+ msgid "Free shipping method published."
423
+ msgstr "Método de Frete Grátis publicado."
424
+
425
+ #: includes/class-wafs-post-type.php:103
426
+ #@ woocommerce-advanced-free-shipping
427
+ msgid "Free shipping method saved."
428
+ msgstr "Método de Frete Grátis salvo."
429
+
430
+ #: includes/class-wafs-post-type.php:104
431
+ #@ woocommerce-advanced-free-shipping
432
+ msgid "Free shipping method submitted."
433
+ msgstr "Método de Frete Grátis enviado."
434
+
435
+ #: includes/class-wafs-post-type.php:106
436
+ #, php-format
437
+ #@ woocommerce-advanced-free-shipping
438
+ msgid "Free shipping method scheduled for: <strong>%1$s</strong>."
439
+ msgstr "Método de Frete Grátis agendado para: <strong>%1$s</strong>."
440
+
441
+ #: includes/class-wafs-post-type.php:107
442
+ #@ woocommerce-advanced-free-shipping
443
+ msgid "M j, Y @ G:i"
444
+ msgstr ""
445
+
446
+ #: includes/class-wafs-post-type.php:109
447
+ #@ woocommerce-advanced-free-shipping
448
+ msgid "Free shipping method draft updated."
449
+ msgstr "Esboço do Tipo de Frete Grátis atualizado."
450
+
451
+ #: includes/class-wafs-post-type.php:115
452
+ #@ woocommerce-advanced-free-shipping
453
+ msgid "Return to overview."
454
+ msgstr "Voltar para a tela principal."
455
+
456
+ #: includes/class-wafs-post-type.php:138
457
+ #@ woocommerce-advanced-free-shipping
458
+ msgid "Advanced Free Shipping conditions"
459
+ msgstr "Condições para Advanced Free Shipping"
460
+
461
+ #: includes/class-wafs-post-type.php:139
462
+ #@ woocommerce-advanced-free-shipping
463
+ msgid "Shipping settings"
464
+ msgstr "Configuração de Frete"
465
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.jeroensormani.com/donate/
4
  Tags: woocommerce, shipping, woocommerce shipping, woocommerce free shipping, woocommerce free, woocommerce advanced free shipping, wc free shipping, wc shipping, advanced shipping, pro shipping, table rate shipping, country shipping, free shipping
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
- Stable tag: 1.0.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -13,7 +13,7 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
13
  == Description ==
14
  WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
15
 
16
- *Conditions like:*
17
 
18
  - Cart total
19
  - Country
@@ -28,9 +28,10 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
28
 
29
  **Translations, feature requests, ratings and donations are welcome and appreciated!**
30
 
31
- ** Translations **
32
 
33
  - Spanish [(Andres Felipe)](https://wordpress.org/support/profile/naturalworldstm)
 
34
 
35
  == Installation ==
36
 
@@ -46,6 +47,11 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
46
 
47
  == Changelog ==
48
 
 
 
 
 
 
49
  = 1.0.3 =
50
  * Improvement - Customized user messages when saving shipping method
51
  * Improvement - Updated some comments to comment standards
@@ -62,7 +68,6 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
62
  * Fix - Condition description didn't show sometimes
63
  * Fix - 'Category' - 'Not equal to' error
64
  * Fix - Showing drafts in overview
65
- * Fix - Change option name from ‚hide_other_shipping_when_available’ to ‚’hide_other_shipping
66
  * Removed - Author from overview, who needs that?
67
 
68
 
4
  Tags: woocommerce, shipping, woocommerce shipping, woocommerce free shipping, woocommerce free, woocommerce advanced free shipping, wc free shipping, wc shipping, advanced shipping, pro shipping, table rate shipping, country shipping, free shipping
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
+ Stable tag: 1.0.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
13
  == Description ==
14
  WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
15
 
16
+ **Conditions like:**
17
 
18
  - Cart total
19
  - Country
28
 
29
  **Translations, feature requests, ratings and donations are welcome and appreciated!**
30
 
31
+ **Translations**
32
 
33
  - Spanish [(Andres Felipe)](https://wordpress.org/support/profile/naturalworldstm)
34
+ - Portuguese
35
 
36
  == Installation ==
37
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.0.4 =
51
+ * Fix - Weight condition wasn't working
52
+ * Fix - Cash On Delivery for WAFS
53
+ * Added - Added languages files for Portuguese - Brazil pt_BR
54
+
55
  = 1.0.3 =
56
  * Improvement - Customized user messages when saving shipping method
57
  * Improvement - Updated some comments to comment standards
68
  * Fix - Condition description didn't show sometimes
69
  * Fix - 'Category' - 'Not equal to' error
70
  * Fix - Showing drafts in overview
 
71
  * Removed - Author from overview, who needs that?
72
 
73
 
woocommerce-advanced-free-shipping.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Woocommerce Advanced Free Shipping
4
  Plugin URI: http://www.jeroensormani.com/
5
  Donate link: http://www.jeroensormani.com/donate/
6
  Description: WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
7
- Version: 1.0.3
8
  Author: Jeroen Sormani
9
  Author URI: http://www.jeroensormani.com/
10
  Text Domain: woocommerce-advanced-free-shipping
@@ -45,10 +45,10 @@ class WooCommerce_Advanced_Free_Shipping {
45
  /**
46
  * Version.
47
  *
48
- * @since 1.0.3
49
  * @var string $version Plugin version number.
50
  */
51
- public $version = '1.0.3';
52
 
53
 
54
  /**
@@ -78,10 +78,6 @@ class WooCommerce_Advanced_Free_Shipping {
78
  endif;
79
  endif;
80
 
81
- // Check if there needs to be any functional updates
82
- $this->update();
83
-
84
- // Initialize plugin parts
85
  $this->init();
86
 
87
  }
@@ -108,32 +104,6 @@ class WooCommerce_Advanced_Free_Shipping {
108
  }
109
 
110
 
111
- public function update() {
112
-
113
- $db_version = get_option( 'wafs_plugin_version', '1.0.0' );
114
-
115
- // Stop current version is up to date
116
- if ( $db_version >= $this->version ) :
117
- return;
118
- endif;
119
-
120
- // Update functions for 1.0.3
121
- if ( version_compare( '1.0.3', $db_version ) ) :
122
-
123
- $wafs_method_settings = get_option( 'woocommerce_advanced_free_shipping_settings' );
124
- if ( isset( $wafs_method_settings['hide_other_shipping_when_available'] ) ) :
125
- $wafs_method_settings['hide_other_shipping'] = $wafs_method_settings['hide_other_shipping_when_available'];
126
- update_option( 'woocommerce_advanced_free_shipping_settings', $wafs_method_settings );
127
- endif;
128
-
129
- endif;
130
-
131
- update_option( 'wafs_plugin_version', $this->version );
132
-
133
-
134
- }
135
-
136
-
137
  /**
138
  * Init.
139
  *
4
  Plugin URI: http://www.jeroensormani.com/
5
  Donate link: http://www.jeroensormani.com/donate/
6
  Description: WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
7
+ Version: 1.0.4
8
  Author: Jeroen Sormani
9
  Author URI: http://www.jeroensormani.com/
10
  Text Domain: woocommerce-advanced-free-shipping
45
  /**
46
  * Version.
47
  *
48
+ * @since 1.0.4
49
  * @var string $version Plugin version number.
50
  */
51
+ public $version = '1.0.4';
52
 
53
 
54
  /**
78
  endif;
79
  endif;
80
 
 
 
 
 
81
  $this->init();
82
 
83
  }
104
  }
105
 
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  /**
108
  * Init.
109
  *