Ok I'm trying to remember how I did this but here are the edits that I can remember. If your having issues after adding these let me know what the issue is and make sure you do the edits I have provided.
Open /shipping/shipping.php
Find the following:
Code:
func_https_ctl('IGNORE');
After add the following:
Code:
$military = array("AP","AE","AA");
if (in_array($userinfo['s_state'], $military)){
$shipmilitary = "Y";
$smarty->assign("military","Y");
}
Find:
Code:
$intershipper_rates = func_shipper($data['items'], $userinfo, $data['seller_address'], 'N', $cart);
Replace with:
Code:
$intershipper_rates = func_shipper($data['items'], $userinfo, $data['seller_address'], 'N', $cart, $shipmilitary);
Find:
Code:
if (!empty($active_modules["UPS_OnLine_Tools"]) && $config["Shipping"]["use_intershipper"] != "Y") {
Replace with:
Code:
if (!empty($active_modules["UPS_OnLine_Tools"]) && $config["Shipping"]["use_intershipper"] != "Y" && !$shipmilitary) {
Find:
Code:
if (!empty($active_modules["UPS_OnLine_Tools"]) && $config["Shipping"]["realtime_shipping"] == "Y" && $config["Shipping"]["use_intershipper"] != "Y") {
Replace with:
Code:
if (!empty($active_modules["UPS_OnLine_Tools"]) && $config["Shipping"]["realtime_shipping"] == "Y" && $config["Shipping"]["use_intershipper"] != "Y" && !$shipmilitary) {
SAVE THIS FILE & UPLOAD.
Open /shipping/myshipper.php
Find:
Code:
function func_shipper ($items, $userinfo, $orig_address, $debug="N", $cart=false) {
Replace with:
Code:
function func_shipper ($items, $userinfo, $orig_address, $debug="N", $cart=false, $shipmilitary=false) {
Find:
Code:
$ups_rates_only = (!empty($active_modules["UPS_OnLine_Tools"]) && $current_carrier == "UPS");
Replace with:
Code:
$ups_rates_only = (!empty($active_modules["UPS_OnLine_Tools"]) && $current_carrier == "UPS" && !$shipmilitary);
Find:
Code:
if ($ups_rates_only) {
$alt_ship_mods[] = "AP";
} else {
$ship_mods[] = "AP";
}
Replace with:
Code:
//if ($ups_rates_only) {
$alt_ship_mods[] = "AP";
//} else {
$ship_mods[] = "AP";
//}
if ($shipmilitary){
x_session_register("current_carrier","USPS");
}
Find:
Code:
$mods = array("USPS", "CPC", "ARB", "FEDEX");
Replace with:
Code:
$mods = array("USPS", "CPC", "ARB", "FEDEX", "UPS");
Find:
Code:
elseif (!empty($active_modules["UPS_OnLine_Tools"]) && $current_carrier != "UPS") {
Replace with:
Code:
elseif (!empty($active_modules["UPS_OnLine_Tools"]) && $current_carrier != "UPS" && !$shipmilitary) {
SAVE & UPLOAD
Login to your x-cart admin area and under "Management" click on "States" and add the following to the list under (United State of America):
Code:
Code State
----- -----
AE Armed Forces (AE)
AA Armed Forces Americas (AA)
AP Armed Forces Pacific (AP)
LAST follow the instructions in post #1 that this user has provided.
http://forum.x-cart.com/showthread.php?t=51646
Once you have done all of this you are DONE.

ENJOY...