Skip to content
Snippets Groups Projects
Commit fd5f40a9 authored by RomanKis's avatar RomanKis
Browse files

8410: Custom Checkout Step and Shipping Step are Highlighted

parent 276c690d
Branches
No related merge requests found
......@@ -46,8 +46,18 @@ define([
/** @inheritdoc */
initialize: function () {
var self = this;
this._super();
checkoutDataResolver.resolvePaymentMethod();
//If some step is active this step will become inactive.
stepNavigator.steps().some(function (element) {
if (element.isVisible()) {
self.isVisible(false);
return true;
}
});
stepNavigator.registerStep(
'payment',
null,
......
......@@ -82,6 +82,14 @@ define([
this._super();
if (!quote.isVirtual()) {
//If some step is active this step will become inactive.
stepNavigator.steps().some(function (element) {
if (element.isVisible()) {
self.visible(false);
return true;
}
});
stepNavigator.registerStep(
'shipping',
'',
......
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