Merge pull request #4341 from devansh-webkul/issue-4325

Fixed address is not saving on onepage checkout #4325
This commit is contained in:
Glenn Hermans 2020-12-09 17:34:56 +01:00 committed by GitHub
commit 62b3aa99df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -145,7 +145,7 @@
address: {
billing: {
address1: [''],
save_as_address: false,
use_for_shipping: true,
},
@ -212,10 +212,15 @@
this.$validator.validateAll(scope)
.then(result => {
if (result) {
this.$root.showLoader();
switch (scope) {
case 'address-form':
/* loader will activate only when save as address is clicked */
if (this.address.billing.save_as_address) {
this.$root.showLoader();
}
/* this is outside because save as address also calling for
saving the address in the order only */
this.saveAddress();
break;

View File

@ -540,7 +540,5 @@
</span>
</span>
</div>
@php
@endphp
@endauth
@endif