Skip to content
Snippets Groups Projects
Commit 844e6618 authored by Olexii Korshenko's avatar Olexii Korshenko
Browse files

MAGETWO-39446: "Place Order" button should be disabled until billing address is set

parent c1ff0de3
Branches
No related merge requests found
...@@ -39,7 +39,7 @@ define( ...@@ -39,7 +39,7 @@ define(
this._super() this._super()
.observe({ .observe({
selectedAddress: null, selectedAddress: null,
isAddressDetailsVisible: quote.shippingAddress() != null, isAddressDetailsVisible: quote.billingAddress() != null,
isAddressFormVisible: !customer.isLoggedIn() || addressOptions.length == 1, isAddressFormVisible: !customer.isLoggedIn() || addressOptions.length == 1,
isAddressSameAsShipping: false isAddressSameAsShipping: false
}); });
......
...@@ -17,7 +17,7 @@ define( ...@@ -17,7 +17,7 @@ define(
'use strict'; 'use strict';
return Component.extend({ return Component.extend({
redirectAfterPlaceOrder: true, redirectAfterPlaceOrder: true,
isPlaceOrderActionAllowed: ko.observable(true), isPlaceOrderActionAllowed: ko.observable(quote.billingAddress() != null),
/** /**
* Initialize view. * Initialize view.
* *
......
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