@@ -102,8 +102,8 @@ define([
102
102
this . element . find ( this . options . updateOrderSelector ) . fadeTo ( 0 , 0.5 )
103
103
. end ( ) . find ( this . options . waitLoadingContainer ) . show ( )
104
104
. end ( ) . submit ( ) ;
105
+ this . _updateOrderSubmit ( true ) ;
105
106
}
106
- this . _updateOrderSubmit ( true ) ;
107
107
} ,
108
108
109
109
/**
@@ -242,19 +242,16 @@ define([
242
242
shippingMethod = $ . trim ( $ ( this . options . shippingSelector ) . val ( ) ) ;
243
243
this . _shippingTobilling ( ) ;
244
244
245
- var validateFormResult = this . _validateForm ( ) ;
246
- var isShippingUpdate = url == $ ( this . options . shippingSubmitFormSelector ) . prop ( 'action' ) && shippingMethod ;
247
-
248
- if ( url && resultId && ( validateFormResult || isShippingUpdate ) ) {
249
- this . _updateOrderSubmit ( validateFormResult ) ;
250
- this . _toggleButton ( this . options . updateOrderSelector , ! validateFormResult ) ;
245
+ if ( url && resultId && shippingMethod ) {
246
+ this . _updateOrderSubmit ( true ) ;
247
+ this . _toggleButton ( this . options . updateOrderSelector , true ) ;
251
248
252
249
// form data and callBack updated based on the shippping Form element
253
250
if ( this . isShippingSubmitForm ) {
254
251
formData = $ ( this . options . shippingSubmitFormSelector ) . serialize ( ) + "&isAjax=true" ;
255
252
callBackResponseHandler = function ( response ) {
256
253
$ ( resultId ) . html ( response ) ;
257
- this . _updateOrderSubmit ( ! validateFormResult ) ;
254
+ this . _updateOrderSubmit ( false ) ;
258
255
this . _ajaxComplete ( ) ;
259
256
} ;
260
257
} else {
0 commit comments