Forums / General Questions / Mass Removal of Top Products Only.

Mass Removal of Top Products Only.

Locked

Started by zeroca on 13 Mar 2009, 6:08 PM · Views: 1,205

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
13 Mar 2009, 6:08 PM
#1
zeroca avatar

zeroca

New Zenner

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

Mass Removal of Top Products Only.

I have a script that automatically updates my store with products from a distrubutor. The script is setup to automatically move products into certain categories. The being that on ocassion, it will encounter and unexpected category, and it seems to put the items in the top. This causes issues for me as it leaves me with categories and products on the same level which is a no no. The majority of the products the script does this to are things that would not be carried in my store anyway, so I would just like to delete them quickly. Unfortunately, the admin area makes it very slow to bulk delete products. Is there a quicker method via SQL or PHP (neither of which I know :frusty: ) I have tried using Easy Populate and Magnetic One's Store Manager. Neither of these are able to see the products located at the top. Does anyone know of a quick way to mass delete these items. Wish the admin area had this function.

13 Mar 2009, 6:41 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Mass Removal of Top Products Only.

How does the script allocate the products to a category? By changing its master_categories_id, or updating the products_to_categories table, or both? I'm afraid that to answer your question we would need to know more about precisely what your script does and there resulting state of the products.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 Mar 2009, 7:52 PM
#3
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Mass Removal of Top Products Only.

try to look at the product in the php admin.
I have ran into a similar issue when adding products using easy populate, in my case the products that were added to the top categories where linked copy of products inside the categories. In my case I had a backup database so I just restored it and fixed the error in EP.
There is a mod that make it easier to edit products in the download section I think its called Quick Update it make life easy. :clap:

13 Mar 2009, 11:48 PM
#4
zeroca avatar

zeroca

New Zenner

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

Re: Mass Removal of Top Products Only.

kuroi:

How does the script allocate the products to a category? By changing its master_categories_id, or updating the products_to_categories table, or both? I'm afraid that to answer your question we would need to know more about precisely what your script does and there resulting state of the products.

I wish I knew the answer to that question. The script is purchased and encrypted :( . I will try to find out from the developer though.

14 Mar 2009, 12:19 AM
#5
zeroca avatar

zeroca

New Zenner

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

Re: Mass Removal of Top Products Only.

Glamorousshoe:

try to look at the product in the php admin.
I have ran into a similar issue when adding products using easy populate, in my case the products that were added to the top categories where linked copy of products inside the categories. In my case I had a backup database so I just restored it and fixed the error in EP.
There is a mod that make it easier to edit products in the download section I think its called Quick Update it make life easy. :clap:

Very Nice Add-in, but unfortunately, it does not have deleting capability. Would be nice if it had a check box that you could click next to products, and then a mass delete button that would delete checked products.

Thanks or the response though.

14 Mar 2009, 1:15 AM
#6
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Mass Removal of Top Products Only.

use the phpadmin to delete the product from database, you can select the products you want to delete and with one click your done but back up first.

14 Mar 2009, 2:15 AM
#7
zeroca avatar

zeroca

New Zenner

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

Re: Mass Removal of Top Products Only.

Glamorousshoe:

use the phpadmin to delete the product from database, you can select the products you want to delete and with one click your done but back up first.

WOOOHOO.. it worked! Thanks a million. Cant believe I never though to do it that way Looks like I should be able to figure out how to do this SQL. Basically everything I need to delete has a 'Mater Category ID' of 0. Now to figure out how to do this in PHP and run it as a CRON.

14 Mar 2009, 2:01 PM
#8
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Mass Removal of Top Products Only.

Maybe you should rethink your software that you use to upload products. EP works for me all the time and I manage 4 sites.

14 Mar 2009, 4:41 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Mass Removal of Top Products Only.

Note: the basic Product has a record in:

products
products_description
products_to_categories

make sure that you are not leaving records behind ... :unsure:

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!