Results 1 to 5 of 5
  1. #1

    Need help with Tax Rates and SQL

    After finally figuring out how taxes work, thank god, I made a horrible, horrible, horrible mistake.

    I had multiple tax classes that had been set up by somebody else (wrongly) when only one was needed. Well I deleted the extra ones, but now all my tax rates disappeared from the tax rates pages.

    I'm assuming, and hoping, it is because they are all suddenly not associated with a tax class so they aren't being displayed.

    This is my first Zen Cart install so the table names, etc are still foreign to me. Is it possible to reassign a tax class via the SQL tool to the now invisible tax rates?

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

    Default Re: Need help with Tax Rates and SQL

    How did you delete them ?
    .

    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

    Default Re: Need help with Tax Rates and SQL

    Through the admin interface. Highlight row, delete button in sidebar.

    I deleted it all didn't i? ugh.

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

    Default Re: Need help with Tax Rates and SQL

    Hmmm ... at one time I thought there was a safety on that so you couldn't delete a class if there were rates tied to it. But ... the safety seems to be missing.


    To stitch it back together, try running this SQL statement via Admin->Tools->Install SQL Patch:
    Code:
    INSERT INTO tax_class (tax_class_id, tax_class_title, tax_class_description, date_added) VALUES (1, 'Taxable Goods', 'The following types of products are included: non-food, services, etc', now());
    .

    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

    Default Re: Need help with Tax Rates and SQL

    Thank you. Finally a visit from a Dr that didn't involve me having to cough for him.

    You're the best DR ever.

    I was able to retrieve the invisible tax rates by creating tax classes with ID's between 2-6.

    thanks so much.

 

 

Similar Threads

  1. I need some help with a SQL error
    By sw1138lr in forum Basic Configuration
    Replies: 1
    Last Post: 25 Mar 2013, 12:25 AM
  2. v150 Need some sidebox and sql help
    By PrymlUrg in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 16 Oct 2012, 04:59 AM
  3. Need help with import a large SQL database
    By shahram in forum General Questions
    Replies: 0
    Last Post: 30 Dec 2009, 11:24 AM
  4. Need Help with SQL error
    By kevinmc3 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Apr 2008, 07:31 AM

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