12 replies [Last post]
ryangroe's picture
Offline
Joined: 02/12/2009
Juice: 24
Was this information Helpful?

I am waiting on a CVS account. Until then I have provided links to my modules.

uc_discounts module:
http://groe.net/drupal/uc_discounts-2009-02-14-1723.zip (updated link x2)

I started writing a Ubercart v2 (drupal v6) discounts module before uc_coupon was recently ported. So I did not intend to duplicate any work but I now have. I evaluated merging my changes with uc_coupon but decided the two modules were too far apart and my module was far enough along to release to the public. Let me stress that I am just beginning formal testing. This is a beta release. I plan to use this module in a production system but only after I complete testing. I welcome comments and bug notices. I will have this on drupal's CVS server as soon as possible. I am also working on simple documentation.

Why this module over uc_coupon? My module does the following that uc_coupon does not (at least that I am aware of):
1. Filtering based on multiple products or multiple terms: choose to filter based on products or terms then select the multiple products or multiple terms that apply to the discounted.
2. Multiple codes or no codes: you can enter one or more codes for a discount or you can choose to make the discount work without a code.
3. Qualification based on quantity: choose the number of items required to qualify for a discount (e.g. buy 5 items to qualify).
4. Checkout preview and javascript callback: you can get a discount quote on the checkout page just like shipping quotes.
5. Speed: should be faster than uc_coupon for mulitple products (as it stands now) because in my module products and terms are stored in separate tables one per row allowing for joins.
6. Weighting: weight discounts and determine the order in which they are applied.
7. Choose which discounts can be combined and which can only applied by themselves.
8. Force qualification based on a single product: if you have a "buy 4 get one free" discount that applies to all of your products, you can insist that a customer buy 4 of the same product to qualify.
9. Provides a CCK-based module for displaying codeless discount inside product pages (requires CCK).

What it does the same:
1. Discount # of products, a percentage or a fixed amount off.
2. Max number of uses.
3. Usage reports.
4. Expiration date.

What my module does not do that uc_coupon does:
1. Filter by user or role.
2. Report totals.
3. Disabling (in my module this is easily done by setting the expiration to a date in the past)

Requirements:
ubercart v2
date_popup (from date module: http://drupal.org/project/date)
CCK (for codeless product property) (http://drupal.org/project/cck)

Installation:
Extract and copy to /sites/all/modules/ or /sites/all/modules/ubercart/. Then install under modules section. The module adds a menu item under "Store administration"/Configuration, and a Reports menu item.

uc_referrals module:
http://groe.net/drupal/uc_referrals-2009-02-14-1723.zip

I wrote a simple referral module without looking too much at the affiliates module. I know my module is not as sophisticated as that module but it is Ubercart v2 and drupal v6 compatible (I'm not sure if the affiliates module has been ported, v2 still lists as Ubercart v1). You create a referral account and get provided a link. Then track referrals in the reports section. This is also a beta release that requires formal testing.

Requirements:
ubercart v2

Installation:
Extract and copy to /sites/all/modules/ or /sites/all/modules/ubercart/. Then install under modules section. The module adds a menu item under "Store administration"/Configuration, and a Reports menu item.

Please use these modules freely (though remember they are provided as-is without warranty). I welcome comments on either.

Thanks,

Ryan

ryangroe's picture
Offline
Joined: 02/12/2009
Juice: 24
Initial testing completed

I finished my initial testing of these two modules and updated the links in the original post to the latest versions. When I get approved for a Drupal CVS account I will add these modules to the Ubercart contributions section.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Initial testing completed

Awesome news. Smiling

ryangroe's picture
Offline
Joined: 02/12/2009
Juice: 24
CVS version available
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: CVS version available

Am i reading the above correctly that the discount can apply if a customer buys a certain number of DIFFERENT products?

example: i sell t-shirts and offer 20% off if a customer buys 4 or more shirts (the same design or different designs, it doesn't matter). Once the 4 shirts are in the cart and user goes to checkout, the discount is applied.

Also, wondering how this applies with attributes? would there be a way to only offer the discount if products with a certain attribute are purchased? for example, not discounts apply if xxl shirts are purchased?

whitegreyblack's picture
Offline
Joined: 08/14/2008
Juice: 18
Re: Re: CVS version available

I don't suppose this module will work with Ubercart 1.x? Sad

It sounds like it's going to do exactly what I need.

I'm also wondering about the functionality to apply a discount to x or more different products, and for certain attributes of that product (what my client wants is a "sample" attribute for his products priced at $2 and for people to receive a $1 discount on each of them if they buy 5 or more).

abramo's picture
Offline
Joined: 06/26/2008
Juice: 17
Re: Custom discounts and referrals modules

Many thanks for your good efforts !!

wiliam_steven's picture
Offline
Joined: 01/20/2009
Juice: 119
Re: Re: Custom discounts and referrals modules

Wow, great module i will test it right know, i will let you know about it.

Thanks

ninjapanda's picture
Offline
Joined: 05/05/2009
Juice: 12
Re: Custom discounts and referrals modules

This is one awesome module. I have been looking to figure out discount with other modules (uc_discount, uc_discounts) which do not work for me. I finally found and tried this. It works perfectly and flawlessly. Easy to configure.

Kudos to you.

Thanks a lot for your great module! Hugely appreciated

blindrocket's picture
Offline
Joined: 12/10/2008
Juice: 52
Re: Custom discounts and referrals modules

This sounds like what I need!

But I have Ubercart 1.3 and Drupal 5.2. Sad

rhl6856's picture
Offline
Joined: 08/21/2009
Juice: 19
this sounds alot like what I need as well

My company has a discount schedule, discountable items get x% off based on how much of them there are in the store.... this plugin looks like it can handle that!

saurabh's picture
Offline
Joined: 07/28/2010
Juice: 3
Manual Discount

I am using ubercart as my POS system and I want a functionality by which admin can add discount to an order manually, I think I can use your module for this functionality can you please guide me weather I should go for it or start from scratch.

ryangroe's picture
Offline
Joined: 02/12/2009
Juice: 24
Give it a shot

http://drupal.org/project/uc_discounts_alt

While the module was intended to be used by customers it should be possible to add admin hooks to apply discounts after-the-fact. If you are alright with applying discounts at check out time then the module should give you most of what you need out of the box.

Ryan