How to add support for customers with APO FPO and DPO addresses
CartIt does not have APO FPO and DPO addresses available by default. Luckily this is easy to change; the cartitlib.cgi file contains the Country Codes and American States. Military addresses are in fact US addresses- so for a military address the customer would choose US as the country and either AA, AE, or AP as the State. There are other areas not included such as FM Federated States of Micronesia, MH Marshall Islands, and PW Palau; you can add them easily- just have a look at the file. You can also check the USPS site for the official State abbreviations.
- City field: Use "APO,""FPO," or "DPO."
- State field: Enter the two-letter code for the region where the recipient is stationed. Most often "AE" is used for recipients stationed in Europe, Canada, Africa, or the Middle East; "AA" for the Americas, "AP" for Asia or the Pacific recipients.
- Country field: Always choose "United States" from the drop-down menu.
Here is how to add APO/FPO/DPO support to CartIt:
- ALWAYS backup your files BEFORE making changes.
- Replace your default cartitlib.cgi with this modified cartitlib.cgi file.
- Check that you can create an account as above.
- You may wish to modify cartit_checkout.cgi to add something like: "U.S. Customer: Please enter only your 2 character State or APO/FPO/DPO code" around line 1066.
- Place a test order using an APO/FPO address.
Here is a sample APO address:
Pvt Bailey, Beetle I.
VMM-132
UNIT 99909
FPO AE 09509
09509 is the 5 digit military postal code.
This cartitlib.cgi also corrects a typo in the spelling of Belarus and adds Iraq to the country list.