I want to remove Create An Account button with "You can track your order status by creating an account." text on success page in Magento 2. I have removed checkout.registration block from checkout_onepage_success.xml but it is still showing.

<referenceContainer name="content">
       <block class="Magento\Checkout\Block\Onepage\Success" name="checkout.success" template="success.phtml" cacheable="false"/>
       <!--<block class="Magento\Checkout\Block\Registration" name="checkout.registration" template="registration.phtml" cacheable="false"/>-->

Can anyone help? Thanks in advance. :)

  • Flush cache. and re-order. it works for me fine.
    – Yogesh
    Nov 20 '17 at 8:55

In your custom theme add the XML file below:


<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceBlock name="checkout.registration" remove="true"/>
  • I did not removed this block , but it is not showing in successpage
    – Jaisa
    Jul 16 '18 at 9:35
  • The answer is missing a <body> tag wrapping the <referenceBlock> tag. It might help somebody.
    – Akif
    Sep 13 at 18:45

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.