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) »
  • How to add a new row instead of updating the lastwhen a membership is purchased?
Pages: [1]

Author Topic: How to add a new row instead of updating the lastwhen a membership is purchased?  (Read 758 times)

Neelam

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
How to add a new row instead of updating the lastwhen a membership is purchased?
November 14, 2012, 11:44:06 pm
Hello,

I am new to civicrm.I had a issue regarding a membership type.

As first time a new member has added and the membership type it purchased is added as a new row.But after expire,if a another membership is purchase than it should be added as a new row,but it didnt.Instead of that it update the last row with membership type,end date,start date.

So anyone can help me to get rid of this problem..

Thanks

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: How to add a new row instead of updating the lastwhen a membership is purchased?
November 15, 2012, 11:44:54 am
This happens  because of membership upsell when you renew membership using online contribution page. So I think you might have to check and fix the code so that expired memberships are not upsell and creates a separate membership record.

HTh
Kurund
Found this reply helpful? Support CiviCRM

Neelam

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: How to add a new row instead of updating the lastwhen a membership is purchased?
November 15, 2012, 10:17:14 pm
Hello Kurund,

Thanks for the quick response,but i am not exactly getting the file in which there must be code for upsell membership record.
Please can you help me out little bit,it will be good for me.I tried at many files but cant get the exact result.

Thanks,

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: How to add a new row instead of updating the lastwhen a membership is purchased?
November 15, 2012, 10:57:55 pm
I think you should check CRM_Member_BAO_Membership::renewMembership(...)

Kurund
Found this reply helpful? Support CiviCRM

Neelam

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: How to add a new row instead of updating the lastwhen a membership is purchased?
November 15, 2012, 11:53:52 pm
Hello Kurund,

Thanks for the quick response.But i am not getting the file exactly in which i can get this function.
Its too much complicated.Can you help me by exactly knowing the file name.Sorry for this.

Thanks,
Neelam

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: How to add a new row instead of updating the lastwhen a membership is purchased?
November 16, 2012, 12:48:13 am
Neelam:

I would recommend reading http://book.civicrm.org/developer/ which will give you brief idea about CiviCRM code structure etc.

HTh
Kurund
« Last Edit: November 16, 2012, 12:55:01 am by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

Neelam

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: How to add a new row instead of updating the lastwhen a membership is purchased?
November 16, 2012, 04:08:13 am
Hello Kurund,

I went through it,but their is update for every feild i.e. membership type,status,end date,start date.its too much complicated.
But then to thanks for helping me out little bit.If you get any else answer then surely sort my problem.

Thanks,
Neelam

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to add a new row instead of updating the lastwhen a membership is purchased?

This forum was archived on 2017-11-26.