Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Only taxes the first item in cart...

    Ever since upgrading to 1.3.8 I have what seems to be a unique problem... when someone adds an item to their cart, and they are from Maryland, it charges them state tax just like it should... just like I have it setup. BUT if they add ANOTHER item to their cart, the tax doesn't change. It only ever taxes the first item...

    I've double checked all the tax setup info to be sure nothing was shifted after the upgrade but it all looks the same... I've gone through the check list... I've made sure they are all "taxable goods" items... I've deleted my MD setup for zones and rates and redid them... nothing seems to fix it!

    In short, add a $10 item to cart and it charges 60 cents... then add another 1,2-200 items and the tax never changes.

    Any thoughts?

  2. #2
    Join Date
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Re: Only taxes the first item in cart...

    Whoops.. forgot to mention the store...
    http://www.easternperformance.com

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Only taxes the first item in cart...

    From your Admin, uninstall and reinstall the tax module, does that fix it?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Re: Only taxes the first item in cart...

    Sadly, no. Is it supposed to tax each thing and then add up, or just apply to the total? For this to happen I imagine it is doing it one at a time and then adding, but it never gets to the adding part...

    If I was going to replace a bunch of files from a clean download to try and fix this issue, is there a particular group of files that would be a good place to start? I might just have some file that was corrupted somehow but for fear of losing mods I don't even remember doing anymore, I'd like to replace as little as possible...

    A

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

    Default Re: Only taxes the first item in cart...

    The main calculating logic for taxes at the per-product level is done in /includes/classes/order.php ... where it presently calculates tax for each item individually.
    But, if you've got numerous other addons installed, one of those could be adversely affecting things as well.
    A list of all your addons would be useful information ...
    .

    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.

  6. #6
    Join Date
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Re: Only taxes the first item in cart...

    Thank you for pointing me in the right direction... I actually didn't have too many add-ons at all with this store, but when I was having some issues with having a lot of options slowing down processing one of my programmers had edited query factory for me a bit to help processing. This helped the server drag quite a bit but it caused various issues here and there.. turns out this was one no one had noticed. When I replaced the whole "classes" directory with a clean one this was removed and all was well again. I guess I'll need him to tweak again for taxes!

    Thank you!

    where the changes were made. Six lines in all, lines
    90,91,92,93,205,211.


    // jag20080324 Next four lines implement sql memory caching
    global $sqlMemoryCache;
    if ($sqlMemoryCache{$zf_sql}) {
    return $sqlMemoryCache{$zf_sql};
    } else {



    // jag20080324 Next one line implements sql memory caching
    $sqlMemoryCache{$zf_sql}=$obj;



    // jag20080324 Next curly brace closes implementation of sql memory
    caching
    }

 

 

Similar Threads

  1. only first item in cart getting charged tax?
    By wittyusername in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 23 Jun 2010, 05:02 PM
  2. SaleMaker - only the first item on the list of items shows the sale?
    By Reenie in forum Setting Up Specials and SaleMaker
    Replies: 4
    Last Post: 20 Oct 2009, 11:21 PM
  3. Shipping for first item of category, only
    By froldao in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 27 Apr 2009, 03:20 PM
  4. How to add item in the first page of zen cart?
    By sunzhoujian in forum General Questions
    Replies: 21
    Last Post: 2 Jun 2008, 09:07 AM
  5. blank page after adding an item to the cart / first step checkout....
    By MatchManhattan in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 17 Mar 2008, 09:50 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