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) »
  • uc_civicrm_products module & memberships
Pages: [1]

Author Topic: uc_civicrm_products module & memberships  (Read 520 times)

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
uc_civicrm_products module & memberships
May 06, 2011, 10:15:25 pm
I'll post this here although it is related to the uc_civicrm_products module, so there is some overlap in terms of functionality.

I spent part of the evening looking at  that module and found a couple of bugs that were leading to memberships not being linked to contributions,  wrong start/end dates and status and managed to fix those, so now I have a membership sign up page using views + Ubercart where every product is a membership or a donation and features are used to specify the membership type and contribution type.

code now works to add contributions and memberships with each membership linked to its individual contribution record, start and  end dates are correct for regular members,  lifetime members, memberships purchased after rollover date (although their status is future, rather than current ???

This is  almost perfect if your members do not happen to renew  early or don't check their membership status and purchase two concurrent memberships (same or different levels)

Some questions:
1) the insert uses   civicrm_contact_membership_create($params)  are there alternatives that would be used to update status/change end date if there is a current existing membership?  (Any pointers to functions in the API  or structure here would be useful :-)  (guess I'll start learning php in more spare time :-)

2)  civicrm 3.4.1 has member upsell -- so that would be useful in this context  (can that be called?)

3) One of the problems with contributions not appearing, was that each contribution's invoice_id was equal.  So I have all my contributions, but no links to the common invoice record.   Any suggestions on how to fix this?  (it sounds like some of the directions in civiAccounts would be helpful here)

Thanks!
m
Merlise Clyde

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • uc_civicrm_products module & memberships

This forum was archived on 2017-11-26.