function commerce_shipping_commerce_price_component_type_info in Commerce Shipping 7
Same name and namespace in other branches
- 7.2 commerce_shipping.module \commerce_shipping_commerce_price_component_type_info()
Implements hook_commerce_price_component_type_info().
File
- ./
commerce_shipping.module, line 374 - Defines the shipping system and checkout integration.
Code
function commerce_shipping_commerce_price_component_type_info() {
$price_components = array(
'quote' => array(
'title' => t('Shipping costs'),
'display_title' => t('Shipping costs'),
'weight' => -40,
),
);
foreach (commerce_shipping_plugin_get_plugins() as $plugin) {
if (!empty($plugin['price_component'])) {
$price_components['quote_' . $plugin['name']] = $plugin['price_component'];
}
}
return $price_components;
}