dbrewster: I downloaded the newest version of the module from the zen cart site. I like the mod however I had some troubles in getting it to work properly.
It seems there is a 2 sections of code labeled
Code:
//Absolute Solutions Edit
These sections of code appear to be absolute reset sections that allow full control over the variables, which is great but it took me a bit to find and comment them out. Maybe in future releases mention that this needs to be commented out in the documentation.
Furthermore, one minor improvement I made was to make the display name of the tax class display , instead of the generic 'Tax Exempt:'
Place this :
Code:
$this->title = $tax_exempt_discount->fields['tax_exempt_name'];
under this :
Code:
function process() {
global $db, $order, $currencies;
$tax_exempt_query = $db->Execute("select customers_tax_exempt from " . TABLE_CUSTOMERS . " where customers_id = '" . $_SESSION['customer_id'] . "'");
if ($tax_exempt_query->fields['customers_tax_exempt'] != '0') {
$tax_exempt_discount = $db->Execute("select tax_exempt_name, tax_exempt_percentage from " . TABLE_TAX_EXEMPT . " where
tax_exempt_id = '" . $tax_exempt_query->fields['customers_tax_exempt'] . "'");
$order_total = $this->get_order_total();
$gift_vouchers = $_SESSION['cart']->gv_only();
$discount = ($order_total - $gift_vouchers) * $tax_exempt_discount->fields['tax_exempt_percentage'] / 100;
This might not work great in mulit-lingual sites but in single language sites It is great as it allows you to give your customers more description on what exemption they are receiving, which accountants always like.
Other than that it seems like a great module thanks a bunch.
Bookmarks