If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / add a product to all final sub-categories in one top category branch

add a product to all final sub-categories in one top category branch

Locked

Started by torvista on 10 Nov 2010, 10:52 AM · Views: 591

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
10 Nov 2010, 10:52 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

add a product to all final sub-categories in one top category branch

I have three top categories (Manufacturer, Product Type, Bike Models).

"Bike Models" has over a thousand subcategories arranged for example as

Bike Models

Suzuki
GSXR-600
2001-2005

In the bottom year-range category I have products linked from the manufacturers top category.

What I want is a way to link a (new) product that is valid for all bikes and years to ALL the bottom-level year-range subcategories.

I have been looking at hacking the Multiple Categories Link Manager to do this.

Currently the Multiple Categories Link Manager only shows a list of the categories that contain at least one product.

My first step was to change the tick boxes for these to be all selected, which is relatively easy.

I now need to deal with:

  1. Some of the year ranges do not contain any products so that subcategory will not show up to be automatically ticked.

  2. I don’t want the sub-categories under Manufacturers or Products to be automatically ticked.

My questions are:

  1. Before I spend days hacking this, does anyone have a better suggestion to achieve the same goal?

  2. Has anyone done anything similar they could share?

Thanks
Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...