CiviCRM Community > Developer Discussion
Buildamount hook clarfication
jeevajoy:
Hi,
I'm using buildmaount hook for event to give membership discount. I'm getting the email address using jquery and checking membership by passing the email id in url and using $_GET method retrieving email. Then using Api to check membership of the email id.
Its working in the register page. it gives the discounted amount. But when i go to the Confirm page it gives Original amount and not the discounted amount.
Any idea.
Kurund Jalmi:
I would suggest checking buildAmount hook implementation at http://svn.civicrm.org/civicrm/branches/v4.1/drupal/civitest.module.sample
Hth
Kurund
probate:
I have been trying for hours to get the buildAmount hook to change the values on a price set for an event registration, but nothing I do makes any difference.
I can update the ['amount'] element and have the changed value displayed in a watchdog message, but there is no change to the value displayed when the event registration page is loaded.
I am also calling the buildForm hook. Could this be overwriting changes?
emilyf:
@probate -- did you get this working? i am having the same issue and can't seem to get it to display on my confirmation page. any help appreciated.
Jag:
Can you tell me how you are checking the form in buildAmount hook
Navigation
[0] Message Index
[#] Next page
Go to full version