Discount by class?

jerry - March 27, 2009 - 16:44
Project:Ubercart Discounts (Alternative)
Version:6.x-1.0-beta6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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.

#1

ryangroe - April 20, 2009 - 07:46

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.

#2

imp7 - May 25, 2009 - 14:00

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 :)

#3

adrianmak - May 25, 2009 - 21:25

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

#4

stephthegeek - June 14, 2009 - 22:37

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!

#5

Sborsody - July 21, 2009 - 19:54

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.

#6

Sborsody - July 27, 2009 - 22:17

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

#7

Sborsody - July 27, 2009 - 22:18
Status:active» needs review

#8

ezra-g - August 6, 2009 - 15:49
Status:needs review» duplicate

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

 
 

Drupal is a registered trademark of Dries Buytaert.