It would be useful to be able to apply a discount to one or more product classes, as an alternative to the existing product- and term-based filters. I often place related products in classes, and the ability to simply select the class for discount would be helpful to my users.

Comments

ryangroe’s picture

Hi jerry,

Sorry for the delay. This issue got lost in the fold. I haven't been using product classes on my site so I am looking into setting things like this up in order to expand the functionality of the module. I am currently starting out at a new job so my free time has been limited. I am trying try to get to everyone's requests on the weekends. Thank you for your patience.

imp7’s picture

I am also see a need for this as the same terms aren't used on all the products I want to discount and I don't want all to share the same discount. Great work you have done on this module so far, it seems to be doing everything I want except this :)

adrianmak’s picture

before ryangroe implement it native in the module, there is a work around.
Use taxonomy term . put a product class to this term and apply discount on this term. DONE

stephthegeek’s picture

Looking for the same thing. Taxonomy is a workaround but it would be cleaner to just be able to apply it to all of a certain class(es).

Thanks!

Sborsody’s picture

The product class of a product is identifiable by the "class id" that gets set when created. This "class id" becomes $node->type for all product nodes of this class instead of the default (the default $node->type being "product"). All the class ids are stored in the uc_product_class table.

It seems a little redundant to duplicate product classes as taxonomy.

Sborsody’s picture

I added filtering by product class to the latest version of my patch against beta33. I think it is useful since new product of a certain class may get added to which one might want to be discounted. You don't have to go back to the discount and add a new SKU or Product name.

See http://drupal.org/node/448624#comment-1859288

Sborsody’s picture

Status: Active » Needs review
ezra-g’s picture

Status: Needs review » Closed (duplicate)

Since this points to another issue, it seems like a duplicate, not one that needs review.