The customer identity class contains all of the information needed to successfully process a checkout action, not including the payment or shipping methods.
Say you are based out of Florida and you want most of your purchases to come from a Florida address. The easiest way of changing this is through the use of a configuration file that will override any properties defined in the class.
Magium\AbstractConfigurableElement which means that it will look in the base directory’s /configuration folder to find a file that contains alternate information.
The pattern is
/configuration/Namespace/ChildNamespace/Class.php. So for the class
Magium\Magento\Identities\Customer the name of the file will be
That file is
include()ed during object instantialization. That a few things.
- It is part of the class definition itself. This then follows that
- It can contain PHP code
<?php // Using this kind of comment helps your IDE with code completion. /* @var $this \Magium\Magento\Identities\Customer */ $this->billingRegionId = 'Florida'; $this->emailAddress = '[email protected]'; $this->password = 'myactualpassword';