Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Mar 2011
    Location
    guernsey , uk
    Posts
    39
    Plugin Contributions
    0

    red flag how do mass delete all products from one manufacturer?

    hi, not sure how to do this and i wanted to know if there is an easy way to have all products (which are spread across a range of my categories) from just one of my manufaturer, all delleted at the same time.

    is it as simple as just deleing the manufacturer from the list?

    any help please

    mark

  2. #2
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: how do mass delete all products from one manufacturer?

    I don't think it's actually possible to delete the way you described. If you don't want to delete manually you could try using easy populate (it'll take you some time to learn how to use it, but it'll be worth it).

    http://www.zen-cart.com/forum/showthread.php?t=34970

    /soniccc

  3. #3
    Join Date
    Mar 2011
    Location
    guernsey , uk
    Posts
    39
    Plugin Contributions
    0

    Default Re: how do mass delete all products from one manufacturer?

    thanks for reply. not surte where on that thread link to look for the answer as its 102 pages long.

    I use easy populate to upload csv so i understand it a little, but how do i use it to manipulate deleting the producst all from one of the manufacturers?

  4. #4
    Join Date
    Mar 2011
    Location
    guernsey , uk
    Posts
    39
    Plugin Contributions
    0

    Default Re: how do mass delete all products from one manufacturer?

    I have ahd a thought? would this work.
    download csv file of all products.
    on excel, filter out the products wity only the manufature i want to delete.
    add a dummy category for all the products to appear in.
    upload all of these via csv file using easy populate, which should only update each product into the new category.
    then perhaps, i can just delet ethat new category???

    Would any of the old information still reside on the old categories, or linked to other categories?

    would that work?

  5. #5
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do mass delete all products from one manufacturer?

    You could try to fashion an SQL query that will delete it for you from the tables.

    Is it just a general product type? Or have you got extra customised SQL tables for your products?

    If it's just a general product type without extra SQL tables, then you can simply run this line (but change the "manufacturers_id" number 2 to match the one you want to delete):

    PHP Code:
    DELETE FROM products WHERE manufacturers_id '2'
    You run this from the admin page Tools->Install SQL Patches.

    Do make a backup of your SQL database before hand though!

    Edit: Actually, that would leave the products_description entries.

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

    Default Re: how do mass delete all products from one manufacturer?

    This would be a bad idea as there are many tables involved with Products ...
    products
    products_description
    specials
    featured
    reviews
    etc. etc. etc.
    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 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: how do mass delete all products from one manufacturer?

    Ajeh, please remove my previous post. :) Thanks.

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

    Default Re: how do mass delete all products from one manufacturer?

    Actually it is a good post to help people understand that there is more to a Product than just the products table and to not delete them in that manner or they will run into major issues ...
    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!

  9. #9
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: how do mass delete all products from one manufacturer?

    So how do you mass delete old products? Do you really have to delete one at a time?

    Furthermore, if you delete one by one, or possibly mass delete (let say 200 products); would the remaining record id's create a problem? When year after year you create newer and delete old products? Can the table be somehow compacted?
    Using Zen Cart 1.5.1

  10. #10
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: how do mass delete all products from one manufacturer?

    Quote Originally Posted by Kevin205 View Post
    So how do you mass delete old products? Do you really have to delete one at a time?

    Furthermore, if you delete one by one, or possibly mass delete (let say 200 products); would the remaining record id's create a problem? When year after year you create newer and delete old products? Can the table be somehow compacted?
    No need to "compact" anything... the ID is just an auto-increment and is a database's way of assigning a unique identifier to a record.


    If you use Easy Populate, you will see a column called v_status.

    There are THREE possible variables for this column:-

    1 = Product is active and visible
    0 = Product is inactive and hidden (such as when product is out of stock)
    9 = Delete product

    So if you create an Easy Populate spreadsheet of ONLY the products you want removed, and in the v_status column you put the digit - " 9 " against each product, then run that through easy populate - it will delete the products AND THEIR IMAGES...

    If you want to keep the images, then make a backup off the server.
    Last edited by schoolboy; 22 Jan 2013 at 03:58 PM.
    20 years a Zencart User

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 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
  2. how to delete all catagories in one operation?
    By minshop.no in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 9 Aug 2009, 09:00 PM
  3. Delete All Products By Manufacturer
    By milobloom in forum General Questions
    Replies: 4
    Last Post: 16 Jan 2008, 01:28 AM
  4. copy attributes from a products to all products from a certain manufacturer?
    By dedj in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Sep 2007, 03:12 PM
  5. One delete button to delete all checked items from cart
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Jul 2007, 04:41 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR