Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Tax Exempt by Customer Group

    I have seen a few requests and a couple of mods that handle something like this, but here's my simple version:

    Our client offers wholesale discounts at 3 levels. Each level has the word "Wholesale" in the name.

    In includes/modules/order_total/ot_group_pricing.php around line 70 add this, right below the relevant db queries:
    PHP Code:
     // added to make wholesale groups tax exempt. See also includes/functions/functions_taxes.php
    $groupname=$group_discount->fields['group_name'];
    if(
    eregi("Wholesale",$groupname)){$_SESSION['tax_exempt']=TRUE;} 
    then in includes/functions/functions_taxes.php around line 15, at the beginning of function zen_get_tax_rate, add this:
    PHP Code:
        if(isset($_SESSION['tax_exempt'])){
          return 
    0;
        } 
    You could use a different string where I have "Wholesale", like "Tax Exempt". Any group with that string in the name is charged 0 tax. I have not tried this with a group that does not already receive a discount.
    Last edited by TecBrat; 9 Dec 2008 at 09:36 PM.

  2. #2
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Tax Exempt by Customer Group

    This seems promising but I can't seem to get it to work. Could someone tell me exactly where to add the code to includes/modules/order_total/ot_group_pricing.php

    Thanks.

 

 

Similar Threads

  1. v150 Tax Exempt by Customer Group
    By lunabug in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 9 Jul 2012, 07:25 AM
  2. Tax exempt option for customer to choose
    By yamadan in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Feb 2011, 05:11 PM
  3. Customer Tax Exempt
    By numinix in forum All Other Contributions/Addons
    Replies: 46
    Last Post: 5 Jan 2009, 03:11 PM
  4. Please Test - Group Discount Module Clone/Tax Exempt Status Rewrite
    By agsjim in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Dec 2008, 10:41 PM
  5. Making a customer tax exempt
    By fontuna in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 38
    Last Post: 24 Jul 2007, 09:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR