PHP Code:
// this are all the available methods for each shipping provider,
// see that you must set flat methods too!
// CONSTRAINT: Method's names MUST be UNIQUE
$this->mc_shipping_methods = array(
'usps' => array(
'domestic_types' =>
array(
'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail'
),
'international_types' =>
array(
'Express' => 'Global Express Mail (EMS)',
'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
'Airmail Letter' => 'Airmail Letter Post'
),
),
'fedex1' => array(
'domestic_types' =>
array(
),
'international_types' =>
array(
),
),
'ups' => array(
'domestic_types' =>
array(
'1DA' => 'Next Day Air',
'1DAPI' => 'Next Day Air Intra (Puerto Rico)',
'1DP' => 'Next Day Air Saver',
'2DA' => '2nd Day Air',
'3DS' => '3 Day Select',
'GND' => 'Ground'
),
'international_types' =>
array(
'STD' => 'Canada Standard',
'XPR' => 'Worldwide Express',
'XPD' => 'Worldwide Expedited'
),
),
'zones' => array(
'domestic_types' =>
array(
'zones' => 'Zones Rates'
),
'international_types' =>
array(
),
),
'fedexexpress' => array(
'domestic_types' =>
array(
'03' => 'FedEx 2Day',
'05' => 'FedEx Standard Overnight',
'06' => 'FedEx First Overnight',
'20' => 'FedEx Express Saver'
),
'international_types' =>
array(
'03' => 'FedEx International Economy',
'06' => 'FedEx International First'
),
),
'fedexground' => array(
'domestic_types' =>
array(
'90' => 'FedEx Home Delivery',
'92' => 'FedEx Ground Service'
),
'international_types' =>
array(
'90' => 'International Home Delivery',
'92' => 'International Ground Service'
),
),
'freeoptions' => array(
'domestic_types' =>
array(
'freeoptions' => 'Free Options'
),
'international_types' =>
array(
),
),
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),
'international_types' =>
array(
),
),
'perweightunit' => array(
'domestic_types' =>
array(
'perweightunit' => 'Perweight Unit'
),
'international_types' =>
array(
),
),
'storepickup' => array(
'domestic_types' =>
array(
'storepickup' => 'Store Pickup'
),
'international_types' =>
array(
),
),
'flat' => array(
'domestic_types' =>
array(
'flat' => 'GOOGLECHECKOUT_FLAT_RATE_SHIPPING'
),
'international_types' =>
array(
),
),
'item' => array(
'domestic_types' =>
array(
'item' => 'GOOGLECHECKOUT_ITEM_RATE_SHIPPING'
),
'international_types' =>
array(
),
),
'table' => array(
'domestic_types' =>
array(
'table' => 'GOOGLECHECKOUT_TABLE_RATE_SHIPPING'
),
'international_types' =>
array(
),
),
);
$this->mc_shipping_methods_names = array(
'usps' => 'USPS',
'fedex1' => 'FedEx',
'ups' => 'UPS',
'zones' => 'Zones',
'fedexexpress' => 'Fedex Express',
'fedexground' => 'Fedex Ground',
'freeoptions' => 'Free Options',
'freeshipper' => 'Free Shipper',
'perweightunit' => 'Perweight Unit',
'storepickup' => 'Store Pickup',
'flat' => 'Flat Rate',
'item' => 'Item',
'table' => 'Table',
);
Okay, I just realized the above code I posted is from my 1.2RC4REV1. I will post updated code based on 1.3
Bookmarks