Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    Default Discussion of various tax-handling methods

    Various reports of issues for Zen Cart's handling of an order's tax have been reported over the years (see this thread for one example). Let's use this current thread as a means of gathering the processing required for various taxing situations in an effort to define the requirements so that we can generate a plan for corrective action.

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,092
    Plugin Contributions
    29

    Default Re: Discussion of various tax-handling methods

    Here is a good chunk of country-specific information from the Dolibarr wiki:
    https://wiki.dolibarr.org/index.php/...rounding_rules

    It may well cover all eventualities...people should have a look at it and comment if their own situation requires something more.
    Steve
    github.com/torvista: Spanish Language Pack, Image Checker, Structured Data, BackupMySQL Admin/Auto, Product Listing Sorter, Redsys payment module...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    Default Re: Discussion of various tax-handling methods

    Nice link, @torvista! I'll be reviewing that over the next couple of days.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    Default Re: Discussion of various tax-handling methods

    Quote Originally Posted by lat9 View Post
    Nice link, @torvista! I'll be reviewing that over the next couple of days.
    ... or months.

    I've come to the conclusion over the past (almost year, now) that the underlying issue's complexity is that there's no centralized point within Zen Cart to provide the region-dependent tax calculations. The storefront calculations are spread among the shopping_cart and orders classes as well as embedded in the shopping_cart page's header. On the admin side, those calculations are spread across the orders.php page as well as various product-types collect-info pages.

    Tax calculations (as mentioned before by @balihr, but I can't locate that posting) are different for stores that display prices with tax and those that don't, as is the point in the calculations at which an amount should be rounded.

    I'm thinking that the storefront should have a defined tax.php class and that the ot_tax.php module should be the centralized point in the order's tax calculations, gathering information collected by the tax.php class and then calculating the order's tax. That class could, for instance, determine on load whether the store is displaying prices with or without taxes and load a calculation module (which could be overridden by a specific store's one-off requirements) that "knows" how to do those calculations.

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,092
    Plugin Contributions
    29

    Default Re: Discussion of various tax-handling methods

    Maybe you should start a Kickstarter for "Fix ZC Rounding Errors", I imagine there is a lot of people who would pay to see that fixed for once, me included!
    Steve
    github.com/torvista: Spanish Language Pack, Image Checker, Structured Data, BackupMySQL Admin/Auto, Product Listing Sorter, Redsys payment module...

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,468
    Plugin Contributions
    2

    Default Re: Discussion of various tax-handling methods

    i am a big fan of tax being done in 1 place, ie ot_tax. people can replace their ot_tax class to calculate tax the way they want....

    i suppose my biggest question would be how many store fronts display prices including tax? i have a feeling it is done more in europe (and other places) than in the US. as i can not think of any place in the US where prices are displayed with tax. it's always after subtotalling.

    but all of these tax functions should be within the ot_tax module, IMO.

    rounding errors are a completely different issue. prices and subtotals displayed on the screen should always add up to the next total. easier said than done.
    practice #socialdistancing NOW! #staythefawayfromme
    email is hard....
    help out with the green....

  7. #7
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,158
    Plugin Contributions
    11

    Default Re: Discussion of various tax-handling methods

    Quote Originally Posted by lat9 View Post
    Tax calculations (as mentioned before by @balihr, but I can't locate that posting) are different for stores that display prices with tax and those that don't, as is the point in the calculations at which an amount should be rounded.
    I described it here with a solution I've used and still use with sites I build (except for US).

    But yeah, I couldn't agree more - one centralized place to do all tax calculations would be GREAT.
    Zen Cart Point of Sale? Sure: ZX POS
    My site - Pro ZC Help | My portfolio | My plugins

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    Default Re: Discussion of various tax-handling methods

    Quote Originally Posted by balihr View Post
    I described it here with a solution I've used and still use with sites I build (except for US).

    But yeah, I couldn't agree more - one centralized place to do all tax calculations would be GREAT.
    Thanks for 'jogging my memory', @balihr! Pulling together these various tax-calculation postings into one thread should be a big help.

 

 

Similar Threads

  1. v151 Controlling Various Shipping Methods per Product
    By khakigirl in forum Customization from the Admin
    Replies: 2
    Last Post: 4 Apr 2013, 05:39 PM
  2. Methods for handling CSS files
    By elmaxx in forum General Questions
    Replies: 11
    Last Post: 14 Jun 2007, 07:21 PM
  3. Downloadable & tangible products in one order with various payment methods
    By mcihelka in forum Managing Customers and Orders
    Replies: 2
    Last Post: 24 May 2007, 06:22 AM
  4. Shipping to various zones, with 2 methods ..how to do this?
    By jack82 in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 6 May 2007, 08:32 AM
  5. Different postage for various payment methods
    By SupuS in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Sep 2006, 04:14 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