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
  #1  
Old 07-01-2003, 11:13 PM
 
verbic verbic is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 310
 

Default Tax exempt feature for selected memberships v3.4.x

This is simple patch that makes one of your membership level tax exempt when using US style taxing system. For version 3.4.x only.

Find this line in include/func.php in function func_calculate_singe

if ($product["free_tax"]=="N")

and replace it with

if (($product["free_tax"]=="N")&&($customer_info[membership] != 'Wholesale'))

This will make users who have membership named Wholesale tax exempt.

No user intreface (it will take much more modifications to make it a real end-user feature) and warrany of course, so use it at your own risk. Thanks.
__________________
Sincerely Yours,
Dmitry Verbichenko
Chief Information Officer
Reply With Quote
  #2  
Old 07-02-2003, 12:39 AM
 
genekurtz genekurtz is offline
 

eXpert
  
Join Date: Jun 2003
Location: US
Posts: 223
 

Default

I just wanted to say thank you Dmitry for your quick response to this dilemna. You guys show that when a problem is found that you WILL respond! Thanks
__________________
Gene Kurtz
The Perfect Game
http://www.perfectgame.biz
866-318-BOWL
Reply With Quote
  #3  
Old 07-02-2003, 04:01 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

You know, in spite of all the crap that they get on the forums, the X-Cart team has dealt pretty well, I think, with the massive growth they've experienced, and they are still pretty skilled and know their product inside and out.

--Kurt
Reply With Quote
  #4  
Old 07-11-2003, 12:11 AM
 
genekurtz genekurtz is offline
 

eXpert
  
Join Date: Jun 2003
Location: US
Posts: 223
 

Default

Dmitry

I placed the code exactly where I was told and when I logged in as a wholesaler it did not charge tax on the product but did charge tax on the shipping still. When I logged in as a retail member it did not charge sales tax on the products for them either. I cleared my cache just in case, closed the browser window and opened another and it still did not charge sales tax for a retail customer. I reloaded the original func.php (yes, I backed it up first) and this still did not correct the problem. I had to go into each product, choose modify and click on the submit button to reinstate it's understanding of tax exempt = no. I had to do this 117 times so I was not thrilled. Needless to say the line of code did not work.
__________________
Gene Kurtz
The Perfect Game
http://www.perfectgame.biz
866-318-BOWL
Reply With Quote
  #5  
Old 07-13-2003, 08:50 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

Heh. Boy is my face reddish.



--Kurt
Reply With Quote
  #6  
Old 07-14-2003, 04:03 AM
 
verbic verbic is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 310
 

Default

Didn't I warned that this mod comes without any warranty

It worked for me but failed in your specific conditions.

Here is an alternative mod:

In the same function find the lines:

#
# Calculate total
#
$total+=$shipping_cost+$tax_cost+$tax_gst+$tax_pst +$giftcerts_cost;

And replace it with:
#
# 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.
__________________
Sincerely Yours,
Dmitry Verbichenko
Chief Information Officer
Reply With Quote
  #7  
Old 07-14-2003, 03:41 PM
 
genekurtz genekurtz is offline
 

eXpert
  
Join Date: Jun 2003
Location: US
Posts: 223
 

Default

I wasn't asking for a warranty :P ...just explaining that the code did not funtion properly but I do appreciate the modified code .

Thanks
__________________
Gene Kurtz
The Perfect Game
http://www.perfectgame.biz
866-318-BOWL
Reply With Quote
  #8  
Old 07-31-2003, 12:04 AM
 
genekurtz genekurtz is offline
 

eXpert
  
Join Date: Jun 2003
Location: US
Posts: 223
 

Default

As an update...I have paid for the tax exempt feature which adds a checkbox in the memberships area for tax exempt. When checked the membership category that it is checked for does not get charged any sales tax. This is awesome as we do a great amount of wholsale business and the resellers already have a tax id number so we do not charge them sales tax. They are responsible for collecting it when they sell the product. This is also good for the tax exempt non profits that buy from us as well. This feature is supposed to be released to everyone as per my arrangement with x-cart. I hope others can benefit from this as well.
__________________
Gene Kurtz
The Perfect Game
http://www.perfectgame.biz
866-318-BOWL
Reply With Quote
  #9  
Old 07-31-2003, 04:52 AM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default

That was very kind of you! I look forward to seeing it.
If you don't mind me asking, was it an expensive MOD?

Glen
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote
  #10  
Old 08-01-2003, 09:19 PM
 
genekurtz genekurtz is offline
 

eXpert
  
Join Date: Jun 2003
Location: US
Posts: 223
 

Default

Not at all. It was $75 and well worth it. I sell to alot of system builders and small computer shops currently using the phone and email and wanted to move this into the x-cart store but the inability to make 1 membership group tax exempt while having another group paying tax was not currently possible. This has created the ability for me to build a store that will save me a ton of time on the phone and responding to emails.
__________________
Gene Kurtz
The Perfect Game
http://www.perfectgame.biz
866-318-BOWL
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 01:03 AM.

   

 
X-Cart forums © 2001-2020