Welcome Guest, Not a member yet? Register   Sign In
nusoap, wsdls and fedex equals huh?
#8

[eluser]FuzzyJared[/eluser]
Code:
class Fedex_api
{
    // --------------------------------------------------------------------

    /**
     *
     */
    function Fedex_api()
    {
        $this->CI=& get_instance();
        //log_message('debug', "Fedex API Class Initialized");
        $this->CI->load->library('db_session');
        $this->CI->load->library('ShoppingCart','shoppingcart');
        $this->CI->load->library('Nusoap','nusoap');
        $this->CI->load->model('shippingmodel','shippingmodel');
        $this->CI->load->model('fedexmodel','fedexmodel');
        $this->CI->load->model('usermodel','usermodel');
        $this->CI->load->model('productsmodel', 'productsmodel');
        $this->CI->load->helper('fedex_helper');
        
        // COMPANY VARIABLES
        $this->CI->credentials = $this->CI->fedexmodel->returnCredentials();
        $this->CI->fedex_key = $this->CI->credentials['access_key'];
        $this->CI->fedex_password = $this->CI->credentials['password'];
        $this->CI->fedex_account_number = $this->CI->credentials['account_number'];
        $this->CI->fedex_meter_number = $this->CI->credentials['meter_number'];
        $this->CI->shipper_address = $this->CI->credentials['address'];
        $this->CI->shipper_city = $this->CI->credentials['city'];
        $this->CI->shipper_state = $this->CI->credentials['state'];
        $this->CI->shipper_zipcode = $this->CI->credentials['zipcode'];
        // USER VARIABLES
        $this->CI->user_id = $this->CI->db_session->userdata('id');
        //$this->CI->user_info = $this->CI->usermodel->getUserById($this->CI->user_id);
        $this->CI->default_shipping = $this->CI->shippingmodel->getDefaultShippingAddressForUser($this->CI->user_id);
        foreach($this->CI->default_shipping->result() as $info)
        {
            $this->CI->shipping_info = array(
                'name'=> $info->name,
                'address'=> $info->address,
                'address_2'=>$info->address_2,
                'company'=>$info->company,
                'city'=>$info->city,
                'state'=>$info->state,
                'zipcode'=>$info->zipcode
            );
            
        }
        
    }


Messages In This Thread
nusoap, wsdls and fedex equals huh? - by El Forum - 12-07-2007, 02:24 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 02-14-2008, 10:46 AM
nusoap, wsdls and fedex equals huh? - by El Forum - 02-14-2008, 01:39 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 02-14-2008, 01:51 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 02-14-2008, 03:43 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 02-14-2008, 03:45 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 03-06-2008, 10:08 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 03-18-2008, 03:20 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 03-18-2008, 03:20 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 03-18-2008, 03:23 PM
nusoap, wsdls and fedex equals huh? - by El Forum - 09-16-2008, 08:21 AM
nusoap, wsdls and fedex equals huh? - by El Forum - 09-16-2008, 08:34 AM
nusoap, wsdls and fedex equals huh? - by El Forum - 09-16-2008, 11:30 AM
nusoap, wsdls and fedex equals huh? - by El Forum - 10-14-2008, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB