/** * If the customer is in the EU then tax should be charged according to the * vendor's address, and this function will return true. */ function tax_based_on_vendor_address($ship_to_info_id = '') { global $__tax_based_on_vendor_address; global $vmLogger; if (!isset($__tax_based_on_vendor_address)) { $__tax_based_on_vendor_address = ps_checkout::_tax_based_on_vendor_address($ship_to_info_id); if ($__tax_based_on_vendor_address) { $vmLogger->debug('calculating tax based on vendor address'); } else { $vmLogger->debug('calculating tax based on shipping address'); } } return $__tax_based_on_vendor_address; }