VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: MBroberg on June 25, 2016, 01:13:20 AM

Title: Gift Cards, don't want them taxed
Post by: MBroberg on June 25, 2016, 01:13:20 AM
Hi,

I'm using Joomla 3.5.1 and Virtuemart 3.0.16.  I wish to sell gift cards on my site.  Purchases made by Ohio residents are taxed but they should not be taxed on gift card purchases.  How do I override the sales tax rules for individual products (gift cards).  So far I have been able to fumble my way through most issues I have encountered but I've searched and cannot find any information on this issue.

Thanks,
Mike Broberg
www.OhioPenworks.com
Title: Re: Gift Cards, don't want them taxed
Post by: GJC Web Design on June 25, 2016, 01:41:35 AM
Put them all in one category and filter the tax by cat..
Title: Re: Gift Cards, don't want them taxed
Post by: MBroberg on June 25, 2016, 03:17:49 AM
Thank you for your reply.  They are all in one category, titled "Gift Cards".  I don't know what you mean by filtering them.
Title: Re: Gift Cards, don't want them taxed
Post by: GJC Web Design on June 25, 2016, 11:41:51 AM
screen
Title: Re: Gift Cards, don't want them taxed
Post by: MBroberg on June 25, 2016, 18:37:27 PM
Thanks
Title: Re: Gift Cards, don't want them taxed
Post by: MBroberg on June 27, 2016, 16:53:48 PM
I'm still stuck.  The tax rule I have set up is to charge residents of Ohio 7.5% tax.  I have 4 product categories (Ball Point Pens, Fountain Pens, Roller Ball Pens, Gift Certificates).  I have tried to apply my tax rule to only the categories I want taxed (all except Gift Certificates).  I set it up just as shown in the example above,I've tried dozens of other combinations and cannot get it to not charge tax to Ohio Residents buying Gift Certificates.  Very frustrated.  What on earth am I doing wrong?
Title: Re: Gift Cards, don't want them taxed
Post by: GJC Web Design on June 27, 2016, 19:39:56 PM
have u switched on the debug to see if there is something there to help?
Title: Re: Gift Cards, don't want them taxed
Post by: MBroberg on June 27, 2016, 20:23:22 PM
No,

I am an extreme novice.  If I did turn on debug I doubt that I would know what I was looking at. 
Title: Re: Gift Cards, don't want them taxed
Post by: MBroberg on June 28, 2016, 02:29:08 AM
I was able to solve this issue (well, not me, but I found someone who could tell me how.)  For anyone else who might have this problem here is what I did.

Went to:  www/administrator/components/com_virtuemart/helpers/calculationh.php, line 866

It read:                        if(!empty($rule['subTotal'])) {

I change it to this:      if(isset($rule['subTotal'])) {

So far everything is acting like it is supposed to.

Thanks GJC for your responses. 
Title: Re: Gift Cards, don't want them taxed
Post by: GJC Web Design on June 28, 2016, 19:54:44 PM
and this problem was that the State filtering of the rule was ignored?
Title: Re: Gift Cards, don't want them taxed
Post by: dimi2013 on June 29, 2016, 15:30:59 PM
This is a problem I had as well. I set them up as in the attached images and it's all set. I did, however, create a simple Gift Cards category and then put all the gift cards in there. Didn't override anything.