You are here:  » Change all categories being imported to one defined category

Support Forum



Change all categories being imported to one defined category

Submitted by paddyman on Tue, 2009-12-29 20:14 in

Hi David,

Hope the title of the post explains what I'm looking for. I am developing a niche site around one type of product, but the merchant categories for this product are all different. Without having to use the search and replace filter, is there any other way to just have one defined category.

Hope this makes sense.

Many thanks

Adrian

Submitted by support on Wed, 2009-12-30 10:41

Hi Adrian,

Best place to add the code is probably immediately before the following comment, around line 268 of includes/admin.php:

/* check product record for minimum required fields */

...so to set every product in the category "Widgets", insert:

$importRecord["category"] = "Widgets";

Cheers,
David.

Submitted by paddyman on Wed, 2009-12-30 14:49

Thanks David,

Working Great

Cheers

Adrian