protected function submitEditCheckout()
    {
        $this->setSubmitted('order');

        $this->setAddressFormCheckout();
        $this->submitAddAddressCheckout();

        if ($this->isPosted('checkout_login') && empty($this->uid)) {
            $this->show_login_form = true;
        }

        $this->same_payment_address = (bool) $this->getPosted('same_payment_address', true, false, 'bool');

        if ($this->isPosted('update')) {
            $this->setMessage($this->text('Form has been updated'), 'success', false);
        }

        $this->submitLoginCheckout();

        if ($this->isPosted('checkout_anonymous')) {
            $this->show_login_form = false;
        }

        $this->validateCouponCheckout();
        $this->submitCartCheckout();
        $this->submitOrderCheckout();
    }
protected function submitEditCheckout()
    {
        $this->setSubmitted('order');

        $this->setAddressFormCheckout();
        $this->submitAddAddressCheckout();

        if ($this->isPosted('checkout_login') && empty($this->uid)) {
            $this->show_login_form = true;
        }

        $this->same_payment_address = (bool) $this->getPosted('same_payment_address', true, false, 'bool');

        if ($this->isPosted('update')) {
            $this->setMessage($this->text('Form has been updated'), 'success', false);
        }

        $this->submitLoginCheckout();

        if ($this->isPosted('checkout_anonymous')) {
            $this->show_login_form = false;
        }

        $this->validateCouponCheckout();
        $this->submitCartCheckout();
        $this->submitOrderCheckout();
    }
protected function submitEditCheckout ( ) { $ this -> setSubmitted ( 'order' ) ; $ this -> setAddressFormCheckout ( ) ; $ this -> submitAddAddressCheckout ( ) ; if ( $ this -> isPosted ( 'checkout_login' ) && empty ( $ this -> uid ) ) { $ this -> show_login_form = true ; } $ this -> same_payment_address = ( bool ) $ this -> getPosted ( 'same_payment_address' , true , false , 'bool' ) ; if ( $ this -> isPosted ( 'update' ) ) { $ this -> setMessage ( $ this -> text ( 'Form has been updated' ) , 'success' , false ) ; } $ this -> submitLoginCheckout ( ) ; if ( $ this -> isPosted ( 'checkout_anonymous' ) ) { $ this -> show_login_form = false ; } $ this -> validateCouponCheckout ( ) ; $ this -> submitCartCheckout ( ) ; $ this -> submitOrderCheckout ( ) ; }
Handles submitted actions
Handles submitted actions