function _commerce_avatax_transaction_get_ship_from in Drupal Commerce Connector for AvaTax 7.5
Returns the shipFrom address for a transaction.
1 call to _commerce_avatax_transaction_get_ship_from()
- commerce_avatax_create_transaction in includes/
commerce_avatax.calc.inc - Prepares the transaction request array to be sent to AvaTax.
File
- includes/
commerce_avatax.calc.inc, line 248 - AvaTax calculation/requests functions.
Code
function _commerce_avatax_transaction_get_ship_from() {
return array(
'line1' => variable_get(COMMERCE_AVATAX_VAR_PREFIX . 'primary_street1', ''),
'line2' => variable_get(COMMERCE_AVATAX_VAR_PREFIX . 'primary_street2', ''),
'city' => variable_get(COMMERCE_AVATAX_VAR_PREFIX . 'primary_city', ''),
'region' => variable_get(COMMERCE_AVATAX_VAR_PREFIX . 'primary_state', ''),
'country' => variable_get(COMMERCE_AVATAX_VAR_PREFIX . 'primary_country', ''),
'postalCode' => variable_get(COMMERCE_AVATAX_VAR_PREFIX . 'primary_zip', ''),
);
}