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) »
  • capture parameters pass to contribution form via URL
Pages: [1]

Author Topic: capture parameters pass to contribution form via URL  (Read 412 times)

mikesimaska

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla! 3.2.1
  • MySQL version: 5.5.27
  • PHP version: 5.3.16
capture parameters pass to contribution form via URL
June 12, 2014, 05:23:09 am
CMS joomla 3.2
Civi 4.4.4

i have a front end to a donation form which is based on a calendar.  an action on the calendar will generate a URL for contribution form with a few params in the URL.  i'd like the contrib form to pick up those URL params and fill a few fields in the form.   i'd also like to pass along any checksum token that the calendar received and forward it to the contrib form.


what's the best approach to solving this problem?
----
mike simaska
youth education in the arts

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: capture parameters pass to contribution form via URL
June 13, 2014, 11:34:11 am
I think you will have to implement buildForm hook and then have a logic that will fetch the params from url and use it for setting defaults.

Hth
Kurund
Found this reply helpful? Support CiviCRM

mikesimaska

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Joomla! 3.2.1
  • MySQL version: 5.5.27
  • PHP version: 5.3.16
Re: capture parameters pass to contribution form via URL
June 13, 2014, 12:01:24 pm
ok -- this is the path im heading down.

seems like the easiest implementation would be via joomla plugin.  any reason NOT to head down that path?
----
mike simaska
youth education in the arts

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: capture parameters pass to contribution form via URL
June 13, 2014, 12:03:56 pm
Quote
seems like the easiest implementation would be via joomla plugin.  any reason NOT to head down that path?

I would recommend creating a civicrm extension, which is CMS agnostic and if you share this, someone else who wants something similar can use it too for other CMS.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • capture parameters pass to contribution form via URL

This forum was archived on 2017-11-26.