function commerce_avatax_commerce_price_component_type_info in Drupal Commerce Connector for AvaTax 7.4
Same name and namespace in other branches
- 7.5 commerce_avatax.module \commerce_avatax_commerce_price_component_type_info()
- 7.3 commerce_avatax.module \commerce_avatax_commerce_price_component_type_info()
Implements hook_commerce_price_component_type_info().
File
- ./
commerce_avatax.module, line 112 - Calculate Sales Tax using AvaTax service from Avalara, Inc.
Code
function commerce_avatax_commerce_price_component_type_info() {
// Get Sales Tax description.
$tax_title = variable_get('commerce_avatax_tax_description', '');
$components = array();
// Define a generic AvaTax price component type.
$components['avatax'] = array(
'title' => t('AvaTax sales tax'),
'display_title' => $tax_title,
'weight' => 25,
);
return $components;
}