Zen Cart Logo
Forums / General Questions / Deleting discontinued products

Deleting discontinued products

Locked

Views: 1,313

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Oct 2007, 3:21 AM
#1
thelatinbarbie avatar

thelatinbarbie

New Zenner

Join Date:
Oct 2007
Posts:
33
Plugin Contributions:
0

Deleting discontinued products

I need to delete over 200 products. Can I delete by bulk or do I have to delete 1 by 1:censored:

12 Oct 2007, 3:26 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting discontinued products

Unfortunately ... there is not a bulk deleter at this time and to delete just the products table based on products_status would leave junk in multiple tables and really make a mess ...

You could write custom code for this to be used in the future ... but for now, unless all the products are in the same category and you want to get rid of the whole category this is not possibly to do enmass ...

12 Oct 2007, 3:37 AM
#3
thelatinbarbie avatar

thelatinbarbie

New Zenner

Join Date:
Oct 2007
Posts:
33
Plugin Contributions:
0

Re: Deleting discontinued products

AWWWW!!! darn, ok thanks anyways:no:

29 May 2008, 11:22 PM
#4
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Deleting discontinued products

Ajeh,

What if you wanted to delete all of your zero quantity items via sql, and you deleted just a portion of the data, then used easy populates built-in clean up function to get the rest of it. Could that work? And if so, could you please share a snippet that will delete zero quantity products?

What I have right now is something you posted a while back in a different thread that "hides" zero quantity items:

UPDATE products SET products_status = 0 WHERE products_quantity <= 0;

Thanks in advance.

1 Jun 2008, 5:00 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting discontinued products

Changing products_status in a bulk manner based on products_quantity = 0 is very different from deleting the product ...

To delete the product you have to also clean up the associated tables:
products
products_description
products_to_categories
products_attributes
products_attributes_download
specials
featured
meta_tags_products_description
customers_basket
customers_basket_attributes
reviews
reviews_description

to name just a few ...

While this could be written to manage all of this, it is not something I can just whip together without really working on thi$ for $ome period of time and te$t everything need to make thi$ a perfect add-on to $ave you time and money ... :cool:

2 Jun 2008, 10:12 PM
#6
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Deleting discontinued products

I do believe I get get what you're $aying:wink2::wink2:

PM me if'n you wanna talk $ome more about thi$.

Thank$

Tom