From 919a074368e9f781878cc26b4fd6f6076fca95e0 Mon Sep 17 00:00:00 2001 From: billynoah Date: Thu, 6 Aug 2015 17:24:52 -0400 Subject: [PATCH] Update usps.php As outlined in section 2.3.1 of this USPS technical document (https://www.usps.com/business/web-tools-apis/2015-may-webtools-release-notes.rtf), the value is required to obtain Priority Mail International non-Flat Rate pricing and availability for Canada destinations. --- upload/catalog/model/shipping/usps.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upload/catalog/model/shipping/usps.php b/upload/catalog/model/shipping/usps.php index 35e2b1c2e9b..f9b333efc46 100644 --- a/upload/catalog/model/shipping/usps.php +++ b/upload/catalog/model/shipping/usps.php @@ -280,6 +280,7 @@ public function getQuote($address) { if (isset($country[$address['iso_code_2']])) { $xml = ''; + $xml .= ' 2'; $xml .= ' '; $xml .= ' ' . $pounds . ''; $xml .= ' ' . $ounces . ''; @@ -302,6 +303,7 @@ public function getQuote($address) { $xml .= ' ' . $this->config->get('usps_length') . ''; $xml .= ' ' . $this->config->get('usps_height') . ''; $xml .= ' ' . $this->config->get('usps_girth') . ''; + $xml .= ' ' . substr($this->config->get('usps_postcode'), 0, 5) . ''; $xml .= ' N'; $xml .= ' '; $xml .= ''; @@ -471,4 +473,4 @@ public function getQuote($address) { return $method_data; } -} \ No newline at end of file +}