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 (Moderator: Donald Lobo) »
  • Modify Contribution amount to add local dues based on profile field
Pages: [1]

Author Topic: Modify Contribution amount to add local dues based on profile field  (Read 598 times)

dnovotny

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Drupal 6.x
  • MySQL version: 5.077
  • PHP version: 5.2.17
Modify Contribution amount to add local dues based on profile field
September 05, 2011, 03:24:31 pm
I have tried using buildForm and buildAmount hooks unsuccesfully, and I am not sure if I am able to modify the amount in the postProcess hook, so if anyone can point me in the right direction I would appreciate it.

I have a contribution form setup, with set dues structure and multiple membership levels. This is all working, and is creating the drupal users. Now what I need is to extend this to use the data provided in one of the custom profile fields (autocomplete select) to get a local chapter dues amount from another table in the MySQL db, and add that into the dues that the member chose, and show them the total of state and local dues on the confirmation page.

I am not using price sets or other amounts, just the minimum fee in the membership types.

Let me know if I left anything out.

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: Modify Contribution amount to add local dues based on profile field
September 05, 2011, 04:03:55 pm

i would check this module:

http://drupal.org/project/civievent_discount

think of your situation as discounting in reverse. based on values entered on the main page, u do a lookup and tweak the total amount field as needed

U'll need to customize the template to display the state and local dues separately.

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

dnovotny

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Drupal 6.x
  • MySQL version: 5.077
  • PHP version: 5.2.17
Re: Modify Contribution amount to add local dues based on profile field
September 06, 2011, 07:22:15 am
Thanks, I will take a look at that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modify Contribution amount to add local dues based on profile field

This forum was archived on 2017-11-26.