Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS Priority Mail Flat Rate Shipping


olsonsp4c

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
Link to comment
Share on other sites

  • 11 months later...
  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

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.

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...