I am using Magento 2.4.3p-1

I have 2 files


Since those 2 files in Magento core folder, I cannot just directly modify here.

I did create 2 patches and they works fine.

However, I have more need to make changes, that's why I try to use create custom module method to do the override


After I enable this custom module.


It didn't show the change I made.

I did ran below comments, still not get the change effected. I did some debug, looks like the still running the core codes.

php bin/magento s:up
php bin/magento s:s:d -f
php bin/magento c:f

Please advise what I miss or where I should check. Can anyone tell me what exactly file I need to build this custom module?

Thankyou very much

  • 1
    You need to place these files on your theme or if you want to do using a module then you need to set the template in layout & set the email template in email_templates.xml Sep 9, 2022 at 4:00

1 Answer 1


You should override core phtml files in theme dir.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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