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) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Membership automatic status update when a contribution move to Completed
Pages: [1]

Author Topic: Membership automatic status update when a contribution move to Completed  (Read 628 times)

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Membership automatic status update when a contribution move to Completed
February 22, 2012, 02:56:53 am
Dear all,

I need to change the status of a membership linked to the contribution when the contribution move to completed.

I created a post hook to update the membership but it doesn't work because another "standard?" hook already recalculated the membership status, moving it from "whatever" to "new" and adding one year to the membership finish date.

I can't find where this hook is defined so I don't know how to override it.

If someone can give me more details on this behaviour, the way it's defined and also the way to override it, it will be great.

Many thanks,

Fred

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Re: Membership automatic status update when a contribution move to Completed
February 24, 2012, 02:41:56 am
Nobody has an idea?

I try to add a log in all xxxx_civicrm_post method I find but no one seems to be call (so moreover, no one is call after mine).

I also try to add a log in the contribution postProcess (call before mine) and the membership postProcess (not call).

If someone could at least give me detail on which file (not the TPL but the code one) is the entry point when the user click on "SAVE" on the contribution page :

Code: [Select]
<form action ="/civicrm/contact/view/contribution" ...
Many thanks for your help,

Fred

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Membership automatic status update when a contribution move to Completed

This forum was archived on 2017-11-26.