calculator - USPS API changes -


i have problem usps shipping calculator.

it worked fine until few days back, when international shipping rates stopped working. also, domestic services contain strange characters.

after few searches managed find usps changed service names once again (it's crazy, change service names yearly or so).

my usps calculator older version of wp e-commerce plugin, , had manually define service types want allow international quotes:

$allowed_types = array( 'first-class package international' => 'first-class package international service<sup>™</sup>**'); 

i guess since name changed $allowed_types variable doesn't contain right service , that's why calculator doesn't work anymore international queries.

as domestic queries, available services this:

priority mail 2-day<sup>™</sup> 

the trademark being displayed incorrectly don't know how fix it. tried classic: $key = str_replace('<sup>™</sup>', "", $key); reason doesn't work. if try str_replace else, "priority mail", works. doesn't work trademark sign.

any ideas on how replace characters , how find out what's new name first class package international service? :)

thanks lot, ciprian

array_push($allowed_types, "first-class package international service<sup>™</sup>**"); 

web tools apis


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -