my store works good but sometime when I click on the Checkout button then it moves me to http://xyz/checkout/noroutes and them I came back to my homepage but when I click on other checkout button which is in the minicart then checkout page collapse and shows like enter image description here

what is the issue n how can I sort this??

  • httml code is written where ?phtml file or html file? – Amit Bera Dec 5 '19 at 11:37
  • in the PHTML file Sir app/design/frontend/Ecomwares/wokiee/Ecomwares_Wokiee/templates/html/header.phtml – Asad Khan Dec 5 '19 at 11:40

As you have using phtml and want to get checkout page, then below code

location.href='<?= $block->escapeJs($block->getUrl("checkout"));?>'

Instead of


| improve this answer | |
  • But Sir I'm still confused... the checkout page which is collapsed with step one n step 2 is this is the reason or that error might come from somewhere else – Asad Khan Dec 5 '19 at 12:11

Your Answer

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

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