CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviDiscount code for each registrant
Pages: [1]

Author Topic: CiviDiscount code for each registrant  (Read 419 times)

ameltzer

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.5.25
  • PHP version: 5.4.4
CiviDiscount code for each registrant
April 08, 2013, 10:35:47 am
I have installed CiviDiscount 2.1 on CiviCRM 4.2.9 and have both automatic and code-based discounts working with event registrations. What I'd like to do is have a discount code box available for each registrant on a multiple participant form, such that each participant could individually have a code applied or not applied. Looking at cividiscount.php it seems this should be possible, but I'm admittedly a little out of my depth deciphering the logic. If anyone has any pointers as to how this may be achieved, I'd greatly appreciate some direction!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviDiscount code for each registrant
April 08, 2013, 01:49:10 pm

1. This might be a good addition for 3.0  version of cividiscount (there might be a make it happen for this for 4.4)

2. Can you let us know the lines where " it seems this should be possible" for additional participants

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ameltzer

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.5.25
  • PHP version: 5.4.4
Re: CiviDiscount code for each registrant
April 11, 2013, 08:44:34 am
Not entirely certain, but would it be possible to run the buildAmount hook (line 240) for each participant? Add another discount code textfield for additional participants? May be able to pitch in for MIH if this feature could be implemented.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviDiscount code for each registrant
April 11, 2013, 09:15:29 am

Please do give that a shot and let us know if it works. we can help out on irc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviDiscount code for each registrant

This forum was archived on 2017-11-26.