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) »
  • limits on return properties on civicrm_contribution_get
Pages: [1]

Author Topic: limits on return properties on civicrm_contribution_get  (Read 862 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
limits on return properties on civicrm_contribution_get
April 10, 2010, 04:10:30 am
I have been using the civicrm_contribution_get api to get information about a contribution but for some reason not all the fields in the table are available to me.

In particular I can't get the contribution_page_id (if it exists) to build a renew link. (setting return.contribution_page_id doesn't help)

Does this mean someone has made a decision to include some values & not others & this one didn't make the cut? Or is it random?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: limits on return properties on civicrm_contribution_get
April 10, 2010, 05:54:28 am

return.contribution_page_id should theorotically work. can you investigate the code and figure out why it does not :(

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: limits on return properties on civicrm_contribution_get
April 10, 2010, 03:41:10 pm
Hmm - I might not be able to get back to this unless the customer requires it.

The customer wanted to have the drupal user page to be changed so that 'member since' would show the date of the earliest civicrm membership not their Drupal account membership. While I was at it I added a date of when their membership would expire. I thought I would also add a renew now link but I hit this issue and a slightly bigger problem which is providing a renewal link for memberships initiated offline.

My feeling is that there is a case to add another field to the membership types for a default contribution page but I'm not sure what validation issues would crop up - perhaps it's no different to current where the contribution page might have been altered in the meantime.

Anyway, if the customer wants the renew link I'll look into both of these but otherwise I'm afraid this will be on the backburner rather than keeping me up in the wee hours.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • limits on return properties on civicrm_contribution_get

This forum was archived on 2017-11-26.