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) »
  • Hacking the Registration system
Pages: [1]

Author Topic: Hacking the Registration system  (Read 715 times)

ldjosh

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • Developer. Ninja. Gentleman.
Hacking the Registration system
May 24, 2010, 01:37:41 pm
Hey guys,
So here's what I'm working on. I've developed a coupon code system for event registration. the coupons are managed by a component in joomla and stored in a separate database. I've used the preform hook to create the fields, and a jquery function checks the code to see if its invalid or for what the discount value is and returns it in a div to the user (using onkeyup).
My question is really What is the easiest way to apply this discount to the total? I was trying to use the 'postform' option to apply it, but it doesn't seem to apply that on the confirmation page.
Ideally, i'd like to do it this way, so that I can register multiple participants who are all using different discount codes, yet only have 1 person billing

(IE, John, Sue, and Bob are all going, each has a different code for a different discount, but John is paying for everyones.)

If there's any good examples of joomla-civihooks use floating out there anywhere, i'd greatly appreciate the heads up (this is only the beginning of what i need to do for work.)

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: Hacking the Registration system
May 24, 2010, 02:34:13 pm

are you using the multicurrency discount module? as documented here?

http://civicrm.org/node/566

implementing hooks is here: http://civicrm.org/node/631

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

ldjosh

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • Developer. Ninja. Gentleman.
Re: Hacking the Registration system
May 25, 2010, 10:10:45 am
my hooks work, i'm using them for several things. I'm not using that discount module, as there's a LOT of additional things that it needs to do that aren't implemented in that module. the company I work for is moving off of an old, expensive, proprietary system into a joomla-civi environment and I need to recreate what they were using.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Hacking the Registration system

This forum was archived on 2017-11-26.