Results 1 to 3 of 3
  1. #1

    Default Tax based on Store not working

    I use ZC v.1.3.6. I have tax based on store location, with the country as United States and zone as Tennessee. Everything is set to taxable goods. Since we sell riverboat rides (and therefore do not mail anything) I need the tax to be TN for everyone. But it only charges TN residents TN tax. Any no tax for anything else. I've done all the searching I can for this problem. Help!
    This is the zencart I am currently working on.
    http://www.memphisriverboats.net/cart
    ZC v. 1.3.6
    Super Orders

  2. #2
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: Tax based on Store not working

    Hi there. Did you ever get a reply (pm or otherwise?)

    I just ran into the same problem, and I have apparently fixed it for my 1.3.6 setup. I'd like wilt or drbyte for example to pop in and check my logic before recommending my fix to you, but I will at least share my fix!

    What I found was that the tax calculations are based on country and zone, as you probably know.

    Also, if the customer is logged in, the values for the country and zone are taken from the primary address ('This address is also used as the base for product and service tax calculations.') and stored in your web session (in your database)
    If the customer is not logged in, these values are taken from the store's settings. That seems well and good, but in the case of tax based on store, the values in the customer's session are not necessarily what you want the tax to be calculated on, and, if you don't have any other tax regimes set up, not even the wrong tax rate, but zero tax is applied.

    What I have done is changed that part of the code that tests to see if we want to calculate the tax based on the store location, and at that point absolutely ensure that the values used to calculate the tax are those from the store, not from the customer's session, which may or may not be correct.

    In \includes\functions\functions_taxes

    Change
    PHP Code:
        if (STORE_PRODUCT_TAX_BASIS == 'Store') {
          if (
    $zone_id != STORE_ZONE) return 0;
        } 
    to
    PHP Code:
        if (STORE_PRODUCT_TAX_BASIS == 'Store') {
           
    $country_id STORE_COUNTRY;
           
    $zone_id STORE_ZONE;
        
    // if ($zone_id != STORE_ZONE) return 0;
        

    Let me know if that helps.

    If anyone wants to say I've missed the point and this is a hack, please do so now as I want to go live with my store asap ... I still have one question - http://www.zen-cart.com/forum/showthread.php?t=52138

    Cheers
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

  3. #3

    Default Re: Tax based on Store not working

    Thanks! I changed the code. The sales rep is supposed to let me know if it works. I will then let you know also.

    Btw, I read your other post. You might want to look into Super Orders for being able to add directions on your confirmations.
    This is the zencart I am currently working on.
    http://www.memphisriverboats.net/cart
    ZC v. 1.3.6
    Super Orders

 

 

Similar Threads

  1. Sort Products Based On Price (Low To High) Not Working?
    By Chris_Holmes in forum Basic Configuration
    Replies: 5
    Last Post: 6 Dec 2010, 05:54 AM
  2. Moving a working store to new domain name and not working
    By ksolito in forum General Questions
    Replies: 8
    Last Post: 19 Jun 2009, 07:44 PM
  3. Setting STORE TAX not working?
    By zhoos in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 13
    Last Post: 24 Mar 2009, 03:25 AM
  4. Attributes not adding tax based on product tax choice.
    By rpain in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Nov 2008, 04:09 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