Jump to content
fulluvscents

USPS Rate V4, Intl Rate V2 (official support thread)

Recommended Posts

For those of you wondering about osC2.3 stores . . .

I have two stores that were originally set up with Jetta's module found at:

http://addons.oscommerce.com/info/8327 (for osC2.3)

I was able to successfully update them using the module found at:

http://addons.oscommerce.com/info/8702 (for osC2.2)

The update involves replacing one file (includes/modules/shipping/usps.php) with the new version.

Be SURE to follow the instructions for upgrading as provided in the new package.

 

So far, everything seems to be working ok for me. Your mileage may vary.

Share this post


Link to post
Share on other sites

Did you have this module installed and working previously? If not, you need to make the rest of the changes needed for the regular module before it will work.

 

The only other diagnostic involves counting to position 1755 in the XML string sent to USPS. That's tedious but often shows an obvious flaw in the request string.

 

Regards

Jim

Hi Jim, does this update fix international shipping for MVS? If so, it's not posting rates to my shipping calculator. I haven't conducted a test order but normally if it doesn't post to the shipping calculator it won't post to the checkout process, either. Thanks so much for your help, you've been awesome.

Share this post


Link to post
Share on other sites

It should work, depending on how accurate the USPS documentation is. Based on past results, that's not very promising. Try the checkout with a full address -- sometimes the estimator's partial address isn't good enough.

 

If it still doesn't work, please give me an address to test. You can PM it if you don't want to post here.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

It should work, depending on how accurate the USPS documentation is. Based on past results, that's not very promising. Try the checkout with a full address -- sometimes the estimator's partial address isn't good enough.

 

If it still doesn't work, please give me an address to test. You can PM it if you don't want to post here.

 

Regards

Jim

 

Do I need to uninstall the module and then reinstall it for each vendor by the way? I've been just replacing the php file which seemed to work the last time you released a patch.

 

Thanks

 

Geoff

Share this post


Link to post
Share on other sites

It's best to uninstall and reinstall this one. I made some changes to the installer that most of the old modules don't have.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

It's best to uninstall and reinstall this one. I made some changes to the installer that most of the old modules don't have.

 

Regards

Jim

 

Bless you Jim! We're working 100%. Can't thank you enough for your hard work.

 

Thanks

 

Geoff

Share this post


Link to post
Share on other sites

Good news. Even better news that I don't have to mess with this code again.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

You did something wrong. The easiest way to find out what you did is find this line in includes/modules/shipping/usps.php:

 

       // mail( STORE_OWNER_EMAIL_ADDRESS, STORE_OWNER, $mail_body );

 

and uncomment it, then go try again. You will get an email (or 4) that gives you the query and response. look through the response for error messages. If you can't figure it out, post the error here and I'll take a look.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

thanks, I've almost got it working. problem is when people select a shipping method they are still not charged shipping after checkout via paypal.

Share this post


Link to post
Share on other sites

That's more likely a problem with Paypal and not the shipping module.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

well it was working before i installed the module. Im sure i messed up code somewhere. I offer free shipping on orders over $50. any idea where I may have messed up the code?

Share this post


Link to post
Share on other sites

Paypal is a pain to debug. Different versions of the Paypal modules do different things in different ways. The only thing I know to do is trace the value through the code and find where it's going wrong.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Ok now I have things worked out except for the fact that my free shipping module is calculating all possible shipping rates into the minimum amount needed for free shipping.

 

In other words, free shipping is set for $50. An order of $35 will still be eligible for free shipping if there is a USPS option of $7 and another for $10. How can I exclude the USPS rates from the free shipping total.

 

I hope this makes sense.

Share this post


Link to post
Share on other sites

Your free shipping module needs to be using the Subtotal for the order. It sounds like it's using the Total instead. This may be a setting, or you may need to change the code.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

The shipping time estimates are returned buried in the class name, and they need to be peeled out so we can recognize the class. I never got around to coding an option to put them back in. Sorry, but that's not likely to happen on this module.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

man thats disappointing. I mistakenly figured that would be a standard.

 

would it be very difficult to code them in or am I better off looking for another module?

Share this post


Link to post
Share on other sites

It shouldn't be all that hard, but i just don't have the time right now. Look at the clean_services() method -- part of the array it returns is $response_array['Package'][$index]['Postage']['DeliveryDays']. You just need to display that value along with $response_array['Package'][$index]['Postage']['MailService'].

 

Regards

Jim

 

 


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Is there a way to add the large video flat rate box back in both domestic and internationally? We use it a good bit and it seems to be absent in all of the new modules.

Share this post


Link to post
Share on other sites

I don't find a Large Video Flat Rate Box in the list of services returned by USPS, so probably not.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

@@jim

 

USPS has a new shipping term "Parcel Select " it is like ground shipping (2 to 9 days). Not to be confised with "Standard". Is something you can add to this one or the one you are working on? It is a lot cheaper then priorty mail.

Share this post


Link to post
Share on other sites

Probably not for this one, but the new module will automatically pick up all of the services that USPS offers.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×