Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Tax exempt feature for selected memberships v3.4.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-29-2003, 12:24 PM
 
boxerbay boxerbay is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 170
 

Default tax exempt mod

this works for 322 also
__________________
Thanks,
Alex.
Too many version to list. I have some on 3.51 and some on the latest version.
Reply With Quote
  #12  
Old 02-28-2004, 03:20 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Quote:
Originally Posted by verbic
Code:
# # Calculate total # $total+=$shipping_cost+$tax_cost+$tax_gst+$tax_pst+$giftcerts_cost;
And replace it with:
Code:
# # Calculate total # if ($customer_info[membership] == 'Wholesale') $tax_cost = 0; $total+=$shipping_cost+$tax_cost+$tax_gst+$tax_pst+$giftcerts_cost;

The added line unconditionaly set US taxes to zero if membership is Wholesale.

Dmitry,

Would this work?

Code:
if ($customer_info[membership] == 'Reseller') $tax_pst = 0; $total+=$shipping_cost+$tax_cost+$tax_gst+$tax_pst+$giftcerts_cost;

I want to make PST ZERO if membership is Reseller.
Reply With Quote
  #13  
Old 03-01-2004, 03:10 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

It does work. Brilliantly in fact.
Reply With Quote
  #14  
Old 03-23-2005, 05:46 PM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default

So what happened?

Quote:
This feature is supposed to be released to everyone as per my arrangement with x-cart.

I use version 4.0.8 but don't see this option anywhere.

I need to implement tax exempt status for multiple account types such as Wholesale 1, Wholesale 2, etc.

I've searched through the forum and found many questions related to this, but no solutions.

Anyone have any ideas on how to do this?
__________________
Version 4.0.8 Live
Reply With Quote
  #15  
Old 03-23-2005, 10:26 PM
 
pengrus pengrus is offline
 

eXpert
  
Join Date: Feb 2004
Posts: 359
 

Default

I didn't even know this even existed. I am on 4.012, and did not find this is available. It'll be great if x-cart can add it in the next upgrade as the 4.012 is stable now so they can enhance it.

Thanks for looking and please reply if you also want this feature so x-cart developers notice it.

Thanks!
__________________
x-cart 4.1.8 Gold
Linux
Reply With Quote
  #16  
Old 04-23-2005, 06:40 PM
 
rjackson7799 rjackson7799 is offline
 

Member
  
Join Date: Jan 2004
Location: Los Angeles
Posts: 24
 

Default

I could really use this mod too. Anybody have a patch for 4.0.12?
__________________
X-Cart 4.4.0
PHP 5.2.5
Reply With Quote
  #17  
Old 06-27-2005, 03:43 PM
 
plesneski plesneski is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 9
 

Default

Would be nice to see it in the core, especially if someone paid to have it put there. For now, this is our solution in the 4.0.x branch:

Somewhere around line 1500 of include/func.php, at the top of function func_calculate_taxes(), find this code:

Code:
$taxes = array(); $taxes["total"] = 0; $taxes["shipping"] = 0; $__taxes = array(); foreach($products as $k=>$product) {

And so forth.... Now, after it sets the shipping taxes to zero and BEFORE the foreach loop starts, add this:

Code:
// dealer-wholesalers don't pay taxes // if (is_wholesale_membership($customer_info['membership'])) { return $taxes; }

Um, we have a custom-built solution for assigning membership levels as "wholesale levels", which is what that is_wholesale_membership() function is, but you can replace that line with the following if you just have one membership level you want to hard-code as the tax-exempt wholesale membership:

Code:
if ($customer_info['membership'] == 'Wholesale')

Change "Wholesale" to whatever your membership level is called.

Cheers,

Paul
__________________
--
Version 4.0.13
Reply With Quote
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:24 PM.

   

 
X-Cart forums © 2001-2020