0

I need to add a button in success.phtml page of checkout process. This button should redirect to a new page. How Can I achieve it?

0

Open Your success.phtml Page in Notepad++ or some editor

Add a Anchor Tag

HTML

<a class="sample" href="http://[Your URL to Redirect]">My button</a>

CSS

.sample{
       display:block;
       width:115px;
       height:25px;
       background:black;
       padding:10px;
       text-align:center;
       border-radius:5px;
       color:white;
}

follow this in your success.phtml page it will works

  • Thanks for quick reply. I want to link a new page to that href. How do I add new page (preferred to be in "app\design\frontend[theme]\default\template\checkout" folder? – Rohit Shinde Jun 13 '15 at 10:22
  • create a new page in cms or in checkout folder. if u think my answer is helpful give a vote up.:-) – hari haran Jun 13 '15 at 10:23
  • created new page in checkout folder and linked it, did not worked. Getting 404 error. – Rohit Shinde Jun 13 '15 at 11:04
  • create a cms page and give link – hari haran Jun 13 '15 at 11:38
  • created cms page and linked but form submit is not working on that page. :( – Rohit Shinde Jun 13 '15 at 12:12

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.