protected function submitAddAddressCheckout()
    {
        $type = $this->getPosted('save_address', '', true, 'string');

        if (empty($type)) {
            return null;
        }

        $errors = $this->validateAddressCheckout($type);

        if (empty($errors)) {
            $this->addAddressCheckout($type);
            $this->{"show_{$type}_address_form"} = false;
        }
    }
protected function submitAddAddressCheckout()
    {
        $type = $this->getPosted('save_address', '', true, 'string');

        if (empty($type)) {
            return null;
        }

        $errors = $this->validateAddressCheckout($type);

        if (empty($errors)) {
            $this->addAddressCheckout($type);
            $this->{"show_{$type}_address_form"} = false;
        }
    }
protected function submitAddAddressCheckout ( ) { $ type = $ this -> getPosted ( 'save_address' , '' , true , 'string' ) ; if ( empty ( $ type ) ) { return null ; } $ errors = $ this -> validateAddressCheckout ( $ type ) ; if ( empty ( $ errors ) ) { $ this -> addAddressCheckout ( $ type ) ; $ this -> { "show_{$type}_address_form" } = false ; } }
Saves a submitted address
Saves a submitted address