function commerce_avatax_commerce_price_component_type_info in Drupal Commerce Connector for AvaTax 7.3
Same name and namespace in other branches
- 7.5 commerce_avatax.module \commerce_avatax_commerce_price_component_type_info()
- 7.4 commerce_avatax.module \commerce_avatax_commerce_price_component_type_info()
Implements hook_commerce_price_component_type_info().
File
- ./
commerce_avatax.module, line 140 - Calculate Sales Tax using AvaTax Calc 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;
}