File tree 2 files changed +18
-0
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,18 @@ define([
46
46
47
47
/** @inheritdoc */
48
48
initialize : function ( ) {
49
+ var self = this ;
49
50
this . _super ( ) ;
50
51
checkoutDataResolver . resolvePaymentMethod ( ) ;
52
+
53
+ //If some step is active this step will become inactive.
54
+ stepNavigator . steps ( ) . some ( function ( element ) {
55
+ if ( element . isVisible ( ) ) {
56
+ self . isVisible ( false ) ;
57
+ return true ;
58
+ }
59
+ } ) ;
60
+
51
61
stepNavigator . registerStep (
52
62
'payment' ,
53
63
null ,
Original file line number Diff line number Diff line change @@ -82,6 +82,14 @@ define([
82
82
this . _super ( ) ;
83
83
84
84
if ( ! quote . isVirtual ( ) ) {
85
+ //If some step is active this step will become inactive.
86
+ stepNavigator . steps ( ) . some ( function ( element ) {
87
+ if ( element . isVisible ( ) ) {
88
+ self . visible ( false ) ;
89
+ return true ;
90
+ }
91
+ } ) ;
92
+
85
93
stepNavigator . registerStep (
86
94
'shipping' ,
87
95
'' ,
You can’t perform that action at this time.
0 commit comments