Forums / General Questions / Bulk move or update products into a new category...

Bulk move or update products into a new category...

Locked

Views: 1,626

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
18 Apr 2010, 3:22 PM
#1
iggy73 avatar

iggy73

New Zenner

Join Date:
Feb 2008
Location:
Tampa, FL
Posts:
37
Plugin Contributions:
0

Bulk move or update products into a new category...

So the closest thread I could find on these forums was here:
http://www.zen-cart.com/forum/showthread.php?t=128498&highlight=bulk+move+product

but unfortunately I haven't found any such module. Anyways, I cannot help but think what I want to accomplish would be pretty easy with some SQL. Here's what I want to do:

I have about 2000 products or so that were imported from my manufacturer into a category called "NEW". Amongst these products there are a few hundred different product lines where the product name begins with the name of the product line.

For example:
Adore-701, Adore-702, Adore-702-4, Adore-705
Chic-40, Chic-41, Chic-50
etc etc

The easy part here is that each model line represents a specific feature that is used for categorization. Ergo, all of the Adore-* products would go into category "X", all Chic-* would go to category "Y" and so on.

I should also mention that more than 1 product line could be found within 1 category. As another example, Category "X" might contain products from the Adore-* and Belle-* lines.

What would the SQL query look like if I wanted to select and update all products where name is like "Adore" and move them to a new category?

Likely if I knew this piece, a module could be forthcoming. :P

Question for extra credit: same example as above but instead of moving the product, the update instead links to a new category.

Many, many appreciative thanks in advance for any help someone might have!

:D

SweetLexi.com
The Chic Boutique

18 Apr 2010, 8:36 PM
#2
iggy73 avatar

iggy73

New Zenner

Join Date:
Feb 2008
Location:
Tampa, FL
Posts:
37
Plugin Contributions:
0

Re: Bulk move or update products into a new category...

Nevermind... I'm getting schooled on how cool the Easy Populate mod is.

For those who don't know - go here:
http://www.zen-cart.com/wiki/index.php/Easy_Populate

:smartalec:

SweetLexi.com
The Chic Boutique