CVS edit link for epari.siva

I have developed a drupal module to add coupon functionality to civicrm event registrations. The project was proposed here http://civicrm.org/blogs/eparisiva . After i worked up with CiviCRM core developers, they advised to build a drupal module and use CiviCRM API to integrate with CiviCRM events. The whole coupon management is done in Drupal API and coupon implementation in CiviCRM API.
For coupon functionality there is already a drupal contrib module called uc_coupon, but it is only for ubercart pages. That module can't be extended to support CiviCRM because it has lot of dependencies on core ubercart module. So i decided to just copy the coupon forms from it, add the CiviCRM integration to it and make it independent from ubercart module.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

siva_epari’s picture

Status: Postponed (maintainer needs more info) » Needs review
Issue tags: +CiviCRM, +coupon
FileSize
13.82 KB

This module depends on CiviCRM and works fine with the latest release civicrm-3.2.5-drupal.tar.gz.

To verify the module:

1. Install CiviCRM following http://wiki.civicrm.org/confluence/display/CRMDOC32/Drupal+Installation+...
2. During installation of CiviCRM give the same databasename as given to drupal installation
3. After installation install civicrm_coupon module
4. Add a new coupon at admin/settings/coupon/add
5. Add a new Paid CiviCRM event at civicrm/event/add&reset=1&action=add
6. After filling all details, save it and edit the fees section
7. In the fees section, check "Enable Pay Later option" to avoid all payment integration fuss
8. Give a "Fee label" and "Amount" in "Regular Fees" section and save it
9. Now in the top menu button "Events links" select "Online Registration(Live)"
10. Give the coupon code and continue
11. The discount will be applied to the amount provided the event fees section
12. To check the usage reports goto admin/settings/coupon/reports

Thank you for reviewing

Regards
Siva

apaderno’s picture

Status: Needs review » Needs work
Issue tags: -CiviCRM, -coupon +Module review

Hello, and thank you for applying for a CVS account. I am adding the review tags, and some volunteers will report what needs to be changed in the code.

As per requirements, the motivation shouls also include a comparison with the existing solutions.

siva_epari’s picture

Status: Needs work » Needs review

Thank you Kiamlaluno.

The existing module for coupons uc_coupon is not extensible for civicrm, because:
1. uc_coupon has dependency on ubercart module. So if somebody wants coupon with civicrm, he has to install the ubercart module for no reason.
2. uc_coupon has lot of additional fields which are required for commerce, but doesn't have fields which are required for civicrm events.
3. Most of the information for filtering coupons is coming from Civicrm which has a different api and database to integrate. This would not be useful who are installing uc_coupon for ubercart purposes.

I think these points are enough to explain why should go for a new module rather than re-using uc_coupon.

siva_epari’s picture

FileSize
8.36 KB

I used coder to cleanup the code and rectify some bugs. Here's a fresh copy of the module.

siva_epari’s picture

Hi all

Can i get to know the status of this application?

Cheers
Siva

donSchoe’s picture

On top of your application is a table:

Status: needs review

siva_epari’s picture

Hi donschoe,

Thanking you for your prompt reply.

I wanted to know if somebody is reviewing it or not, as i see the same status for past 10 days.

~Siva

snarklife’s picture

Hi, Siva

First, thank you so much for creating this - it's a fantastic piece of work. However, I can' seem to getit to work with CiviEvent registrations. Is this because the event I'm testing on uses price sets? Do coupons only work with fixed price events?

Regards,

Snarklife

dharmatech’s picture

We've also created a module to support discount codes with CiviEvent. We wrote it from the ground up so it doesn't have all the uc_coupon code in it and it supports price sets.

http://drupal.org/project/civievent_discount

siva_epari’s picture

Hi dharmatech

Great job and nice effort. This module will help a lot of people who have been waiting for the same from many months. Thanks!

siva_epari’s picture

Hi snarklife

My client only required discounts on fixed price. Glad that dharmatech's module supports price set discounts

siva_epari’s picture

Can anybody review my application? It's been lying around here for a month.

siva_epari’s picture

Can anybody review my application? It's been lying around here from long time.

zzolo’s picture

Component: Miscellaneous » miscellaneous
Status: Needs review » Postponed

Hi. Please read all the following and the links provided as this is very important information about your CVS Application:

Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications

  • The status of this application will be put to "postponed" and by following the instructions in the above link, you will be able to reopen it.
  • Or if your application has been "needs work" for more than 5 weeks, your application will be marked as "closed (won't fix)". You can still reopen it, by reading the instructions above.
apaderno’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

As per previous comment, I am setting this issue as Won't fix.
Since new users can now create full projects, applications have a different purpose and they are handled on a different issue queue. See Apply for permission to opt into security advisory coverage for more information.

apaderno’s picture

Component: miscellaneous » new project application