Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2008
    Posts
    50
    Plugin Contributions
    0

    customer issue Mass enabling disabled products

    Hi all,

    I'm having a problem with alot of products being disabled and having google send visitors to them which causes a redirect as the product no longer exists, I think google is penalizing me for this as traffic has haltered since disabling alot of products.

    What I want to do is for all products that are disabled I want to enable them but set the quanity to '0' so that the product will exist but not allow the user to check out.

    I have an idea of how to do it but i'm limited by my sql knowledge, the following in the query I want to run on all my products:-

    Where product active = '0' set product active to '1' and quantity to '0'.

    Can some zen cart wizard please help me out?

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

    Default Re: Mass enabling disabled products

    This will set the Product Quantity to 0 for all Products that are currently disabled:
    UPDATE products SET products_quantity= 0 WHERE products_status= 0;
    This will set all Product Status to enabled for all Products that have a 0 quantity on the stock:
    UPDATE products SET products_status= 1 WHERE products_quantity=0;
    NOTE: backup your database before running these ...
    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.5]
    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!

  3. #3
    Join Date
    Aug 2008
    Posts
    50
    Plugin Contributions
    0

    Default Re: Mass enabling disabled products

    thanks alot ajeh! that did the job

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

    Default Re: Mass enabling disabled products

    Thanks for the update that you were able to update your products to all display on your catalog by setting the products quantity to 0 and then the products status to on ...
    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.5]
    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!

  5. #5
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Idea or Suggestion Re: Mass enabling disabled products

    I want to do a similar thing except I want to set the quantity of all enabled products to 2000 number. How can I do this without having to go through each individual product? If I need to add a bit of code in, where do I put it? As I'm very new to css and editing code!

    Thanks

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

    Default Re: Mass enabling disabled products

    You can run this in the Tools ... Install SQL Patches ...
    Code:
    UPDATE products SET products_quantity = 2000 WHERE products_status =1;
    be sure to backup your database before doing changes in this manner ...
    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.5]
    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!

  7. #7
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: Mass enabling disabled products

    Fantastic thats just the job. Thank you very much!

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

    Default Re: Mass enabling disabled products

    Thanks for the update that this was able to work for you ...
    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.5]
    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. Stop Disabled Products From Showing in New Products for Category?
    By way10c in forum Customization from the Admin
    Replies: 10
    Last Post: 14 Mar 2011, 03:52 AM
  2. Disabled Products show up in New Products for (insert month)
    By LadyMorgana in forum Setting Up Specials and SaleMaker
    Replies: 33
    Last Post: 16 Feb 2010, 12:54 AM
  3. Disabling New Products & Enabling All Products in Category List
    By JRayfield in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Jan 2010, 04:49 PM
  4. New Products For (month) showing disabled products
    By sublime19 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Nov 2008, 06:55 AM
  5. Products from disabled categories show up in New Products on home page.
    By peppyone in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 23 Jun 2008, 07:20 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