0

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

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">
<body>
    <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>
        </action>
    </referenceBlock>
</body></page>

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

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

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.