I want to create a custom address attribute, I need them visible in all the following places.

  1. Admin Addresses.
  2. My Account Address Box
  3. Checkout address and forms.

How can I implement to have them on billing and shipping address.


You can create custom attribute from installSchema or upgrade schema.

$eavSetup = $this->_eavSetupFactory->create(['setup' => $setup]);
        $eavSetup->addAttribute('customer_address', 'type', array(
            'type' => 'int',
            'input' => 'select',
            'label' => 'Address Type',
            'global' => 1,
            'visible' => 1,
            'required' => 1,
            'user_defined' => 1,
            'visible_on_front' => 1,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.