Skip to content
Snippets Groups Projects
Commit a58cb7e1 authored by Serhiy Shkolyarenko's avatar Serhiy Shkolyarenko
Browse files

MAGETWO-44336: Unable to place order with virtual quote using customer without...

MAGETWO-44336: Unable to place order with virtual quote using customer without default shipping address
parent 0c5934e7
No related merge requests found
...@@ -82,11 +82,14 @@ define( ...@@ -82,11 +82,14 @@ define(
}); });
quote.billingAddress.subscribe(function (newAddress) { quote.billingAddress.subscribe(function (newAddress) {
this.isAddressSameAsShipping( if (quote.isVirtual()) {
newAddress != null && this.isAddressSameAsShipping(false);
newAddress.getCacheKey() == quote.shippingAddress().getCacheKey() && } else {
!quote.isVirtual() this.isAddressSameAsShipping(
); newAddress != null &&
newAddress.getCacheKey() == quote.shippingAddress().getCacheKey()
);
}
if (newAddress != null && newAddress.saveInAddressBook !== undefined) { if (newAddress != null && newAddress.saveInAddressBook !== undefined) {
this.saveInAddressBook(newAddress.saveInAddressBook); this.saveInAddressBook(newAddress.saveInAddressBook);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment