Make Zone Name a Required Field

Ray Roman

New Member
Hello All,

How do I make the Zone ID in customer account a "Required Field"?
I was able to make telephone required using the add filter 'customer_model_customer_rules" in a custom init file.
I'm not sure which filter and which array holds the zone id.

Thank for your help.
Last edited:
@Ray Roman - Since the model handling this data is named CustomerCompany and you want it to only apply for customer area, the hook name is: customer_model_customercompany_rules.
Some explanation:
customer - it's the application name. Can be customer / backend / api / frontend
customercompany - is the model name, but lowercased
rules - it's the method from the model where you want to hook into.

Today we announced the documentation for hooks, which might help: