You are here

function _uc_ups_pkg_types in Ubercart 7.3

Same name and namespace in other branches
  1. 5 shipping/uc_ups/uc_ups.module \_uc_ups_pkg_types()
  2. 6.2 shipping/uc_ups/uc_ups.module \_uc_ups_pkg_types()

Convenience function to get UPS codes for their package types.

6 calls to _uc_ups_pkg_types()
uc_ups_admin_settings in shipping/uc_ups/uc_ups.admin.inc
UPS Online Tool settings.
uc_ups_form_alter in shipping/uc_ups/uc_ups.module
Implements hook_form_alter().
uc_ups_fulfill_order in shipping/uc_ups/uc_ups.ship.inc
Shipment creation callback.
uc_ups_shipment_request in shipping/uc_ups/uc_ups.ship.inc
Constructs an XML shipment request.
uc_ups_shipping_quote in shipping/uc_ups/uc_ups.module
Constructs an XML quote request.

... See full list

File

shipping/uc_ups/uc_ups.module, line 959
UPS shipping quote module.

Code

function _uc_ups_pkg_types() {
  return array(
    // Customer Supplied Page is first so it will be the default.
    '02' => t('Customer Supplied Package'),
    '01' => t('UPS Letter'),
    '03' => t('Tube'),
    '04' => t('PAK'),
    '21' => t('UPS Express Box'),
    '24' => t('UPS 25KG Box'),
    '25' => t('UPS 10KG Box'),
    '30' => t('Pallet'),
    '2a' => t('Small Express Box'),
    '2b' => t('Medium Express Box'),
    '2c' => t('Large Express Box'),
  );
}