Shipping Price Table for APO, FPO addresses, and Fedex for everything else.

Posts: 3
Joined: 11/05/2008

Hi everyone,

This is my first post. I am trying to get some guidance on what direction I should pursue to accomplish the following shipping functionality.

1. If the user's shipping address is an APO or FPO address, use the shipping table method which is already set up w/ shipping rates.
2. Otherwise, use the fedex module to provide shipping.

I have searched the forum and found some similar goals expressed but couldn't find something that would work for this.

I am ok w/ writing a custom module to handle it, I just wanted to make sure there wasn't a standard way of accomplishing this first.

Thanks everyone.

Thanks,
Luke

Posts: 3
Joined: 11/05/2008

Update: For now I have edited a copy of the uc_quotes module and added this circa line 1434.

$armed_forces_zones=array('6','7','8','9','10','11','2','21');//this includes Hawaii and Alaska

foreach ($methods as $id => $method) {
if ((in_array($order->delivery_zone,$armed_forces_zones) && strpos($id,'fedex')===0)) {
unset($methods[$id]);
}
if ((!in_array($order->delivery_zone,$armed_forces_zones) && strpos($id,'fedex')!==0)) {
unset($methods[$id]);
}
}

Posts: 974
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

No need to mutilate the core, just use Workflow-ng to check the zone and apply only the shipping method you want to use for that zone. An example differing only in small details from what you need is http://www.ubercart.org/faq/2942.

--

<tr>.