internal_name = "usps"; $this->name="USPS"; $this->is_external=true; $this->requires_curl=true; $this->needs_zipcode=true; return true; } function getId() { return $this->usps_id; } function setId($id) { $usps_id = $id; return true; } function getName() { return $this->name; } function getInternalName() { return $this->internal_name; } function getForm() { $output="
'.print_r($body, true).''); curl_close($ch); //exit($body); $rates=array(); $response=array(); while (true) { if ($start = strpos($body, '
".print_r($body,1).""); $rates = array(); if ($dest == get_option('base_country')) { if (sizeof($response) == '1') { if (ereg('
'.print_r($uspsQuote,true).''); return $uspsQuote; } function get_item_shipping() { } } $usps = new usps(); $wpsc_shipping_modules[$usps->getInternalName()] = $usps; ?>