Skip to content

Commit d08c361

Browse files
Release 1.1.8
1 parent 8dd754e commit d08c361

15 files changed

+340
-47
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ This repository contains the PostFinance Checkout WooCommerce plugin that enable
1313

1414
## Documentation
1515

16-
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.7/docs/en/documentation.html)
16+
* [Documentation](https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.8/docs/en/documentation.html)
1717

1818
## License
1919

20-
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/1.1.7/LICENSE) for more information.
20+
Please see the [license file](https://github.com/pfpayments/woocommerce/blob/1.1.8/LICENSE) for more information.
2121

2222

2323

assets/js/frontend/checkout.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,27 @@ jQuery(function($) {
4040
check_form_data_change : function() {
4141
var $required_inputs = $(this.checkout_form_identifier).find( '.address-field.validate-required' ).find('input, select');
4242
var current = '';
43+
var complete = true;
4344
if ( $required_inputs.length ) {
4445
$required_inputs.each( function() {
4546
if (! $( this ).is(':visible')) {
46-
return;
47+
return true;
48+
}
49+
if(!$( this ).val()){
50+
complete = false;
51+
return false;
4752
}
4853
current += $(this).attr('name') +"="+$(this).val()+"&";
4954
});
50-
old = this.form_data;
51-
this.form_data = current;
52-
if(current != old && !this.update_sent){
53-
$required_inputs.filter('.input-text').first().trigger('keydown');
54-
this.handle_description_for_empty_iframe(this.get_selected_payment_method());
55-
}
56-
this.update_sent = false;
55+
if(complete){
56+
old = this.form_data;
57+
this.form_data = current;
58+
if(current != old && !this.update_sent){
59+
$required_inputs.filter('.input-text').first().trigger('keydown');
60+
this.handle_description_for_empty_iframe(this.get_selected_payment_method());
61+
}
62+
this.update_sent = false;
63+
}
5764
}
5865

5966
},

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@
104104

105105
* Dev - Updated to PostFinance Checkout SDK 1.1.9
106106

107+
= 1.1.8 - August 16, 2018 =
108+
109+
* Fix - Errormessage not displayed in all cases
110+
* Tweak - Improved javascript
111+

docs/en/documentation.html

Lines changed: 300 additions & 25 deletions
Large diffs are not rendered by default.
195 KB
Loading
188 KB
Loading
215 KB
Loading
195 KB
Loading

docs/en/resource/state_graph.svg

Lines changed: 2 additions & 0 deletions
Loading

includes/admin/class-wc-postfinancecheckout-admin-settings-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function get_settings(){
145145
$settings = array(
146146
array(
147147
'links' => array(
148-
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.7/docs/en/documentation.html' => __('Documentation', 'woo-postfinancecheckout'),
148+
'https://plugin-documentation.postfinance-checkout.ch/pfpayments/woocommerce/1.1.8/docs/en/documentation.html' => __('Documentation', 'woo-postfinancecheckout'),
149149
'https://www.postfinance-checkout.ch/user/signup' => __('Sign Up', 'woo-postfinancecheckout')
150150
),
151151
'type' => 'postfinancecheckout_links',

0 commit comments

Comments
 (0)