Can someone break down how I should validate empty address fields as a plugin for Craft Commerce and take the following answer further?
The Craft Commerce documentation provides the following example for the name field - but I'm not sure what my next steps should be...
public function init()
{
craft()->on('commerce_addresses.onBeforeSaveAddress', function($event){
$address = $event->params['address'];
$address->addError('firstName','Not a cool name man.');
$event->performAction = false;
});
}