X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Tax exempt feature for selected memberships v3.4.x (https://forum.x-cart.com/showthread.php?t=3423)

verbic 07-01-2003 11:13 PM

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.

genekurtz 07-02-2003 12:39 AM

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

kpayne 07-02-2003 04:01 AM

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

genekurtz 07-11-2003 12:11 AM

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.

kpayne 07-13-2003 08:50 AM

Heh. Boy is my face reddish.

:oops:

--Kurt

verbic 07-14-2003 04:03 AM

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

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.

genekurtz 07-14-2003 03:41 PM

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

Thanks

genekurtz 07-31-2003 12:04 AM

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.

dealsondeals 07-31-2003 04:52 AM

:D 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

genekurtz 08-01-2003 09:19 PM

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.


All times are GMT -8. The time now is 07:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.