Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Two Sales Tax Fields

    I have two sales tax fields that show up. One is correctly defined in english.php as it shows up as "Sales Tax: $0.00". Functionally, it doesn't do anything, the value is always zero.
    The 2nd field is not defined properly as it shows up during checkout as " : $x.xx". No verbiage. Functionally, it calculates sales tax correctly, and it only shows up during checkout if there is a taxable item in the cart.
    I thought I had solved this problem a while back, but alas, no.

    Any ideas where to begin troubleshooting this will be much appreciated

    Thanks,
    Audra

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Two Sales Tax Fields

    Quote Originally Posted by audradh
    I thought I had solved this problem a while back, but alas, no.
    1. You are suggesting that there is a history to this .... please elaborate.
    2. I can't tell from your post whether you desire to have 2 tax fields, but they're not working as expected, or whether one needs to be removed etc
    3. What mods have you installed on your site?
    4. You recently did a site upgrade. Was that the same site? What's the URL?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Two Sales Tax Fields

    Quote Originally Posted by DrByte
    1. You are suggesting that there is a history to this .... please elaborate.

    Just that it has been going on for a while. I did not notice it until later, so I'm not sure when it happenned.

    2. I can't tell from your post whether you desire to have 2 tax fields, but they're not working as expected, or whether one needs to be removed etc

    Sorry. What I need is one 5% MA sales tax.
    What I have is:
    one 5% MA sales tax that needs a language define (but I'm not sure what it is that needs defining)
    and one "Sales Tax: $0.00" field that is always there and always $0.00, which I do not need.

    3. What mods have you installed on your site?

    Sales Report
    Super Orders
    Column Layout
    Paypal Sessions Viewer
    Product With Attributes Stock
    Master Password
    GeoTrust
    Backup MySQL Admin
    Ad Manager
    Froogle (without SEFU)
    Subscribe
    Subscription Removal
    Zen PDF Creator


    4. You recently did a site upgrade. Was that the same site? What's the URL?
    Yes, the same site. The upgrade is not my live shop, but that is where I am doing the testing and trying to fix this problem. The URL is www.naturewearorganics.com/new_shop

    Thanks for your time

    Audra

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Two Sales Tax Fields

    What's configured in Admin->Locations/Taxes->Tax Rates ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Two Sales Tax Fields

    Tax Class Title:
    Taxable Goods

    Zone:
    Massachusetts

    Tax Rate (%):
    5.0000

    Description:


    Tax rates at the same priority are added, others are compounded.

    Priority:
    1

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Two Sales Tax Fields

    umm ... you are Down for Maintenance ... and we cannot peek ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Two Sales Tax Fields



    Picky picky...OK, no longer down for maintenance. The databases will be upgraded again before going live, so feel free to create accounts and place orders if needed to view the problem in action.

    BTW, as I mentioned, most of my products are not taxable, everything in the category, Sigg Bottles, is taxable and should show the trouble if added to your cart.

    FWIW, this is the define in /includes/languages/my_template/english.php
    Code:
    define('TEXT_UNKNOWN_TAX_RATE', 'Sales Tax');
    that applies to the extraneous Sales Tax field.

    I have intermittent trouble w/ my developers tool kit, but I will try and follow that lead right now.

    Thanks!
    Audra

  8. #8
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Two Sales Tax Fields

    Here is the associated code I was able to find in /includes/functions/functions_taxes.php
    Code:
    // Return the tax description for a zone / class
    // TABLES: tax_rates;
      function zen_get_tax_description($class_id, $country_id, $zone_id) {
        global $db;
        $tax_query = "select tax_description
                      from " . TABLE_TAX_RATES . " tr
                      left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (tr.tax_zone_id = za.geo_zone_id)
                      left join " . TABLE_GEO_ZONES . " tz on (tz.geo_zone_id = tr.tax_zone_id)
                      where (za.zone_country_id is null or za.zone_country_id = '0'
                      or za.zone_country_id = '" . (int)$country_id . "')
                      and (za.zone_id is null
                      or za.zone_id = '0'
                      or za.zone_id = '" . (int)$zone_id . "')
                      and tr.tax_class_id = '" . (int)$class_id . "'
                      order by tr.tax_priority";
    
        $tax = $db->Execute($tax_query);
    
        if ($tax->RecordCount() > 0) {
          $tax_description = '';
          while (!$tax->EOF) {
            $tax_description .= $tax->fields['tax_description'] . ' + ';
            $tax->MoveNext();
          }
          $tax_description = substr($tax_description, 0, -3);
    
          return $tax_description;
        } else {
          return TEXT_UNKNOWN_TAX_RATE;
        }
      }
    Since it is an erroneous field I suppose I could play around w/ commenting lines out, but, rather than break it, I think I will wait for somebody who can actually read php to glance at it for me if they are so inclined.

    Thanks to all of you knowledgeables out there who have been so helpful,
    Audra

  9. #9
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Two Sales Tax Fields

    I have solved the missing define: admin interface: Locations/Taxes->Tax Rates->Define Zones->definition

    I still have the erroneous tax field however.

    I commented out
    Code:
    return TEXT_UNKNOWN_TAX_RATE;
    before finding the missing define and the erroneous field disappeared. Once I put in the missing define, though, the erroneous field came back. Commenting this line out only made the define for the erroneous field go away.

    I'm off to test that again because it just doesn't sound right to me.

    OK, I verified this. If the working sales tax field is defined, then commenting out the above code only makes the define for the erroneous tax field disappear. If the working sales tax field in not defined, and the above code is commented out, then the entire erroneous sales tax field disappears.

    Any ideas?

    Audra
    Last edited by audradh; 12 Jun 2006 at 08:59 PM.

  10. #10
    Join Date
    Dec 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Two Sales Tax Fields

    I am having the same problem all of a sudden. It was working fine before, but I cannot remember changing anything.

    Did you ever find a solution? Right now I am showing AL TAX 4% as well as a Sales Tax: 0 field.

    thanks,
    Angel

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. New York State Sales Tax by Zip Full Database for Local Sales Tax Mod 2011
    By SCHNiKEN in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 11 Apr 2011, 04:51 AM
  2. Replies: 11
    Last Post: 23 Jul 2010, 11:49 AM
  3. My tax is showing two descriptions: GST Tax 5% then also it mentions FL Tax 5%
    By khan2ims in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 22 Sep 2008, 06:41 AM
  4. Sales Tax-Order for $50 or less don't pay sales Tax
    By jhobson in forum Basic Configuration
    Replies: 0
    Last Post: 4 Sep 2008, 05:08 PM
  5. Sales tax for two states
    By FINCHjam in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 21 Apr 2008, 09:42 PM

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