You are here

function commerce_avatax_update_8101 in Drupal Commerce Connector for AvaTax 8

Add the "customer_code_field" setting.

File

./commerce_avatax.install, line 14
Provides install and update hooks for Commerce AvaTax.

Code

function commerce_avatax_update_8101() {
  $config = \Drupal::configFactory()
    ->getEditable('commerce_avatax.settings');
  $config
    ->set('customer_code_field', 'mail')
    ->save();
}