VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Customer / User Management VM 1.1 => Topic started by: johnstep on October 22, 2010, 01:31:57 am

Title: Tax Exempt Shopper Group
Post by: johnstep on October 22, 2010, 01:31:57 am
I need one shopper group (a reseller group) to receive tax exempt status. I manually approve shoppers for this group and I don't want to set a meaningless discount that confuses shoppers during checkout. I keep seeing this meaningless discount answer posted and am asking for an actual solution.

Is there a hack or a module to add the functionality?

Any help would be greatly appreciated...  Smiley

Thanks!
Title: Re: Tax Exempt Shopper Group
Post by: sshhll on November 02, 2010, 19:56:09 pm
Hello,
      would you able to get the function?
Let me know if you still interested, i did some hack and mod in the VM. I was able to get the function.

PM i'll help you how i did it.

Title: Re: Tax Exempt Shopper Group
Post by: studioblue on December 27, 2012, 22:43:27 pm
Hello,
      would you able to get the function?
Let me know if you still interested, i did some hack and mod in the VM. I was able to get the function.

PM i'll help you how i did it.
Could you help me with this?  I am looking to setup shopper groups that have specific products that are charged tax and then others in the group that are not.  Is there a way to do this or could you post your solution for the above so I can try to get this done.  Thank you.
Title: Re: Tax Exempt Shopper Group
Post by: ryandiaz on February 11, 2014, 19:13:23 pm
Make a shopper group tax exempt:

Pull up this file:   /administrator/components/com_virtuemart/classes/ps_checkout.php
Locate the function:   calc_order_tax
find this line:
if (empty($rate)) {
change this line to:
if (empty($rate) || ($auth['shopper_group_id'] == 7) ) {
CHANGE THE ID # TO YOUR GROUP ID YOU WANT TO EXEMPT FROM TAX, get the ID # from the MYSQL database under jos_vm_shopper_group