Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    64
    Plugin Contributions
    0

    Default SQL update for Tax Exempt Status module

    Hello,

    I have been working on installing the Tax Exempt Status module for a client of mine. The SQL update throws an error when I run the query. The error is as follows:

    Code:
    1146 Table 'bostec_zencart.bos_zen_customers' doesn't exist
    in:
    [show fields from bos_zen_customers]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    The query that is supplied with the module is this.

    Code:
    CREATE TABLE `zen_tax_exempt` (
      `tax_exempt_id` int(11) NOT NULL auto_increment,
      `tax_exempt_name` varchar(32) NOT NULL default '',
      `tax_exempt_percentage` decimal(5,2) NOT NULL default '0.00',
      `last_modified` datetime default NULL,
      `date_added` datetime NOT NULL default '0001-01-01 00:00:00',
      PRIMARY KEY  (`tax_exempt_id`)
    ) TYPE=MyISAM AUTO_INCREMENT=2 ;
    
    ALTER TABLE zen_customers ADD COLUMN customers_tax_exempt int(11) NOT NULL default '0' AFTER customers_group_pricing;
    My database is named bostec_zencart and the tables are all prefixed with bos_

    To correct the error I need to change the zen_tax_exempt to bos_tax_exempt amd zen_customers to bos_customers.

    Is there anything else that I need to change? Thank you.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,671
    Plugin Contributions
    6

    Default Re: SQL update for Tax Exempt Status module

    That SQL will not work well as it has added the zen_ to all the references to table names as the prefix ...

    You would need to remove those to run that ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jun 2007
    Posts
    64
    Plugin Contributions
    0

    Default Re: SQL update for Tax Exempt Status module

    Quote Originally Posted by Ajeh View Post
    That SQL will not work well as it has added the zen_ to all the references to table names as the prefix ...

    You would need to remove those to run that ...
    Thank you. That worked perfectly.

 

 

Similar Threads

  1. ZenCart 1.3.5 - Super_orders - Batch Status Update
    By SIGEAL in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Jul 2007, 05:21 PM
  2. HTTP Status 404 - cybersource module
    By JC67 in forum Addon Payment Modules
    Replies: 3
    Last Post: 12 Apr 2007, 04:39 AM
  3. Status update e-mail error
    By dandownunder in forum General Questions
    Replies: 2
    Last Post: 9 Aug 2006, 06:03 PM
  4. Orders- Update status of order, delete order or print order paperwork.
    By dandownunder in forum Managing Customers and Orders
    Replies: 6
    Last Post: 8 Aug 2006, 09:11 AM
  5. problem with status update email
    By Zapisto in forum General Questions
    Replies: 4
    Last Post: 22 Jul 2006, 04:33 AM

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
  •