I'm trying to develop an 'optional' checkout step in the default Magento 2 checkout, required only if a specific shipping method is chosen.

I have my js/view/custom_step.js file set up to check the shippingMethod.method_code from the quote object but it only seems to be set after the isVisible() method is called.

Is there a method I can use to remove/add a checkout step on-the-fly during the checkout process?

  • Can you add more code lines of your custom module? – Khoa TruongDinh Sep 13 '16 at 13:10
  • At the moment my extra step is shown permanently - I'm not sure which code is relevant to my question? – James Sep 13 '16 at 14:41
  • You should add more code lines. It's easier for community. – Khoa TruongDinh Sep 13 '16 at 14:46
  • did you get some solution – Mohammad Mujassam Mar 6 '17 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.