Jump to content
Sign in to follow this  
olsonsp4c

USPS Priority Mail Flat Rate Shipping

Recommended Posts

Quick Fix for Puerto Rico not being noticed as a US Territory, and overcharging by using international rates.

 

open includes > modules > shipping > uspsflat.php

find "if ($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY)" around line 82.

replace with "if (($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY) or ($order->delivery['country']['title'] == 'Puerto Rico'))"

 

Now Puerto Rico will be charged the same prices as domestic. Which is how USPS charges it.

Edited by rannox

Share this post


Link to post
Share on other sites

Hi, this is a GREAT contribution! Thanks to the folks keeping it up!

How hard would it be to add a simple checkbox in the product creation page (admin/cats I guess) that if checked would kill this module from appearing in the checkout process when that particular item is in the cart? Say it would be checked by default, but creating an item where flat rate shipping applies, you can just uncheck the box. Then if customer purchases all flat rate items within the weight limit, great, they get offered flat rate shipping, but if just one items does not qualify, they don't get the option.

Share this post


Link to post
Share on other sites

I just downloaded the latest version from 2009 on a fresh copy of OSC 2.3.1 and when i go to edit the module nothing happens.

 

Any suggestions?

 

Nevermind it was a long night

Share this post


Link to post
Share on other sites

I just downloaded the latest version from 2009 on a fresh copy of OSC 2.3.1 and when i go to edit the module nothing happens.

 

Any suggestions?

 

Nevermind it was a long night

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
Sign in to follow this  

×