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"/>-->
</referenceContainer>
Can anyone help? Thanks in advance. 🙂
Best Answer
In your custom theme add the XML file below:
app/design/THEME/NAME/Magento_Checkout/frontend/layout/checkout_onepage_success.xml