I am rearranging the checkout.

I am getting rid of the sidebar concept as it hides the products behind a link and only allows very little space for the products.

My current store will have A LOT of products per quote and also a lot of information needs to be displayed. Too little space in this tiny sidebar. Therefore I want to return to the "old-school" way of displaying all the products before purchasing at the end of the last step only.

While I keep the container/region "sidebar" it will be a simple div taking up the entire width of the available space.

So far so good but how do I tell Magento to hide the sidebar on all steps except the last one? Currently, it is displayed on every step.

CSS is not an option since the DOM does not change from step to step.


1 Answer 1


I have managed to work by following steps:

  1. Add the following line to your CSS file:


  2. Goto following directory


And open the file step-navigator.js

  1. Copy this file to your working theme directory.

  2. Edit the function getActiveItemIndex in step-navigator.js You will get 0,1 etc when console.log(activeIndex);

  3. You will get 1 on Payment method step. You can put one condition there for display block by the following code:

    if (activeIndex == 1) {
    } else {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.