I want to override one adminhtml template file located at /vendor/magento/module-sales/view/adminhtml/templates/order/create/form/account.phtml

What steps i need to follow?


1 Answer 1


You Cannot Override Admin Files Directly In Your Theme. You Need Custom Module For Overriding Admin Files OR Use Existing Custom Module.

<?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceBlock name="column_name">
        <action method="setTemplate">
            <argument name="template" translate="true" xsi:type="string">Vendor_Module::sales/view/adminhtml/templates/order/create/form/account.phtml</argument>

Copy original file into following location Vendor/Module/sales/view/adminhtml/templates/order/create/form/account.phtml

  • i dont need to edit anything in this??? in which xml file i need to add this code?
    – Nafsss
    Commented Jul 21, 2020 at 9:43
  • Change vendor name and module name as per your vendor and module
    – Tanmay
    Commented Jul 21, 2020 at 12:08

Your Answer

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

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