Merge pull request #3085 from shubhwebkul/patch-3
Issue #2994 #2973 resolved
This commit is contained in:
commit
d42069d923
|
|
@ -499,19 +499,17 @@
|
|||
|
||||
backToSavedBillingAddress: function () {
|
||||
this.new_billing_address = false;
|
||||
this.validateFormAfterAction()
|
||||
setTimeout(() => {
|
||||
this.validateForm('address-form');
|
||||
}, 0);
|
||||
},
|
||||
|
||||
backToSavedShippingAddress: function () {
|
||||
this.new_shipping_address = false;
|
||||
this.validateFormAfterAction()
|
||||
},
|
||||
|
||||
validateFormAfterAction: function () {
|
||||
setTimeout(() => {
|
||||
this.validateForm('address-form');
|
||||
}, 0);
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -79,11 +79,11 @@
|
|||
<div class="mt10 mb10" v-if="address.billing.address_id">
|
||||
<span class="checkbox fs16 display-inbl">
|
||||
<input
|
||||
class="ml0"
|
||||
type="checkbox"
|
||||
class="ml0"
|
||||
id="billing[use_for_shipping]"
|
||||
name="billing[use_for_shipping]"
|
||||
@change="validateFormAfterAction"
|
||||
@change="setTimeout(() => validateForm('address-form'), 0)"
|
||||
v-model="address.billing.use_for_shipping" />
|
||||
|
||||
<span class="ml-5">
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@
|
|||
v-validate="'required'"
|
||||
name="shipping[postcode]"
|
||||
v-model="address.shipping.postcode"
|
||||
@change="validateForm('address-form')"
|
||||
@keyup="validateForm('address-form')"
|
||||
data-vv-as=""{{ __('shop::app.checkout.onepage.postcode') }}"" />
|
||||
|
||||
<span class="control-error" v-if="errors.has('address-form.shipping[postcode]')">
|
||||
|
|
@ -498,7 +498,7 @@
|
|||
name="billing[phone]"
|
||||
v-validate="'required'"
|
||||
v-model="address.billing.phone"
|
||||
@change="validateForm('address-form')"
|
||||
@keyup="validateForm('address-form')"
|
||||
data-vv-as=""{{ __('shop::app.checkout.onepage.phone') }}"" />
|
||||
|
||||
<span class="control-error" v-if="errors.has('address-form.billing[phone]')">
|
||||
|
|
@ -514,8 +514,8 @@
|
|||
type="checkbox"
|
||||
id="billing[use_for_shipping]"
|
||||
name="billing[use_for_shipping]"
|
||||
@change="validateFormAfterAction"
|
||||
v-model="address.billing.use_for_shipping" />
|
||||
v-model="address.billing.use_for_shipping"
|
||||
@change="setTimeout(() => validateForm('address-form'), 0)" />
|
||||
|
||||
<span class="ml-5">
|
||||
{{ __('shop::app.checkout.onepage.use_for_shipping') }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue