function _uc_ups_new_package in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_ups/uc_ups.module \_uc_ups_new_package()
- 7.3 shipping/uc_ups/uc_ups.module \_uc_ups_new_package()
Pseudo-constructor to set default values of a package.
1 call to _uc_ups_new_package()
- uc_ups_quote in shipping/
uc_ups/ uc_ups.module - Callback for retrieving a UPS shipping quote.
File
- shipping/
uc_ups/ uc_ups.module, line 901 - Shipping quote module that interfaces with www.ups.com to get rates for small package shipments.
Code
function _uc_ups_new_package() {
$package = new stdClass();
$package->weight = 0;
$package->price = 0;
$package->length = 0;
$package->width = 0;
$package->height = 0;
$package->length_units = 'in';
$package->weight_units = 'lb';
$package->qty = 1;
$package->pkg_type = '02';
return $package;
}