0

I wish to delete customer address attribute in create order section in Magento backend

I have tried to override the following file to unset the attribute before rendering. For testing purpose, I have edited the core file and unset the attribute from

protected function _prepareForm() 

vendor/magento/module-sales/Block/Adminhtml/Order/Create/Form/Address.php

It works fine in core file, but when I override this file using preference, I am unable to override the file, can anyone suggest me to override this

I have tried based on this How to Hide Field from Order Create From Back-end Magento 2

1
  • Kindly check your module sequence in /etc/module.xml Aug 29, 2020 at 5:29

1 Answer 1

1

Checklist:

1
  • Magento_ Sales module also mentioned in sequence in my custom module module.xml
    – Jaisa
    Aug 29, 2020 at 12:58

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.