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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jazzitup’s picture

Maybe 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

jeremy.zerr’s picture

I 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

jazzitup’s picture

FileSize
7.19 KB

I 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?

haysuess’s picture

The 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.