USPS july 28, 2013 changes

Looks like there is going to be a few small changes with USPS, which may affect some of us. I received notice from endicia. Here is a link for to there notice.



[url=“http://images.go.endicia.com/Web/PSISystemsIncdbaDymoEndicia/{b3446a28-de37-4dfc-bc0b-61d2fb5eda59}_Endicia_XML_Client_Interface_Product_Advisory_Notice.pdf”]http://images.go.endicia.com/Web/PSISystemsIncdbaDymoEndicia/{b3446a28-de37-4dfc-bc0b-61d2fb5eda59}_Endicia_XML_Client_Interface_Product_Advisory_Notice.pdf[/url]



Dave

Here's the email we received from someone at usps.gov:





[size=“2”][size=2]Web Tools Customer,[/size][/size]

[size=“2”][size=2] [/size][/size]

[size=“2”][size=2]USPS will release updates to the Web Tools APIs on 28 July 2013. The staging environment is currently open for testing your updated applications. You may review staging information and the release notes at the USPS Web Tools site [font=“Times New Roman”][color=“blue”]here[/color][/font] for more details. [/size][/size]

[size=“2”][size=2] [/size][/size]

[size=“2”][size=2]If you rely upon a third-party developer (e.g. software or ecommerce/cart provider) for USPS products and services on your website or your shipping application, please direct any application-specific questions to them.[/size][/size]

[size=“2”][size=2] [/size][/size]

[size=“2”][size=2]For questions and concerns, please contact our customer support at 1-800-344-7779 or [font=“Times New Roman”][color=“blue”][u]uspstechsupport@esecurecare.net[/u][/color][/font].[/size][/size]

[size=“2”][size=2] [/size][/size]

[size=“2”][size=2]Regards,[/size][/size]

[size=“2”][size=2]Web Tools Program Office[/size][/size]

Ugh … USPS Express Mail International and domestic USPS Express Mail no longer work.

Time to find that posting again on how to update to the new name.



Can USPS please stop changing names of the services every 6 months … I mean really.

Hmm … With this post:

[url=“Web Tools Integrator Notice: January 27, 2013 USPS Price Change - Issues & Troubleshooting - CS-Cart and Multi-Vendor Community Forums | Connect with the Community | Find Solutions”]Web Tools Integrator Notice: January 27, 2013 USPS Price Change - Issues & Troubleshooting - CS-Cart and Multi-Vendor Community Forums | Connect with the Community | Find Solutions



I was able to get the new USPS Priority Mail Express International to work, but still not the new USPS Priority Mail Express. :(

In the database table shipping_services, find and replace Express Mail and Express Mail International with the new names (Priority Express Mail and Priority Express Mail International).

In v3.0.6, it's service_id 47 & 43 (respectively).



Then, starting at line 363 edit /shippings/usps.php :

Change this:

} elseif (strpos($service_name, 'EXPRESS MAIL') !== false) {
$service_name = 'EXPRESS MAIL';


Change to this:

} elseif (strpos($service_name, 'PRIORITY MAIL EXPRESS') !== false) {
$service_name = 'PRIORITY MAIL EXPRESS';

[quote name=‘Magpie Don’ timestamp=‘1375109105’ post=‘165982’]

In the database table shipping_services, find and replace Express Mail and Express Mail International with the new names (Priority Express Mail and Priority Express Mail International).

In v3.0.6, it’s service_id 47 & 43 (respectively).



Then, starting at line 363 edit /shippings/usps.php :

Change this:

	  } elseif (strpos($service_name, 'EXPRESS MAIL') !== false) {<br />
	   $service_name = 'EXPRESS MAIL';<br />

```<br />
Change to this:<br />
```php
	  } elseif (strpos($service_name, 'PRIORITY MAIL EXPRESS') !== false) {<br />
	   $service_name = 'PRIORITY MAIL EXPRESS';<br />

```<br />
[/quote]<br />
<br />
<br />
Yeaaaa!!! This also works in 2.2.5 ... Thank you Magpie Don!! <img src="upload://rA9Qa8gnUPZzRZRdI8kt3dpjkrs.png" class="bbc_emoticon" alt=":)">

Thank you all,



This issue was fixed.

The Magpie Don's fix is correct.



So, to fix it you should change this:


} elseif (strpos($service_name, 'EXPRESS MAIL') !== false) {
$service_name = 'EXPRESS MAIL';




To this:


} elseif (strpos($service_name, 'PRIORITY MAIL EXPRESS') !== false) {
$service_name = 'PRIORITY MAIL EXPRESS';




And also apply SQL Patch (attached).


UPDATE cscart_shipping_services SET `code` = 'Priority Mail Express International' WHERE `code` = 'Express Mail International';
UPDATE cscart_shipping_services SET `code` = 'Priority Mail Express' WHERE `code` = 'Express Mail';
UPDATE cscart_shipping_service_descriptions SET `description` = 'Priority Mail Express International' WHERE `description` = 'Express Mail International';
UPDATE cscart_shipping_service_descriptions SET `description` = 'Priority Mail Express' WHERE `description` = 'Express Mail';




Thank you all for the help.

usps_patch.sql

Thank you! Worked well with my v.2.2.5,



Sincerely, Robb