Installing the USPS patch
After downloading the patch file, extract the contents to a temporary folder on the AbleCommerce server.
-
Copy the new CommerceBuilder.USPS.dll to the \bin\ folder of your AbleCommerce installation.
* If the website is active, it may be necessary to temporarily stop the web service during the copy process.
The new DLL will allow you to create NEW services using the correct USPS names.
If you have existing services setup for USPS, proceed to the next step.
Updating the Database
If you prefer to handle the database update manually, we have provided the SQL script below, which is necessary to update your existing USPS service names.
-
Copy the new file "PatchUSPS.aspx" into your \install\ folder. You may need to create the folder if you don't have it.
e.g. c:\inetpub\wwwroot\youracrootfolder\install\
-
Launch a browser and access the PatchUSPS update.
e.g. http://yourwebsite/install/PatchUSPS.aspx
-
Confirm that you want to run the script, and do so.
-
Remove the \install\ folder and file.
RUN THE FOLLOWING SQL SCRIPT ONLY IF YOU DO NOT COMPLETE STEPS 2 through 5
* The Readme file within your patch will have this script in text form, which may be easier to copy from.
UPDATE ac_ShipMethods SET ServiceCode = 'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery' WHERE ServiceCode = 'Express Mail Sunday/Holiday Guarantee';
UPDATE ac_ShipMethods SET ServiceCode = 'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Flat Rate Envelope' WHERE ServiceCode = 'Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee';
UPDATE ac_ShipMethods SET ServiceCode = 'Express Mail<sup>&reg;</sup> Flat Rate Envelope' WHERE ServiceCode = 'Express Mail Flat Rate Envelope';
UPDATE ac_ShipMethods SET ServiceCode = 'Express Mail<sup>&reg;</sup>' WHERE ServiceCode = 'Express Mail';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup>' WHERE ServiceCode = 'Priority Mail';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> Flat Rate Envelope' WHERE ServiceCode = 'Priority Mail Flat Rate Envelope';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> Small Flat Rate Box' WHERE ServiceCode = 'Priority Mail Small Flat Rate Box';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> Medium Flat Rate Box' WHERE ServiceCode = 'Priority Mail Medium Flat Rate Box';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> Large Flat Rate Box' WHERE ServiceCode = 'Priority Mail Large Flat Rate Box';
UPDATE ac_ShipMethods SET ServiceCode = 'First-Class Mail<sup>&reg;</sup> Letter' WHERE ServiceCode = 'First-Class Mail';
UPDATE ac_ShipMethods SET ServiceCode = 'First-Class Mail<sup>&reg;</sup> Large Envelope' WHERE ServiceCode = 'First-Class Mail Flat';
UPDATE ac_ShipMethods SET ServiceCode = 'First-Class Mail<sup>&reg;</sup> Package' WHERE ServiceCode = 'First-Class Mail Parcel';
UPDATE ac_ShipMethods SET ServiceCode = 'Parcel Post<sup>&reg;</sup>' WHERE ServiceCode = 'Parcel Post';
UPDATE ac_ShipMethods SET ServiceCode = 'Media Mail<sup>&reg;</sup>' WHERE ServiceCode = 'Media Mail';
UPDATE ac_ShipMethods SET ServiceCode = 'Global Express Guaranteed<sup>&reg;</sup> (GXG)' WHERE ServiceCode = 'Global Express Guaranteed (GXG)';
UPDATE ac_ShipMethods SET ServiceCode = 'Global Express Guaranteed<sup>&reg;</sup> Non-Document Rectangular' WHERE ServiceCode = 'Global Express Guaranteed Non-Document Rectangular';
UPDATE ac_ShipMethods SET ServiceCode = 'Global Express Guaranteed<sup>&reg;</sup> Non-Document Non-Rectangular' WHERE ServiceCode = 'Global Express Guaranteed Non-Document Non-Rectangular';
UPDATE ac_ShipMethods SET ServiceCode = 'USPS GXG<sup>&trade;</sup> Envelopes' WHERE ServiceCode = 'USPS GXG Envelopes';
UPDATE ac_ShipMethods SET ServiceCode = 'Express Mail<sup>&reg;</sup> International' WHERE ServiceCode = 'Express Mail International';
UPDATE ac_ShipMethods SET ServiceCode = 'Express Mail<sup>&reg;</sup> International Flat Rate Envelope' WHERE ServiceCode = 'Express Mail International Flat Rate Envelope';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> International' WHERE ServiceCode = 'Priority Mail International';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> International Flat Rate Envelope' WHERE ServiceCode = 'Priority Mail International Flat Rate Envelope';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> International Small Flat Rate Box' WHERE ServiceCode = 'Priority Mail International Small Flat Rate Box';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> International Medium Flat Rate Box' WHERE ServiceCode = 'Priority Mail International Medium Flat Rate Box';
UPDATE ac_ShipMethods SET ServiceCode = 'Priority Mail<sup>&reg;</sup> International Large Flat Rate Box' WHERE ServiceCode = 'Priority Mail International Large Flat Rate Box';
UPDATE ac_ShipMethods SET ServiceCode = 'First-Class Mail<sup>&reg;</sup> International Letter' WHERE ServiceCode = 'First-Class Mail International Letter';
UPDATE ac_ShipMethods SET ServiceCode = 'First-Class Mail<sup>&reg;</sup> International Large Envelope' WHERE ServiceCode = 'First-Class Mail International Large Envelope';
UPDATE ac_ShipMethods SET ServiceCode = 'First-Class Mail<sup>&reg;</sup> International Package' WHERE ServiceCode = 'First-Class Mail International Package';
|