Skip to content

Commit 844e661

Browse files
author
Olexii Korshenko
committed
MAGETWO-39446: "Place Order" button should be disabled until billing address is set
1 parent c1ff0de commit 844e661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ define(
3939
this._super()
4040
.observe({
4141
selectedAddress: null,
42-
isAddressDetailsVisible: quote.shippingAddress() != null,
42+
isAddressDetailsVisible: quote.billingAddress() != null,
4343
isAddressFormVisible: !customer.isLoggedIn() || addressOptions.length == 1,
4444
isAddressSameAsShipping: false
4545
});

app/code/Magento/Checkout/view/frontend/web/js/view/payment/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ define(
1717
'use strict';
1818
return Component.extend({
1919
redirectAfterPlaceOrder: true,
20-
isPlaceOrderActionAllowed: ko.observable(true),
20+
isPlaceOrderActionAllowed: ko.observable(quote.billingAddress() != null),
2121
/**
2222
* Initialize view.
2323
*

0 commit comments

Comments
 (0)