cancel
Showing results for 
Search instead for 
Did you mean: 

overriding core function of magento in validation vendor\magento\module-sales\Model\Order\Address\Va

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

overriding core function of magento in validation vendor\magento\module-sales\Model\Order\Address\Va

Hello,

I wanted to override the validation of the core functionality

I created a plugin and tested around method didn't worked

I created a preference that also didn't worked

 

please let me know how to override 

Magento\Customer\Model\Address\Validator\General

the class General

 

to disable city validation

 

thx

1 REPLY 1

Re: overriding core function of magento in validation vendor\magento\module-sales\Model\Order\Addres

Hello @Woshka 

 

You can just remove city validation by removing passed argument here Magento\Customer\Model\Address\CompositeValidator. To do this just follow below shared last solution hope that will help you:

https://magento.stackexchange.com/questions/202866/overriding-model-in-magento2

 

 

Manish Mittal
https://www.manishmittal.com/