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:
-
Some of the year ranges do not contain any products so that subcategory will not show up to be automatically ticked.
-
I don’t want the sub-categories under Manufacturers or Products to be automatically ticked.
My questions are:
-
Before I spend days hacking this, does anyone have a better suggestion to achieve the same goal?
-
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...