We have multiple top-level categories on a client's store. We're trying to create a coupon that applies to one of these top level parent categories and all of its children and grandchildren.
There are probably 25+ subcategories and it's very time intensive to select them all via the individual text box / autocomplete setup.
Is there any way to switch the term selection to be recursive?
Failing that, is there any way to modify the term selection to use a multiple select box of all terms, similar to what I've seen in other modules (uc_discount_alt)?
What's the benefit of having the separate, individual text boxes for terms?
Comment | File | Size | Author |
---|---|---|---|
#2 | 1343770_uc_coupon_child_terms.patch | 2.71 KB | millenniumtree |
Comments
Comment #1
wodenx CreditAttribution: wodenx commentedSee also #1121516: Taxonomy term ID dropdown cannot distinguish duplicate terms. I agree with longwave that the best solution would be to support Hierarchical select - this has been on the to-do list for quite some time, but have been too busy to implement. As always patches/sponsorship welcome.
Comment #2
millenniumtreeAttached is a patch that adds (configurable per coupon) the ability to include child terms in the coupon.
You just select the parent terms, and check the box labeled "Also apply/exclude discount for children of the terms below"
Example terms:
Apparel
- T-Shirts
- Sweatpants
If you add 'Apparel' to the coupon, and check the box, then all T-shirts and Sweatpants will also be discounted.
Comment #3
mahimajulka CreditAttribution: mahimajulka commentedThe above patch works like a charm.. Just one thing, instead of taxonomy_get_term function use taxonomy_term_load for DRUPAL 7
Comment #4
hockey2112 CreditAttribution: hockey2112 commentedHi, I am in need of this feature for Drupal 7. I tried the patch from #2 and the suggested edit from #3, but it is not having any effect. Any recommendations on how I can make this work?
Comment #5
hockey2112 CreditAttribution: hockey2112 commentedComment #6
hockey2112 CreditAttribution: hockey2112 commented(sorry for the version changes, my mistake)
Comment #7
hockey2112 CreditAttribution: hockey2112 commentedHere's the workaround I am now using: