Update onepage.blade.php

This commit is contained in:
Deja Vue 2021-01-12 19:34:52 +05:30 committed by GitHub
parent 075261ec44
commit 487f40a3e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -201,7 +201,7 @@
return false;
},
validateForm: function (scope) {
validateForm: async function (scope) {
var isManualValidationFail = false;
if (scope == 'address-form') {
@ -209,7 +209,7 @@
}
if (! isManualValidationFail) {
this.$validator.validateAll(scope)
await this.$validator.validateAll(scope)
.then(result => {
if (result) {
switch (scope) {
@ -341,7 +341,7 @@
.catch(function (error) {})
},
saveAddress: function () {
saveAddress: async function () {
this.disable_button = true;
if (this.allAddress.length > 0) {
@ -414,7 +414,7 @@
})
},
saveShipping: function () {
saveShipping: async function () {
this.disable_button = true;
this.$http.post("{{ route('shop.checkout.save-shipping') }}", {'shipping_method': this.selected_shipping_method})
@ -444,7 +444,7 @@
})
},
savePayment: function () {
savePayment: async function () {
this.disable_button = true;
if (this.isCheckPayment) {
@ -474,7 +474,7 @@
}
},
placeOrder: function () {
placeOrder: async function () {
if (this.isPlaceOrderEnabled) {
this.disable_button = false;
this.isPlaceOrderEnabled = false;
@ -735,4 +735,4 @@
})()
</script>
@endpush
@endpush