You are here

function _uc_ups_pkg_types in Ubercart 5

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

Convenience function to get UPS codes for their package types.

5 calls to _uc_ups_pkg_types()
uc_ups_form_alter in shipping/uc_ups/uc_ups.module
Implementation of hook_form_alter().
uc_ups_fulfill_order in shipping/uc_ups/uc_ups.module
Shipment creation callback.
uc_ups_shipment_request in shipping/uc_ups/uc_ups.module
Construct an XML shippment request.
uc_ups_shipping_method in shipping/uc_ups/uc_ups.module
Implementation of Übercart's hook_shipping_method().
uc_ups_shipping_quote in shipping/uc_ups/uc_ups.module
Construct an XML quote request.

File

shipping/uc_ups/uc_ups.module, line 1512
Shipping quote module that interfaces with www.ups.com to get rates for small package shipments.

Code

function _uc_ups_pkg_types() {
  return array(
    '01' => t('UPS Letter'),
    '02' => t('Customer Supplied Package'),
    '03' => t('Tube'),
    '04' => t('PAK'),
    '21' => t('UPS Express Box'),
    '24' => t('UPS 25KG Box'),
    '25' => t('UPS 10KG Box'),
    '30' => t('Pallet'),
  );
}