Merge pull request #4341 from devansh-webkul/issue-4325
Fixed address is not saving on onepage checkout #4325
This commit is contained in:
commit
62b3aa99df
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -540,7 +540,5 @@
|
|||
</span>
|
||||
</span>
|
||||
</div>
|
||||
@php
|
||||
@endphp
|
||||
@endauth
|
||||
@endif
|
||||
Loading…
Reference in New Issue