src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
public function Init()
    {
        parent::Init();

        $this->bUserDataSubmission = false;

        $this->InitUserData();

        // primary address should be initialized first
        if (TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) {
            $this->InitShippingAddress();
            $this->InitBillingAddress();
        } else {
            $this->InitBillingAddress();
            $this->InitShippingAddress();
        }

        // change shipping to billing
        $this->InitChangeShipToBillingState();
    }
public function Init()
    {
        parent::Init();

        $this->bUserDataSubmission = false;

        $this->InitUserData();

        // primary address should be initialized first
        if (TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) {
            $this->InitShippingAddress();
            $this->InitBillingAddress();
        } else {
            $this->InitBillingAddress();
            $this->InitShippingAddress();
        }

        // change shipping to billing
        $this->InitChangeShipToBillingState();
    }
public function Init ( ) { parent :: Init ( ) ; $ this -> bUserDataSubmission = false ; $ this -> InitUserData ( ) ; // primary address should be initialized first if ( TdbDataExtranetUserAddress :: FORM_DATA_NAME_SHIPPING == $ this -> AddressUsedAsPrimaryAddress ( ) ) { $ this -> InitShippingAddress ( ) ; $ this -> InitBillingAddress ( ) ; } else { $ this -> InitBillingAddress ( ) ; $ this -> InitShippingAddress ( ) ; } // change shipping to billing $ this -> InitChangeShipToBillingState ( ) ; }
we use the method to populate the state and user data.
we use the method to populate the state and user data .