function hook_commerce_tax_type_calculate_rates in Commerce Core 7
Allows modules to calculate taxes that don't determine applicability through default Rules components.
An implementation might contact a web service and apply the tax to the unit price of the line item based on the returned data.
Parameters
$tax_type: The tax type object whose rates should be calculated.
$line_item: The line item to which the taxes should be applied.
See also
commerce_tax_type_calculate_rates()
1 invocation of hook_commerce_tax_type_calculate_rates()
- commerce_tax_type_calculate_rates in modules/
tax/ commerce_tax.module - Calculates taxes of a particular type by invoking any components that match the tax type.
File
- modules/
tax/ commerce_tax.api.php, line 225 - Documents hooks provided by the Tax module.
Code
function hook_commerce_tax_type_calculate_rates($tax_type, $line_item) {
// No example.
}