You are here

function commerce_avatax_page_alter in Drupal Commerce Connector for AvaTax 7.4

Same name and namespace in other branches
  1. 7.5 commerce_avatax.module \commerce_avatax_page_alter()

Implements hook_page_alter().

File

./commerce_avatax.module, line 16
Calculate Sales Tax using AvaTax service from Avalara, Inc.

Code

function commerce_avatax_page_alter() {
  $path = current_path();
  if (module_exists('commerce_tax') && strpos($path, 'admin/commerce/config/taxes') === 0) {
    drupal_set_message(t('Please disable Commerce Tax module to avoid duplicate sales tax line items. Configure Commerce AvaTax !here.', array(
      '!here' => l(t('here'), 'admin/commerce/config/avatax'),
    )));
  }
}