Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Add VAT to all Products (Apart from one Category)

    We've just registered for VAT so we need to add VAT to all products, site wide, apart from a sepcific category.

    I have an SQL query that's switch it on across the board:
    PHP Code:
    UPDATE products set products_tax_class_id 1 where products_tax_class_id 0
    How would I exclude category 350 from this query? Would really appreciate any help here.

  2. #2
    Join Date
    Mar 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Add VAT to all Products (Apart from one Category)

    I'm not so hot on SQL but if you use easy-populate then you could do it easily with that. Most ppl seem to have easy-populate installed :)

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add VAT to all Products (Apart from one Category)

    If that is the master_categories_id on the Products you can use:
    Code:
    UPDATE products set products_tax_class_id = 1 where products_tax_class_id = 0 and master_categories_id != 350;
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 Duplicate all products from one Category to another
    By shags38 in forum General Questions
    Replies: 8
    Last Post: 21 Jan 2016, 07:48 PM
  2. v151 Mass unlink all Categories from one particular category
    By gilby in forum General Questions
    Replies: 10
    Last Post: 16 Nov 2014, 11:25 PM
  3. copy all products from one category to another (not linked)
    By jonnyboy22 in forum General Questions
    Replies: 1
    Last Post: 26 Oct 2011, 03:49 PM
  4. Show +vat and vat included price next to all products throughout the store.
    By garethrooney in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 11 May 2010, 09:33 AM
  5. All Emails working apart from order confirmation
    By Balboa in forum General Questions
    Replies: 3
    Last Post: 22 Feb 2007, 04:25 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