Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to select multiple products by using autocomplete widget?
If it's not, it would be a very nice feature to have an ability not only to select multiple products, but to select an entire "product group", or to select products by taxonomy items as well - to define a single discount value - all in one action.
Comment | File | Size | Author |
---|---|---|---|
#3 | uc_discount.zip | 7.19 KB | jazzitup |
#2 | uc_discount.module_taxonomyterm.patch | 3.05 KB | jeremy.zerr |
Comments
Comment #1
jazzitup CreditAttribution: jazzitup commentedMaybe there is a way to combine this module with "Ubercart Bulk Discount". I've proposed an approach that could perhaps solve some problems in current usability: http://drupal.org/node/664092
Comment #2
jeremy.zerr CreditAttribution: jeremy.zerr commentedI implemented a method to select taxonomy terms to determine products that get discounted in this module.
Here were my requirements:
1. Products allowed to be selected by Catalog taxonomy
- method to find the taxonomy id by matching on Taxonomy name of "Catalog"
2. You can select multiple taxonomy terms
- just like the interface we're used to in selecting terms for a node
3. The taxonomy terms will match with depth
- e.g. select the Widgets term, products with its sub-terms Blue Widgets and Red Widgets will also be discounted
I really like this module and its flexibility because it works through CA, which is why I decided to add this feature to this module instead of modifying uc_discounts_alt that doesn't have feature 3 from above. There are other weaknesses of uc_discounts_alt that are taken care of by design in this module merely because it can re-use lots of other logic through CA.
The patch is attached.
Jeremy Zerr - http://www.zerrtech.com
Comment #3
jazzitup CreditAttribution: jazzitup commentedI have also patched my uc_discount.module with this patch (with your patch included), but now your patch doesn't seem to work:
http://drupal.org/node/597992#comment-2306056
Can you please confirm if it works for you?
Comment #4
haysuess CreditAttribution: haysuess commentedThe patch in #2 worked absolutely perfectly! Exactly what I needed. It is impossible to use the autocomplete when you have hundreds of products. You saved me.
This makes the module MUCH more powerful.