function _uc_ups_new_package in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_ups/uc_ups.module \_uc_ups_new_package()
- 7.3 shipping/uc_ups/uc_ups.module \_uc_ups_new_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 1525 - 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;
}