LadyHLG,
Ok so finally had some time to work this issue regarding the local taxes and the customer tax exempt and why it was working and now no local taxes show for any customer.
So on my test site I reinstalled the local taxes module without any local tax modified files for the tax exempt files. And the local taxes appear again and worked for all customers. The tax exempt customers shows the local taxes but not the normal states taxes as I thought would happen. And the normal customers showed the correct local and correct state tax.
So now the problem is to get the local taxes not to show with the tax exempt set to ALL.
Then I uploaded the two files you gave me to work with the tax exempt from the extra functions folder and the order total folder. Then the local taxes disappear from all customers again.
So I think something is not working with the check_exempt_mod() in functions_local_taxes.php:
Code:
//check for exempt mod
function check_exempt_mod(){
// get customer exempt status
global $db;
if ($_SESSION['customer_id']) {
$customers_id = $_SESSION['customer_id'];
$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
}
if ($customer_check->fields['customers_tax_exempt'] = "ALL") {
return false;
}else{
return true;
}
}
I really would love for this to work. Thanks again for such a great mod!
Bookmarks