I got this file:
module-sales/Block/Adminhtml/Order/Create/Shipping/Method/Form.php
I want to override this in a custom module.
How can I do that?
Thanks!
blocksmagento2overrides
I got this file:
module-sales/Block/Adminhtml/Order/Create/Shipping/Method/Form.php
I want to override this in a custom module.
How can I do that?
Thanks!
Best Answer
For Block use the below code in your module's di.xml
For phtml override create a xml file with name sales_order_create_load_block_shipping_method.xml on your module's layout folder and set template for this "order.create.shipping.method.form" and use your template file location as per the requirement.