Results 1 to 4 of 4
  1. #1

    Default Tax Exempt by Customer Group

    I found this thread http://www.zen-cart.com/showthread.p...Customer-Group and followed what was suggested and my Tax Exempt group is still having taxes added.

    This is from my functions_taxes.php file
    PHP Code:
     function zen_get_tax_rate($class_id$country_id = -1$zone_id = -1) {
        global 
    $db;

        
    // added to make groups tax exempt. See also includes/modules/order_total/ot_group_pricing.php  
            
    if(isset($_SESSION['tax_exempt'])){
                  return 
    0;
            }
        
    // end tax exempt
        
    ... 
    This is from my ot_group_pricing.php file
    PHP Code:
      function get_order_total() {
        global  
    $order;
        
    $order_total_tax $order->info['tax'];
        
    $order_total $order->info['total'];
        if (
    $this->include_shipping != 'true'$order_total -= $order->info['shipping_cost'];
        if (
    $this->include_tax != 'true'$order_total -= $order->info['tax'];
        if (
    DISPLAY_PRICE_WITH_TAX == 'true' && $this->include_shipping != 'true')
        {
          
    $order_total += $order->info['shipping_tax'];
        }
        
    $taxGroups = array();
        foreach (
    $order->info['tax_groups'] as $key=>$value) {
          if (isset(
    $_SESSION['shipping_tax_description']) && $key == $_SESSION['shipping_tax_description'])
          {
            if (
    $this->include_shipping != 'true')
            {
              
    $value -= $order->info['shipping_tax'];
            }
          }
          
    $taxGroups[$key] = $value;
        }
        
    $orderTotalFull $order_total;
        
    $order_total = array('totalFull'=>$orderTotalFull'total'=>$order_total'tax'=>$order_total_tax'taxGroups'=>$taxGroups);

        
    // added to make groups tax exempt. See also includes/functions/functions_taxes.php
            
    $groupname=$group_discount->fields['group_name'];
            if(
    eregi("Tax Exempt",$groupname)){$_SESSION['tax_exempt']=TRUE;}  
        
    // end tax exempt

        
    return $order_total;
      } 
    The name of my group is Wholesale (Tax Exempt)

    I've tried to printout the session variables using this but tax_exempt is not listed:
    PHP Code:
    <!-- Print Session Variables BEGIN -->
    <?php
        session_start
    ();
        foreach (
    $_SESSION as $key=>$val)
        echo 
    "Key <b>".$key."</b> has the value of: <b>".$val."</b><br>"
    ?>
    <!-- Print Session Variables END -->

    What have I done wrong or omitted?
    I was floating in a peaceful sea...rescued by a sinking ship.

  2. #2

    Default Re: Tax Exempt by Customer Group

    Anybody!?!?
    I was floating in a peaceful sea...rescued by a sinking ship.

  3. #3

    Default Re: Tax Exempt by Customer Group

    Isn't there anybody out there that can help me with this?
    I was floating in a peaceful sea...rescued by a sinking ship.

  4. #4

    Default Re: Tax Exempt by Customer Group

    Nevermind -- I see that the add-on has been updated for v1.05

    http://www.zen-cart.com/downloads.php?do=file&id=405
    I was floating in a peaceful sea...rescued by a sinking ship.

 

 

Similar Threads

  1. 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
  2. Tax Exempt by Customer Group
    By TecBrat in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Sep 2009, 03:14 AM
  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