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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Adjusting Event Fees Based on Payment Method
Pages: [1]

Author Topic: Adjusting Event Fees Based on Payment Method  (Read 1375 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Adjusting Event Fees Based on Payment Method
September 15, 2009, 08:24:24 am
I have a site with 2.2.7 (soon to be 2.2.9) on Drupal 6 and on event registration pages, we would like to adjust the price depending on if the registrant is paying via CC or "pay later," which means a check.

Using either hook_civicrm_buildForm or hook_civicrm_pre I think I could handle the backend adjustments, BUT the page also has a "live" total price generated by JS code.

I presently use hook_civicrm_buildForm to add a surcharge for all online payments, and we disabled the "pay later" option. Those who contact the admins directly and pay by check and are entered manually by staff members do not pay the surcharge.

But in hook_civicrm_buildForm there of course is no access yet to the users payment method.

Can anyone affirm that this is doable and also let me know where the JS code might be located (which updates the price) so that I could determine if I can override or add on to it?

Thank you.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Adjusting Event Fees Based on Payment Method

This forum was archived on 2017-11-26.