function uc_global_quote_shipping_method in Ubercart Global Quote 6
Implementation of Ubercart's hook_shipping_method().
1 call to uc_global_quote_shipping_method()
- uc_global_quote_quote in ./
uc_global_quote.module - Standard callback to return a shipping rate via the flat rate method.
File
- ./
uc_global_quote.module, line 29 - Shipping quote module that defines rates based on weight and shipping regions
Code
function uc_global_quote_shipping_method() {
$methods = array();
$enabled = variable_get('uc_quote_enabled', array());
$weight = variable_get('uc_quote_method_weight', array(
'global_quote' => 0,
));
$methods['global_quote'] = array(
'id' => 'global_quote',
'module' => 'uc_global_quote',
'title' => t('Global quote shipping'),
'enabled' => isset($enabled['global_quote']) ? $enabled['global_quote'] : FALSE,
'quote' => array(
'type' => 'order',
'callback' => 'uc_global_quote_quote',
'accessorials' => array(
t('Standard delivery'),
),
),
'weight' => isset($weight['global_quote']) ? $weight['global_quote'] : 0,
);
return $methods;
}