View Single Post
  #18  
Old 06-28-2005, 09:51 AM
 
danbuhler danbuhler is offline
 

Member
  
Join Date: Mar 2005
Location: Fraser Valley, BC
Posts: 24
 

Default

this will show "PST Exempt %0" for memberships that are exempt.
I have it setup so "Tax Exempt" doesn't pay GST or PST, and Associates and PST Exempt don't pay the PST.

in func.php -> func_calculate_taxes()

Look for this:
Code:
foreach($products as $k=>$product) { if (@$product["deleted"]) continue; # for Advanced_Order_Management module if ($product["free_tax"] != "Y") { $product_taxes = func_get_product_taxes($products[$k], $customer_info["login"], true);

Add this right below:
Code:
switch($customer_info["membership"]) { case "Tax Exempt": if (is_array($product_taxes["GST7"])) { $product_taxes["GST7"]["tax_display_name"] = "GST Exempt"; $product_taxes["GST7"]["rate_value"] = 0; } case "PST Exempt": case "Associate": if (is_array($product_taxes["PST7"])) { $product_taxes["PST7"]["tax_display_name"] = "PST Exempt"; $product_taxes["PST7"]["rate_value"] = 0; } break; }
__________________
X-Cart 4.0.13 Gold
Reply With Quote