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

8410: Custom Checkout Step and Shipping Step are Highlighted

parent c12dc31b
No related merge requests found
......@@ -51,12 +51,14 @@ define([
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;
}
});
if (stepNavigator.steps()) {
stepNavigator.steps().some(function (element) {
if (element.isVisible()) {
self.isVisible(false);
return true;
}
});
}
stepNavigator.registerStep(
'payment',
......
......@@ -83,12 +83,14 @@ define([
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;
}
});
if (stepNavigator.steps()) {
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