Jump to content

How to make USPS use delivery zipcode NOT invoice zipcode?


Guest heraldmonkey

Recommended Posts

Guest heraldmonkey

Known issue from the Cubecart buglist:

This code in USPS calc.php ignores SHIPPING ZIP code. It always forces billing ZIP code:

if ($basket["delInf"]["postcode"] !== $cc_session->ccUserData['postcode']) {

	$GLOBALS['basket']['delInf']['postcode'] = $cc_session->ccUserData['postcode'];

}




When billing address is different country than US and the billing zip code does not match any US code this error appears:


USPS Error: Please enter a valid ZIP Code for the recipient.

I need a workaround. How can I tell the USPS calc.php to grab the delivery zipcode instead of the billing zipcode?

Thanks

/\/\

Meir

Link to comment
Share on other sites

  • 8 months later...

  • 2 weeks later...
Guest SeanMarlow

Someone PLEASE help us on this! I'm losing my shirt on shipping charges because I have people on the east coast buying from me but shipping to a west coast address. They get the shipping charges calculated based on their invoice zip code.

Link to comment
Share on other sites

  • 4 weeks 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
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...