1

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??

asked Dec 5, 2019 at 11:26
2
  • httml code is written where ?phtml file or html file? Commented Dec 5, 2019 at 11:37
  • in the PHTML file Sir app/design/frontend/Ecomwares/wokiee/Ecomwares_Wokiee/templates/html/header.phtml Commented Dec 5, 2019 at 11:40

1 Answer 1

1

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

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

Instead of

location.href='https:/'+'/'+location.hostname+'/checkout/#shipping'

answered Dec 5, 2019 at 11:55
1
  • 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 Commented Dec 5, 2019 at 12:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.