Version Description
2017/05/12 =
Modificada a posio de todos os campos do formulrio para funcionar melhor com temas que ainda no so totalmente compatveis com o WooCommerce 3.0.
Download this release
Release Info
| Developer | claudiosanches |
| Plugin | |
| Version | 3.6.0 |
| Comparing to | |
| See all releases | |
Code changes from version 3.5.1 to 3.6.0
- assets/js/frontend/frontend.js +5 -0
- assets/js/frontend/frontend.min.js +1 -1
- includes/admin/views/html-admin-help-message.php +1 -1
- includes/class-extra-checkout-fields-for-brazil-front-end.php +26 -28
- languages/woocommerce-extra-checkout-fields-for-brazil.pot +33 -38
- readme.txt +10 -6
- woocommerce-extra-checkout-fields-for-brazil.php +2 -2
assets/js/frontend/frontend.js
CHANGED
|
@@ -52,6 +52,11 @@ jQuery( function( $ ) {
|
|
| 52 |
this.addressAutoComplete( 'shipping' );
|
| 53 |
this.addressAutoCompleteOnChange( 'shipping' );
|
| 54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
},
|
| 56 |
|
| 57 |
/**
|
| 52 |
this.addressAutoComplete( 'shipping' );
|
| 53 |
this.addressAutoCompleteOnChange( 'shipping' );
|
| 54 |
}
|
| 55 |
+
|
| 56 |
+
// Check if select2 exists.
|
| 57 |
+
if ( $().select2 ) {
|
| 58 |
+
$( '.wc-ecfb-select' ).select2();
|
| 59 |
+
}
|
| 60 |
},
|
| 61 |
|
| 62 |
/**
|
assets/js/frontend/frontend.min.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
jQuery(function(a){var b={init:function(){"0"===wcbcf_public_params.sort_state_country&&a(document.body).on("country_to_state_changing",this.country_to_state_changing),"0"!==wcbcf_public_params.person_type&&this.person_type_fields(),"yes"===wcbcf_public_params.maskedinput&&(a(document.body).on("change","#billing_country",function(){"BR"===a(this).val()?b.maskBilling():b.unmaskBilling()}),a(document.body).on("change","#shipping_country",function(){"BR"===a(this).val()?b.maskShipping():b.unmaskShipping()}),this.maskGeneral()),"yes"===wcbcf_public_params.mailcheck&&this.emailCheck(),"yes"===wcbcf_public_params.addresscomplete&&(this.addressAutoComplete("billing"),this.addressAutoCompleteOnChange("billing"),this.addressAutoComplete("shipping"),this.addressAutoCompleteOnChange("shipping"))},country_to_state_changing:function(){a("#billing_state_field label").html(wcbcf_public_params.state+' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>'),a("#billing_postcode_field").insertAfter("#billing_country_field"),a("#shipping_state_field").length&&(a("#shipping_state_field label").html(wcbcf_public_params.state+' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>'),a("#shipping_postcode_field").insertAfter("#shipping_country_field"))},person_type_fields:function(){"no"===wcbcf_public_params.only_brazil?(a(".person-type-field").addClass("validate-required"),a(".person-type-field label").append(' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>')):a("#billing_country").on("change",function(){"BR"===a(this).val()?(a(".person-type-field").addClass("validate-required"),a(".person-type-field label").append(' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>')):(a(".person-type-field").removeClass("validate-required"),a(".person-type-field label abbr").remove())}).change(),"1"===wcbcf_public_params.person_type&&a("#billing_persontype").on("change",function(){var b=a(this).val();a("#billing_cpf_field").hide(),a("#billing_rg_field").hide(),a("#billing_company_field").hide(),a("#billing_cnpj_field").hide(),a("#billing_ie_field").hide(),"1"===b&&(a("#billing_cpf_field").show(),a("#billing_rg_field").show()),"2"===b&&(a("#billing_company_field").show(),a("#billing_cnpj_field").show(),a("#billing_ie_field").show())}).change()},maskBilling:function(){b.maskPhone("#billing_phone, #billing_cellphone"),a("#billing_birthdate").mask("00/00/0000"),a("#billing_postcode").mask("00000-000"),a("#billing_phone, #billing_cellphone, #billing_birthdate, #billing_postcode").attr("type","tel")},unmaskBilling:function(){a("#billing_phone, #billing_cellphone, #billing_birthdate, #billing_postcode").unmask().attr("type","text")},maskShipping:function(){a("#shipping_postcode").mask("00000-000").attr("type","tel")},unmaskShipping:function(){a("#shipping_postcode").unmask().attr("type","text")},maskGeneral:function(){a("#billing_cpf, #credit-card-cpf").mask("000.000.000-00"),a("#billing_cnpj").mask("00.000.000/0000-00"),b.maskPhone("#credit-card-phone")},maskPhone:function(b){var c=a(b),d=function(a){return 11===a.replace(/\D/g,"").length?"(00) 00000-0000":"(00) 0000-00009"},e={onKeyPress:function(a,b,c,e){c.mask(d.apply({},arguments),e)}};c.mask(d,e)},emailCheck:function(){a("#wcbcf-mailsuggest").length<1&&a("#billing_email").after('<div id="wcbcf-mailsuggest"></div>'),a("#billing_email").on("blur",function(){a("#wcbcf-mailsuggest").html(""),a(this).mailcheck({suggested:function(b,c){a("#wcbcf-mailsuggest").html("Você quis dizer: "+c.full+"?")}})}),a("#wcbcf-mailsuggest").css({color:"#c00",fontSize:"small"})},addressAutoComplete:function(b){if(a("#"+b+"_postcode").length){var c=a("#"+b+"_postcode").val().replace(".","").replace("-",""),d=a("#"+b+"_country").val(),e=a("#"+b+"_address_1").val();""!==c&&8===c.length&&"BR"===d&&0===e.length&&a.ajax({type:"GET",url:"//correiosapi.apphb.com/cep/"+c,dataType:"jsonp",crossDomain:!0,contentType:"application/json",success:function(c){""!==c.tipoDeLogradouro?a("#"+b+"_address_1").val(c.tipoDeLogradouro+" "+c.logradouro).change():a("#"+b+"_address_1").val(c.logradouro).change(),a("#"+b+"_neighborhood").val(c.bairro).change(),a("#"+b+"_city").val(c.cidade).change(),a("#"+b+"_state option:selected").attr("selected",!1).change(),a("#"+b+'_state option[value="'+c.estado+'"]').attr("selected","selected").change(),a("#"+b+"_state").trigger("liszt:updated").trigger("chosen:updated")}})}},addressAutoCompleteOnChange:function(c){a(document.body).on("blur","#"+c+"_postcode",function(){b.addressAutoComplete(c)})}};b.init()});
|
| 1 |
+
jQuery(function(a){var b={init:function(){"0"===wcbcf_public_params.sort_state_country&&a(document.body).on("country_to_state_changing",this.country_to_state_changing),"0"!==wcbcf_public_params.person_type&&this.person_type_fields(),"yes"===wcbcf_public_params.maskedinput&&(a(document.body).on("change","#billing_country",function(){"BR"===a(this).val()?b.maskBilling():b.unmaskBilling()}),a(document.body).on("change","#shipping_country",function(){"BR"===a(this).val()?b.maskShipping():b.unmaskShipping()}),this.maskGeneral()),"yes"===wcbcf_public_params.mailcheck&&this.emailCheck(),"yes"===wcbcf_public_params.addresscomplete&&(this.addressAutoComplete("billing"),this.addressAutoCompleteOnChange("billing"),this.addressAutoComplete("shipping"),this.addressAutoCompleteOnChange("shipping")),a().select2&&a(".wc-ecfb-select").select2()},country_to_state_changing:function(){a("#billing_state_field label").html(wcbcf_public_params.state+' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>'),a("#billing_postcode_field").insertAfter("#billing_country_field"),a("#shipping_state_field").length&&(a("#shipping_state_field label").html(wcbcf_public_params.state+' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>'),a("#shipping_postcode_field").insertAfter("#shipping_country_field"))},person_type_fields:function(){"no"===wcbcf_public_params.only_brazil?(a(".person-type-field").addClass("validate-required"),a(".person-type-field label").append(' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>')):a("#billing_country").on("change",function(){"BR"===a(this).val()?(a(".person-type-field").addClass("validate-required"),a(".person-type-field label").append(' <abbr class="required" title="'+wcbcf_public_params.required+'">*</abbr>')):(a(".person-type-field").removeClass("validate-required"),a(".person-type-field label abbr").remove())}).change(),"1"===wcbcf_public_params.person_type&&a("#billing_persontype").on("change",function(){var b=a(this).val();a("#billing_cpf_field").hide(),a("#billing_rg_field").hide(),a("#billing_company_field").hide(),a("#billing_cnpj_field").hide(),a("#billing_ie_field").hide(),"1"===b&&(a("#billing_cpf_field").show(),a("#billing_rg_field").show()),"2"===b&&(a("#billing_company_field").show(),a("#billing_cnpj_field").show(),a("#billing_ie_field").show())}).change()},maskBilling:function(){b.maskPhone("#billing_phone, #billing_cellphone"),a("#billing_birthdate").mask("00/00/0000"),a("#billing_postcode").mask("00000-000"),a("#billing_phone, #billing_cellphone, #billing_birthdate, #billing_postcode").attr("type","tel")},unmaskBilling:function(){a("#billing_phone, #billing_cellphone, #billing_birthdate, #billing_postcode").unmask().attr("type","text")},maskShipping:function(){a("#shipping_postcode").mask("00000-000").attr("type","tel")},unmaskShipping:function(){a("#shipping_postcode").unmask().attr("type","text")},maskGeneral:function(){a("#billing_cpf, #credit-card-cpf").mask("000.000.000-00"),a("#billing_cnpj").mask("00.000.000/0000-00"),b.maskPhone("#credit-card-phone")},maskPhone:function(b){var c=a(b),d=function(a){return 11===a.replace(/\D/g,"").length?"(00) 00000-0000":"(00) 0000-00009"},e={onKeyPress:function(a,b,c,e){c.mask(d.apply({},arguments),e)}};c.mask(d,e)},emailCheck:function(){a("#wcbcf-mailsuggest").length<1&&a("#billing_email").after('<div id="wcbcf-mailsuggest"></div>'),a("#billing_email").on("blur",function(){a("#wcbcf-mailsuggest").html(""),a(this).mailcheck({suggested:function(b,c){a("#wcbcf-mailsuggest").html("Você quis dizer: "+c.full+"?")}})}),a("#wcbcf-mailsuggest").css({color:"#c00",fontSize:"small"})},addressAutoComplete:function(b){if(a("#"+b+"_postcode").length){var c=a("#"+b+"_postcode").val().replace(".","").replace("-",""),d=a("#"+b+"_country").val(),e=a("#"+b+"_address_1").val();""!==c&&8===c.length&&"BR"===d&&0===e.length&&a.ajax({type:"GET",url:"//correiosapi.apphb.com/cep/"+c,dataType:"jsonp",crossDomain:!0,contentType:"application/json",success:function(c){""!==c.tipoDeLogradouro?a("#"+b+"_address_1").val(c.tipoDeLogradouro+" "+c.logradouro).change():a("#"+b+"_address_1").val(c.logradouro).change(),a("#"+b+"_neighborhood").val(c.bairro).change(),a("#"+b+"_city").val(c.cidade).change(),a("#"+b+"_state option:selected").attr("selected",!1).change(),a("#"+b+'_state option[value="'+c.estado+'"]').attr("selected","selected").change(),a("#"+b+"_state").trigger("liszt:updated").trigger("chosen:updated")}})}},addressAutoCompleteOnChange:function(c){a(document.body).on("blur","#"+c+"_postcode",function(){b.addressAutoComplete(c)})}};b.init()});
|
includes/admin/views/html-admin-help-message.php
CHANGED
|
@@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 11 |
|
| 12 |
if ( apply_filters( 'wcbcf_help_message', true ) ) : ?>
|
| 13 |
<div class="updated woocommerce-message inline">
|
| 14 |
-
<p><?php echo esc_html( sprintf( __( 'Help us keep the %s plugin free making a donation or rate ★★★★★ on WordPress.org. Thank you in advance!', 'woocommerce-extra-checkout-fields-for-brazil' ), __( 'WooCommerce
|
| 15 |
<p><a href="https://claudiosanches.com/doacoes/" target="_blank" class="button button-primary"><?php esc_html_e( 'Make a donation', 'woocommerce-extra-checkout-fields-for-brazil' ); ?></a> <a href="https://wordpress.org/support/plugin/woocommerce-extra-checkout-fields-for-brazil/reviews/?filter=5#new-post" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'woocommerce-extra-checkout-fields-for-brazil' ); ?></a></p>
|
| 16 |
</div>
|
| 17 |
<?php endif;
|
| 11 |
|
| 12 |
if ( apply_filters( 'wcbcf_help_message', true ) ) : ?>
|
| 13 |
<div class="updated woocommerce-message inline">
|
| 14 |
+
<p><?php echo esc_html( sprintf( __( 'Help us keep the %s plugin free making a donation or rate ★★★★★ on WordPress.org. Thank you in advance!', 'woocommerce-extra-checkout-fields-for-brazil' ), __( 'WooCommerce Extra Checkout Fields for Brazil', 'woocommerce-extra-checkout-fields-for-brazil' ) ) ); ?></p>
|
| 15 |
<p><a href="https://claudiosanches.com/doacoes/" target="_blank" class="button button-primary"><?php esc_html_e( 'Make a donation', 'woocommerce-extra-checkout-fields-for-brazil' ); ?></a> <a href="https://wordpress.org/support/plugin/woocommerce-extra-checkout-fields-for-brazil/reviews/?filter=5#new-post" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'woocommerce-extra-checkout-fields-for-brazil' ); ?></a></p>
|
| 16 |
</div>
|
| 17 |
<?php endif;
|
includes/class-extra-checkout-fields-for-brazil-front-end.php
CHANGED
|
@@ -106,16 +106,16 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 106 |
if ( 0 !== $person_type ) {
|
| 107 |
if ( 1 === $person_type ) {
|
| 108 |
$new_fields['billing_persontype'] = array(
|
| 109 |
-
'type'
|
| 110 |
-
'label'
|
| 111 |
-
'class'
|
| 112 |
-
'
|
| 113 |
-
'
|
| 114 |
-
|
| 115 |
'1' => __( 'Individuals', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 116 |
'2' => __( 'Legal Person', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 117 |
),
|
| 118 |
-
'priority'
|
| 119 |
);
|
| 120 |
}
|
| 121 |
|
|
@@ -208,6 +208,7 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 208 |
'type' => 'select',
|
| 209 |
'label' => __( 'Sex', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 210 |
'class' => array( 'form-row-last' ),
|
|
|
|
| 211 |
'clear' => true,
|
| 212 |
'required' => true,
|
| 213 |
'options' => array(
|
|
@@ -221,24 +222,24 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 221 |
|
| 222 |
if ( isset( $fields['billing_country'] ) ) {
|
| 223 |
$new_fields['billing_country'] = $fields['billing_country'];
|
| 224 |
-
$new_fields['billing_country']['class'] = array( 'form-row-
|
| 225 |
}
|
| 226 |
|
| 227 |
if ( isset( $fields['billing_postcode'] ) ) {
|
| 228 |
$new_fields['billing_postcode'] = $fields['billing_postcode'];
|
| 229 |
-
$new_fields['billing_postcode']['class'] = array( 'form-row-
|
| 230 |
$new_fields['billing_postcode']['priority'] = 45;
|
| 231 |
}
|
| 232 |
|
| 233 |
if ( isset( $fields['billing_address_1'] ) ) {
|
| 234 |
$new_fields['billing_address_1'] = $fields['billing_address_1'];
|
| 235 |
-
$new_fields['billing_address_1']['class'] = array( 'form-row-
|
| 236 |
}
|
| 237 |
|
| 238 |
$new_fields['billing_number'] = array(
|
| 239 |
'label' => __( 'Number', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 240 |
'placeholder' => _x( 'Number', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 241 |
-
'class' => array( 'form-row-
|
| 242 |
'clear' => true,
|
| 243 |
'required' => true,
|
| 244 |
'priority' => 55,
|
|
@@ -247,31 +248,29 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 247 |
if ( isset( $fields['billing_address_2'] ) ) {
|
| 248 |
$new_fields['billing_address_2'] = $fields['billing_address_2'];
|
| 249 |
$new_fields['billing_address_2']['label'] = __( 'Address line 2', 'woocommerce-extra-checkout-fields-for-brazil' );
|
| 250 |
-
$new_fields['billing_address_2']['class'] = array( 'form-row-
|
| 251 |
}
|
| 252 |
|
| 253 |
-
// Billing Neighborhood.
|
| 254 |
$new_fields['billing_neighborhood'] = array(
|
| 255 |
'label' => __( 'Neighborhood', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 256 |
'placeholder' => _x( 'Neighborhood', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 257 |
-
'class' => array( 'form-row-
|
| 258 |
'clear' => true,
|
| 259 |
'priority' => 65,
|
| 260 |
);
|
| 261 |
|
| 262 |
if ( isset( $fields['billing_city'] ) ) {
|
| 263 |
$new_fields['billing_city'] = $fields['billing_city'];
|
| 264 |
-
$new_fields['billing_city']['class'] = array( 'form-row-
|
| 265 |
}
|
| 266 |
|
| 267 |
if ( isset( $fields['billing_state'] ) ) {
|
| 268 |
$new_fields['billing_state'] = $fields['billing_state'];
|
| 269 |
-
$new_fields['billing_state']['class'] = array( 'form-row-
|
| 270 |
$new_fields['billing_state']['clear'] = true;
|
| 271 |
}
|
| 272 |
|
| 273 |
if ( isset( $settings['cell_phone'] ) ) {
|
| 274 |
-
|
| 275 |
if ( isset( $fields['billing_phone'] ) ) {
|
| 276 |
$new_fields['billing_phone'] = $fields['billing_phone'];
|
| 277 |
$new_fields['billing_phone']['class'] = array( 'form-row-first' );
|
|
@@ -295,8 +294,8 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 295 |
} else {
|
| 296 |
if ( isset( $fields['billing_phone'] ) ) {
|
| 297 |
$new_fields['billing_phone'] = $fields['billing_phone'];
|
| 298 |
-
$new_fields['
|
| 299 |
-
$new_fields['
|
| 300 |
}
|
| 301 |
|
| 302 |
if ( isset( $fields['billing_email'] ) ) {
|
|
@@ -338,24 +337,24 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 338 |
|
| 339 |
if ( isset( $fields['shipping_country'] ) ) {
|
| 340 |
$new_fields['shipping_country'] = $fields['shipping_country'];
|
| 341 |
-
$new_fields['shipping_country']['class'] = array( 'form-row-
|
| 342 |
}
|
| 343 |
|
| 344 |
if ( isset( $fields['shipping_postcode'] ) ) {
|
| 345 |
$new_fields['shipping_postcode'] = $fields['shipping_postcode'];
|
| 346 |
-
$new_fields['shipping_postcode']['class'] = array( 'form-row-
|
| 347 |
$new_fields['shipping_postcode']['priority'] = 45;
|
| 348 |
}
|
| 349 |
|
| 350 |
if ( isset( $fields['shipping_address_1'] ) ) {
|
| 351 |
$new_fields['shipping_address_1'] = $fields['shipping_address_1'];
|
| 352 |
-
$new_fields['shipping_address_1']['class'] = array( 'form-row-
|
| 353 |
}
|
| 354 |
|
| 355 |
$new_fields['shipping_number'] = array(
|
| 356 |
'label' => __( 'Number', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 357 |
'placeholder' => _x( 'Number', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 358 |
-
'class' => array( 'form-row-
|
| 359 |
'clear' => true,
|
| 360 |
'required' => true,
|
| 361 |
'priority' => 55,
|
|
@@ -364,25 +363,24 @@ class Extra_Checkout_Fields_For_Brazil_Front_End {
|
|
| 364 |
if ( isset( $fields['shipping_address_2'] ) ) {
|
| 365 |
$new_fields['shipping_address_2'] = $fields['shipping_address_2'];
|
| 366 |
$new_fields['shipping_address_2']['label'] = __( 'Address line 2', 'woocommerce-extra-checkout-fields-for-brazil' );
|
| 367 |
-
$new_fields['shipping_address_2']['class'] = array( 'form-row-
|
| 368 |
}
|
| 369 |
|
| 370 |
-
// Billing Neighborhood.
|
| 371 |
$new_fields['shipping_neighborhood'] = array(
|
| 372 |
'label' => __( 'Neighborhood', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 373 |
'placeholder' => _x( 'Neighborhood', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 374 |
-
'class' => array( 'form-row-
|
| 375 |
'clear' => true,
|
| 376 |
);
|
| 377 |
|
| 378 |
if ( isset( $fields['shipping_city'] ) ) {
|
| 379 |
$new_fields['shipping_city'] = $fields['shipping_city'];
|
| 380 |
-
$new_fields['shipping_city']['class'] = array( 'form-row-
|
| 381 |
}
|
| 382 |
|
| 383 |
if ( isset( $fields['shipping_state'] ) ) {
|
| 384 |
$new_fields['shipping_state'] = $fields['shipping_state'];
|
| 385 |
-
$new_fields['shipping_state']['class'] = array( 'form-row-
|
| 386 |
$new_fields['shipping_state']['clear'] = true;
|
| 387 |
}
|
| 388 |
|
| 106 |
if ( 0 !== $person_type ) {
|
| 107 |
if ( 1 === $person_type ) {
|
| 108 |
$new_fields['billing_persontype'] = array(
|
| 109 |
+
'type' => 'select',
|
| 110 |
+
'label' => __( 'Person type', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 111 |
+
'class' => array( 'form-row-wide', 'person-type-field' ),
|
| 112 |
+
'input_class' => array( 'wc-ecfb-select' ),
|
| 113 |
+
'required' => false,
|
| 114 |
+
'options' => array(
|
| 115 |
'1' => __( 'Individuals', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 116 |
'2' => __( 'Legal Person', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 117 |
),
|
| 118 |
+
'priority' => 22,
|
| 119 |
);
|
| 120 |
}
|
| 121 |
|
| 208 |
'type' => 'select',
|
| 209 |
'label' => __( 'Sex', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 210 |
'class' => array( 'form-row-last' ),
|
| 211 |
+
'input_class' => array( 'wc-ecfb-select' ),
|
| 212 |
'clear' => true,
|
| 213 |
'required' => true,
|
| 214 |
'options' => array(
|
| 222 |
|
| 223 |
if ( isset( $fields['billing_country'] ) ) {
|
| 224 |
$new_fields['billing_country'] = $fields['billing_country'];
|
| 225 |
+
$new_fields['billing_country']['class'] = array( 'form-row-wide', 'address-field', 'update_totals_on_change' );
|
| 226 |
}
|
| 227 |
|
| 228 |
if ( isset( $fields['billing_postcode'] ) ) {
|
| 229 |
$new_fields['billing_postcode'] = $fields['billing_postcode'];
|
| 230 |
+
$new_fields['billing_postcode']['class'] = array( 'form-row-first', 'address-field' );
|
| 231 |
$new_fields['billing_postcode']['priority'] = 45;
|
| 232 |
}
|
| 233 |
|
| 234 |
if ( isset( $fields['billing_address_1'] ) ) {
|
| 235 |
$new_fields['billing_address_1'] = $fields['billing_address_1'];
|
| 236 |
+
$new_fields['billing_address_1']['class'] = array( 'form-row-last', 'address-field' );
|
| 237 |
}
|
| 238 |
|
| 239 |
$new_fields['billing_number'] = array(
|
| 240 |
'label' => __( 'Number', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 241 |
'placeholder' => _x( 'Number', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 242 |
+
'class' => array( 'form-row-first', 'address-field' ),
|
| 243 |
'clear' => true,
|
| 244 |
'required' => true,
|
| 245 |
'priority' => 55,
|
| 248 |
if ( isset( $fields['billing_address_2'] ) ) {
|
| 249 |
$new_fields['billing_address_2'] = $fields['billing_address_2'];
|
| 250 |
$new_fields['billing_address_2']['label'] = __( 'Address line 2', 'woocommerce-extra-checkout-fields-for-brazil' );
|
| 251 |
+
$new_fields['billing_address_2']['class'] = array( 'form-row-last', 'address-field' );
|
| 252 |
}
|
| 253 |
|
|
|
|
| 254 |
$new_fields['billing_neighborhood'] = array(
|
| 255 |
'label' => __( 'Neighborhood', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 256 |
'placeholder' => _x( 'Neighborhood', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 257 |
+
'class' => array( 'form-row-first', 'address-field' ),
|
| 258 |
'clear' => true,
|
| 259 |
'priority' => 65,
|
| 260 |
);
|
| 261 |
|
| 262 |
if ( isset( $fields['billing_city'] ) ) {
|
| 263 |
$new_fields['billing_city'] = $fields['billing_city'];
|
| 264 |
+
$new_fields['billing_city']['class'] = array( 'form-row-last', 'address-field' );
|
| 265 |
}
|
| 266 |
|
| 267 |
if ( isset( $fields['billing_state'] ) ) {
|
| 268 |
$new_fields['billing_state'] = $fields['billing_state'];
|
| 269 |
+
$new_fields['billing_state']['class'] = array( 'form-row-wide', 'address-field' );
|
| 270 |
$new_fields['billing_state']['clear'] = true;
|
| 271 |
}
|
| 272 |
|
| 273 |
if ( isset( $settings['cell_phone'] ) ) {
|
|
|
|
| 274 |
if ( isset( $fields['billing_phone'] ) ) {
|
| 275 |
$new_fields['billing_phone'] = $fields['billing_phone'];
|
| 276 |
$new_fields['billing_phone']['class'] = array( 'form-row-first' );
|
| 294 |
} else {
|
| 295 |
if ( isset( $fields['billing_phone'] ) ) {
|
| 296 |
$new_fields['billing_phone'] = $fields['billing_phone'];
|
| 297 |
+
$new_fields['billing_phone']['class'] = array( 'form-row-wide' );
|
| 298 |
+
$new_fields['billing_phone']['clear'] = true;
|
| 299 |
}
|
| 300 |
|
| 301 |
if ( isset( $fields['billing_email'] ) ) {
|
| 337 |
|
| 338 |
if ( isset( $fields['shipping_country'] ) ) {
|
| 339 |
$new_fields['shipping_country'] = $fields['shipping_country'];
|
| 340 |
+
$new_fields['shipping_country']['class'] = array( 'form-row-wide', 'address-field', 'update_totals_on_change' );
|
| 341 |
}
|
| 342 |
|
| 343 |
if ( isset( $fields['shipping_postcode'] ) ) {
|
| 344 |
$new_fields['shipping_postcode'] = $fields['shipping_postcode'];
|
| 345 |
+
$new_fields['shipping_postcode']['class'] = array( 'form-row-first', 'address-field' );
|
| 346 |
$new_fields['shipping_postcode']['priority'] = 45;
|
| 347 |
}
|
| 348 |
|
| 349 |
if ( isset( $fields['shipping_address_1'] ) ) {
|
| 350 |
$new_fields['shipping_address_1'] = $fields['shipping_address_1'];
|
| 351 |
+
$new_fields['shipping_address_1']['class'] = array( 'form-row-last', 'address-field' );
|
| 352 |
}
|
| 353 |
|
| 354 |
$new_fields['shipping_number'] = array(
|
| 355 |
'label' => __( 'Number', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 356 |
'placeholder' => _x( 'Number', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 357 |
+
'class' => array( 'form-row-first', 'address-field' ),
|
| 358 |
'clear' => true,
|
| 359 |
'required' => true,
|
| 360 |
'priority' => 55,
|
| 363 |
if ( isset( $fields['shipping_address_2'] ) ) {
|
| 364 |
$new_fields['shipping_address_2'] = $fields['shipping_address_2'];
|
| 365 |
$new_fields['shipping_address_2']['label'] = __( 'Address line 2', 'woocommerce-extra-checkout-fields-for-brazil' );
|
| 366 |
+
$new_fields['shipping_address_2']['class'] = array( 'form-row-last', 'address-field' );
|
| 367 |
}
|
| 368 |
|
|
|
|
| 369 |
$new_fields['shipping_neighborhood'] = array(
|
| 370 |
'label' => __( 'Neighborhood', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 371 |
'placeholder' => _x( 'Neighborhood', 'placeholder', 'woocommerce-extra-checkout-fields-for-brazil' ),
|
| 372 |
+
'class' => array( 'form-row-first', 'address-field' ),
|
| 373 |
'clear' => true,
|
| 374 |
);
|
| 375 |
|
| 376 |
if ( isset( $fields['shipping_city'] ) ) {
|
| 377 |
$new_fields['shipping_city'] = $fields['shipping_city'];
|
| 378 |
+
$new_fields['shipping_city']['class'] = array( 'form-row-last', 'address-field' );
|
| 379 |
}
|
| 380 |
|
| 381 |
if ( isset( $fields['shipping_state'] ) ) {
|
| 382 |
$new_fields['shipping_state'] = $fields['shipping_state'];
|
| 383 |
+
$new_fields['shipping_state']['class'] = array( 'form-row-wide', 'address-field' );
|
| 384 |
$new_fields['shipping_state']['clear'] = true;
|
| 385 |
}
|
| 386 |
|
languages/woocommerce-extra-checkout-fields-for-brazil.pot
CHANGED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
# This file is distributed under the GPLv2 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Extra Checkout Fields for Brazil 3.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-extra-checkout-fields-for-"
|
| 8 |
"brazil\n"
|
| 9 |
-
"POT-Creation-Date: 2017-
|
| 10 |
"MIME-Version: 1.0\n"
|
| 11 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 12 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -33,8 +33,8 @@ msgstr ""
|
|
| 33 |
#: includes/admin/views/html-order-billing-data.php:22
|
| 34 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:125
|
| 35 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:142
|
| 36 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 37 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 38 |
msgid "CPF"
|
| 39 |
msgstr ""
|
| 40 |
|
|
@@ -43,7 +43,7 @@ msgstr ""
|
|
| 43 |
#: includes/admin/views/html-legacy-order-billing-data.php:24
|
| 44 |
#: includes/admin/views/html-order-billing-data.php:24
|
| 45 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:134
|
| 46 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 47 |
msgid "RG"
|
| 48 |
msgstr ""
|
| 49 |
|
|
@@ -53,8 +53,8 @@ msgstr ""
|
|
| 53 |
#: includes/admin/views/html-order-billing-data.php:30
|
| 54 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:163
|
| 55 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:180
|
| 56 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 57 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 58 |
msgid "CNPJ"
|
| 59 |
msgstr ""
|
| 60 |
|
|
@@ -63,7 +63,7 @@ msgstr ""
|
|
| 63 |
#: includes/admin/views/html-legacy-order-billing-data.php:33
|
| 64 |
#: includes/admin/views/html-order-billing-data.php:33
|
| 65 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:172
|
| 66 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 67 |
msgid "State Registration"
|
| 68 |
msgstr ""
|
| 69 |
|
|
@@ -87,8 +87,8 @@ msgstr ""
|
|
| 87 |
#: includes/admin/class-extra-checkout-fields-for-brazil-customer.php:120
|
| 88 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:113
|
| 89 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:154
|
| 90 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 91 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 92 |
msgid "Number"
|
| 93 |
msgstr ""
|
| 94 |
|
|
@@ -97,7 +97,7 @@ msgstr ""
|
|
| 97 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:118
|
| 98 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:159
|
| 99 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:255
|
| 100 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 101 |
msgid "Neighborhood"
|
| 102 |
msgstr ""
|
| 103 |
|
|
@@ -105,7 +105,7 @@ msgstr ""
|
|
| 105 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:130
|
| 106 |
#: includes/admin/views/html-legacy-order-billing-data.php:48
|
| 107 |
#: includes/admin/views/html-order-billing-data.php:48
|
| 108 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 109 |
msgid "Cell Phone"
|
| 110 |
msgstr ""
|
| 111 |
|
|
@@ -115,13 +115,12 @@ msgstr ""
|
|
| 115 |
|
| 116 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:54
|
| 117 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:110
|
| 118 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 119 |
msgid "Person type"
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:57
|
| 123 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 124 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:214
|
| 125 |
msgid "Select"
|
| 126 |
msgstr ""
|
| 127 |
|
|
@@ -144,7 +143,7 @@ msgstr ""
|
|
| 144 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:95
|
| 145 |
#: includes/admin/views/html-legacy-order-billing-data.php:37
|
| 146 |
#: includes/admin/views/html-order-billing-data.php:37
|
| 147 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 148 |
msgid "Company"
|
| 149 |
msgstr ""
|
| 150 |
|
|
@@ -279,8 +278,8 @@ msgid ""
|
|
| 279 |
"★★★★★ on WordPress.org. Thank you in advance!"
|
| 280 |
msgstr ""
|
| 281 |
|
| 282 |
-
|
| 283 |
-
msgid "WooCommerce
|
| 284 |
msgstr ""
|
| 285 |
|
| 286 |
#: includes/admin/views/html-admin-help-message.php:15
|
|
@@ -356,30 +355,30 @@ msgstr ""
|
|
| 356 |
msgid "required"
|
| 357 |
msgstr ""
|
| 358 |
|
| 359 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 360 |
msgid "Female"
|
| 361 |
msgstr ""
|
| 362 |
|
| 363 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 364 |
msgid "Male"
|
| 365 |
msgstr ""
|
| 366 |
|
| 367 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 368 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 369 |
msgid "Address line 2"
|
| 370 |
msgstr ""
|
| 371 |
|
| 372 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 373 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 374 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 375 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 376 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 377 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 378 |
msgid "is a required field"
|
| 379 |
msgstr ""
|
| 380 |
|
| 381 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 382 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 383 |
msgid "is not valid"
|
| 384 |
msgstr ""
|
| 385 |
|
|
@@ -395,10 +394,6 @@ msgstr ""
|
|
| 395 |
msgid "WooCommerce"
|
| 396 |
msgstr ""
|
| 397 |
|
| 398 |
-
#. Plugin Name of the plugin/theme
|
| 399 |
-
msgid "WooCommerce Extra Checkout Fields for Brazil"
|
| 400 |
-
msgstr ""
|
| 401 |
-
|
| 402 |
#. Plugin URI of the plugin/theme
|
| 403 |
msgid ""
|
| 404 |
"https://github.com/claudiosanches/woocommerce-extra-checkout-fields-for-"
|
|
@@ -446,19 +441,19 @@ msgctxt "placeholder"
|
|
| 446 |
msgid "Birthdate"
|
| 447 |
msgstr ""
|
| 448 |
|
| 449 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 450 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 451 |
msgctxt "placeholder"
|
| 452 |
msgid "Number"
|
| 453 |
msgstr ""
|
| 454 |
|
| 455 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:256
|
| 456 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 457 |
msgctxt "placeholder"
|
| 458 |
msgid "Neighborhood"
|
| 459 |
msgstr ""
|
| 460 |
|
| 461 |
-
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:
|
| 462 |
msgctxt "placeholder"
|
| 463 |
msgid "Cell Phone"
|
| 464 |
msgstr ""
|
| 2 |
# This file is distributed under the GPLv2 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Extra Checkout Fields for Brazil 3.6.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-extra-checkout-fields-for-"
|
| 8 |
"brazil\n"
|
| 9 |
+
"POT-Creation-Date: 2017-05-12 22:05:41+00:00\n"
|
| 10 |
"MIME-Version: 1.0\n"
|
| 11 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 12 |
"Content-Transfer-Encoding: 8bit\n"
|
| 33 |
#: includes/admin/views/html-order-billing-data.php:22
|
| 34 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:125
|
| 35 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:142
|
| 36 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:433
|
| 37 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:437
|
| 38 |
msgid "CPF"
|
| 39 |
msgstr ""
|
| 40 |
|
| 43 |
#: includes/admin/views/html-legacy-order-billing-data.php:24
|
| 44 |
#: includes/admin/views/html-order-billing-data.php:24
|
| 45 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:134
|
| 46 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:441
|
| 47 |
msgid "RG"
|
| 48 |
msgstr ""
|
| 49 |
|
| 53 |
#: includes/admin/views/html-order-billing-data.php:30
|
| 54 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:163
|
| 55 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:180
|
| 56 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:452
|
| 57 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:456
|
| 58 |
msgid "CNPJ"
|
| 59 |
msgstr ""
|
| 60 |
|
| 63 |
#: includes/admin/views/html-legacy-order-billing-data.php:33
|
| 64 |
#: includes/admin/views/html-order-billing-data.php:33
|
| 65 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:172
|
| 66 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:460
|
| 67 |
msgid "State Registration"
|
| 68 |
msgstr ""
|
| 69 |
|
| 87 |
#: includes/admin/class-extra-checkout-fields-for-brazil-customer.php:120
|
| 88 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:113
|
| 89 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:154
|
| 90 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:240
|
| 91 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:355
|
| 92 |
msgid "Number"
|
| 93 |
msgstr ""
|
| 94 |
|
| 97 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:118
|
| 98 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:159
|
| 99 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:255
|
| 100 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:370
|
| 101 |
msgid "Neighborhood"
|
| 102 |
msgstr ""
|
| 103 |
|
| 105 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:130
|
| 106 |
#: includes/admin/views/html-legacy-order-billing-data.php:48
|
| 107 |
#: includes/admin/views/html-order-billing-data.php:48
|
| 108 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:281
|
| 109 |
msgid "Cell Phone"
|
| 110 |
msgstr ""
|
| 111 |
|
| 115 |
|
| 116 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:54
|
| 117 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:110
|
| 118 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:427
|
| 119 |
msgid "Person type"
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:57
|
| 123 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:215
|
|
|
|
| 124 |
msgid "Select"
|
| 125 |
msgstr ""
|
| 126 |
|
| 143 |
#: includes/admin/class-extra-checkout-fields-for-brazil-order.php:95
|
| 144 |
#: includes/admin/views/html-legacy-order-billing-data.php:37
|
| 145 |
#: includes/admin/views/html-order-billing-data.php:37
|
| 146 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:448
|
| 147 |
msgid "Company"
|
| 148 |
msgstr ""
|
| 149 |
|
| 278 |
"★★★★★ on WordPress.org. Thank you in advance!"
|
| 279 |
msgstr ""
|
| 280 |
|
| 281 |
+
#. Plugin Name of the plugin/theme
|
| 282 |
+
msgid "WooCommerce Extra Checkout Fields for Brazil"
|
| 283 |
msgstr ""
|
| 284 |
|
| 285 |
#: includes/admin/views/html-admin-help-message.php:15
|
| 355 |
msgid "required"
|
| 356 |
msgstr ""
|
| 357 |
|
| 358 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:216
|
| 359 |
msgid "Female"
|
| 360 |
msgstr ""
|
| 361 |
|
| 362 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:217
|
| 363 |
msgid "Male"
|
| 364 |
msgstr ""
|
| 365 |
|
| 366 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:250
|
| 367 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:365
|
| 368 |
msgid "Address line 2"
|
| 369 |
msgstr ""
|
| 370 |
|
| 371 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:427
|
| 372 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:433
|
| 373 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:441
|
| 374 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:448
|
| 375 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:452
|
| 376 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:460
|
| 377 |
msgid "is a required field"
|
| 378 |
msgstr ""
|
| 379 |
|
| 380 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:437
|
| 381 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:456
|
| 382 |
msgid "is not valid"
|
| 383 |
msgstr ""
|
| 384 |
|
| 394 |
msgid "WooCommerce"
|
| 395 |
msgstr ""
|
| 396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
#. Plugin URI of the plugin/theme
|
| 398 |
msgid ""
|
| 399 |
"https://github.com/claudiosanches/woocommerce-extra-checkout-fields-for-"
|
| 441 |
msgid "Birthdate"
|
| 442 |
msgstr ""
|
| 443 |
|
| 444 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:241
|
| 445 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:356
|
| 446 |
msgctxt "placeholder"
|
| 447 |
msgid "Number"
|
| 448 |
msgstr ""
|
| 449 |
|
| 450 |
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:256
|
| 451 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:371
|
| 452 |
msgctxt "placeholder"
|
| 453 |
msgid "Neighborhood"
|
| 454 |
msgstr ""
|
| 455 |
|
| 456 |
+
#: includes/class-extra-checkout-fields-for-brazil-front-end.php:282
|
| 457 |
msgctxt "placeholder"
|
| 458 |
msgid "Cell Phone"
|
| 459 |
msgstr ""
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== WooCommerce Extra Checkout Fields for Brazil ===
|
| 2 |
Contributors: claudiosanches
|
| 3 |
Donate link: http://claudiosmweb.com/doacoes/
|
| 4 |
-
Tags: woocommerce, checkout, brazil, cpf, cpnj
|
| 5 |
Requires at least: 3.5
|
| 6 |
Tested up to: 4.7
|
| 7 |
-
Stable tag: 3.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -57,14 +57,18 @@ Você pode contribuir com código-fonte em nossa página no [GitHub](https://git
|
|
| 57 |
|
| 58 |
== Screenshots ==
|
| 59 |
|
| 60 |
-
1. Página de
|
| 61 |
-
2. Página de edição de endereço
|
| 62 |
3. Página de dados do pedido
|
| 63 |
4. Configurações do plugin
|
| 64 |
5. Sugestão de e-mail
|
| 65 |
|
| 66 |
== Changelog ==
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
= 3.5.1 - 2017/04/26 =
|
| 69 |
|
| 70 |
- Corrigido o posicionamento do campo de CEP.
|
|
@@ -80,6 +84,6 @@ Você pode contribuir com código-fonte em nossa página no [GitHub](https://git
|
|
| 80 |
|
| 81 |
== Upgrade Notice ==
|
| 82 |
|
| 83 |
-
= 3.
|
| 84 |
|
| 85 |
-
-
|
| 1 |
=== WooCommerce Extra Checkout Fields for Brazil ===
|
| 2 |
Contributors: claudiosanches
|
| 3 |
Donate link: http://claudiosmweb.com/doacoes/
|
| 4 |
+
Tags: woocommerce, checkout, brazil, cpf, cpnj
|
| 5 |
Requires at least: 3.5
|
| 6 |
Tested up to: 4.7
|
| 7 |
+
Stable tag: 3.6.0
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 57 |
|
| 58 |
== Screenshots ==
|
| 59 |
|
| 60 |
+
1. Página de checkout usando o tema Storefront
|
| 61 |
+
2. Página de edição de endereço de entrega usando o tema Storefront
|
| 62 |
3. Página de dados do pedido
|
| 63 |
4. Configurações do plugin
|
| 64 |
5. Sugestão de e-mail
|
| 65 |
|
| 66 |
== Changelog ==
|
| 67 |
|
| 68 |
+
= 3.6.0 - 2017/05/12 =
|
| 69 |
+
|
| 70 |
+
- Modificada a posição de todos os campos do formulário para funcionar melhor com temas que ainda não são totalmente compatíveis com o WooCommerce 3.0.
|
| 71 |
+
|
| 72 |
= 3.5.1 - 2017/04/26 =
|
| 73 |
|
| 74 |
- Corrigido o posicionamento do campo de CEP.
|
| 84 |
|
| 85 |
== Upgrade Notice ==
|
| 86 |
|
| 87 |
+
= 3.6.0 =
|
| 88 |
|
| 89 |
+
- Modificada a posição de todos os campos do formulário para funcionar melhor com temas que ainda não são totalmente compatíveis com o WooCommerce 3.0.
|
woocommerce-extra-checkout-fields-for-brazil.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Adds new checkout fields, field masks and other things necessary to properly work with WooCommerce on Brazil.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: https://claudiosanches.com
|
| 8 |
-
* Version: 3.
|
| 9 |
* License: GPLv2 or later
|
| 10 |
* Text Domain: woocommerce-extra-checkout-fields-for-brazil
|
| 11 |
* Domain Path: /languages
|
|
@@ -43,7 +43,7 @@ class Extra_Checkout_Fields_For_Brazil {
|
|
| 43 |
*
|
| 44 |
* @var string
|
| 45 |
*/
|
| 46 |
-
const VERSION = '3.
|
| 47 |
|
| 48 |
/**
|
| 49 |
* Instance of this class.
|
| 5 |
* Description: Adds new checkout fields, field masks and other things necessary to properly work with WooCommerce on Brazil.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: https://claudiosanches.com
|
| 8 |
+
* Version: 3.6.0
|
| 9 |
* License: GPLv2 or later
|
| 10 |
* Text Domain: woocommerce-extra-checkout-fields-for-brazil
|
| 11 |
* Domain Path: /languages
|
| 43 |
*
|
| 44 |
* @var string
|
| 45 |
*/
|
| 46 |
+
const VERSION = '3.6.0';
|
| 47 |
|
| 48 |
/**
|
| 49 |
* Instance of this class.
|
