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 Commented 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 Commented Aug 29, 2020 at 12:58

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.