function uc_ups_uc_shipping_method in Ubercart 8.4
Same name and namespace in other branches
- 7.3 shipping/uc_ups/uc_ups.module \uc_ups_uc_shipping_method()
Implements hook_uc_shipping_method().
1 call to uc_ups_uc_shipping_method()
- theme_uc_ups_confirm_shipment in shipping/
uc_ups/ src/ Plugin/ Ubercart/ FulfillmentMethod/ uc_ups.ship.inc - Displays final shipment information for review.
File
- shipping/
uc_ups/ uc_ups.module, line 251 - UPS shipping quote module.
Code
function uc_ups_uc_shipping_method() {
$methods['ups'] = [
'id' => 'ups',
'module' => 'uc_ups',
'title' => t('UPS'),
'operations' => [
'configure' => [
'title' => t('configure'),
'url' => Url::fromRoute('uc_ups.settings')
->toString(),
],
],
'quote' => [
'type' => 'small_package',
'callback' => 'uc_ups_quote',
'accessorials' => UPSUtilities::services(),
],
'ship' => [
'type' => 'small_package',
'callback' => 'uc_ups_fulfill_order',
'file' => 'src/Plugin/Ubercart/FulfillmentMethod/uc_ups.ship.inc',
'pkg_types' => UPSUtilities::packageTypes(),
],
'cancel' => 'uc_ups_void_shipment',
];
return $methods;
}