osCommerceCoders.com

Affordable end to end oscommerce solutions with
Search Engine Optimization

Email : osCommerceCoders@gmail.com
Call : +1 818-574-3596 (USA) / +44 (020) 8123-6463 (UK)

osCommerce USPS Shipping Methods – not working Nov 11, 2013

Posted by admin On November - 14 - 2013

http://addons.oscommerce.com/info/487

This is a fix for the XML returned by USPS, simply replace the /includes/modules/shipping/usps.php from the latest 7.1.0 USPS module with this one.

This causes the characters were showing in the XML response from USPS before and after the “RateV4Response” tags; Numbers were showing inside the “Price” tags

these changes are required in the usps.php file

// Fix for characters before and after the ‘RateV4Response’ tag…
$body = substr($body, strpos($body, ‘‘)+15);

// Fix for malformed ‘Price’ tags…
$body = preg_replace(‘/Price(s+)(d+)(s+)>/’,’Price>’,$body);

// Fix for characters before and after the ‘IntlRateV2Request’ tag…
$body = substr($body, strpos($body, ‘‘)+19);

If you have any issues you can use the contact us page to get support. we charge nominal rates for USPS upgrades.

Sponsors