public function updateEditAccountForm($form)
    {
        // Add company name field
        $company_field = TextField::create(
            "Company",
            _t('CheckoutUsers.Company', "Company")
        );
        $company_field->setRightTitle(_t("Checkout.Optional", "Optional"));
        $form->Fields()->insertBefore($company_field, "FirstName");

        // Add contact phone number field
        $phone_field = TextField::create(
            "PhoneNumber",
            _t("CheckoutUsers.PhoneNumber", "Phone Number")
        );
        $phone_field->setRightTitle(_t("Checkout.Optional", "Optional"));
        $form->Fields()->add($phone_field);
    }
public function updateEditAccountForm($form)
    {
        // Add company name field
        $company_field = TextField::create(
            "Company",
            _t('CheckoutUsers.Company', "Company")
        );
        $company_field->setRightTitle(_t("Checkout.Optional", "Optional"));
        $form->Fields()->insertBefore($company_field, "FirstName");

        // Add contact phone number field
        $phone_field = TextField::create(
            "PhoneNumber",
            _t("CheckoutUsers.PhoneNumber", "Phone Number")
        );
        $phone_field->setRightTitle(_t("Checkout.Optional", "Optional"));
        $form->Fields()->add($phone_field);
    }
public function updateEditAccountForm ( $ form ) { // Add company name field $ company_field = TextField :: create ( "Company" , _t ( 'CheckoutUsers.Company' , "Company" ) ) ; $ company_field -> setRightTitle ( _t ( "Checkout.Optional" , "Optional" ) ) ; $ form -> Fields ( ) -> insertBefore ( $ company_field , "FirstName" ) ; // Add contact phone number field $ phone_field = TextField :: create ( "PhoneNumber" , _t ( "CheckoutUsers.PhoneNumber" , "Phone Number" ) ) ; $ phone_field -> setRightTitle ( _t ( "Checkout.Optional" , "Optional" ) ) ; $ form -> Fields ( ) -> add ( $ phone_field ) ; }
Add fields used by this module to the profile editing form
Add fields used by this module to the profile editing form