TransWikia.com

How to remove the visibility for customer address attribute field while creating order in magento backend

Magento Asked on December 30, 2020

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

One Answer

Checklist:

Answered by CloudySi on December 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP