You are here

function _uc_usps_new_package in Ubercart 7.3

Pseudo-constructor to set default values of a package.

1 call to _uc_usps_new_package()
_uc_usps_package_products in shipping/uc_usps/uc_usps.module
Organizes products into packages for shipment.

File

shipping/uc_usps/uc_usps.module, line 920
United States Postal Service (USPS) shipping quote module.

Code

function _uc_usps_new_package() {
  $package = new stdClass();
  $package->price = 0;
  $package->qty = 1;
  $package->pounds = 0;
  $package->ounces = 0;
  $package->container = 0;
  $package->size = 0;
  $package->machinable = TRUE;
  $package->length = 0;
  $package->width = 0;
  $package->height = 0;
  $package->girth = 0;

  //  $package->length_units = 'in';
  //  $package->weight_units = 'lb';
  return $package;
}