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 CiviMember (Moderator: Deepak Srivastava) »
  • renew Link - is this only shown for Online Memberships
Pages: [1]

Author Topic: renew Link - is this only shown for Online Memberships  (Read 2189 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
renew Link - is this only shown for Online Memberships
February 16, 2010, 03:00:27 pm
Hi - we have a client who has a load of people that have a membership which was not made Online.

I was expecting to be able to instruct them to 'renew online' by visiting their dashboard (actually the Orgs they have permission over but that is a different story) and clicking on the 'renew now'.

For some I am not seeing the 'renew now' link. Various threads suggest that 'renew now' link will only show on Dashboard if the membership was made online.

Is this so? Seems to be since I just gave myself some online and offline memberships and only the Online show the 'renew now'.

Can you pls provide pointers to an easy fix. This seems a real problem when orgs will want to be pushing more people to making online renewals especially when they may have imported lots of memberships to get their system set up.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: renew Link - is this only shown for Online Memberships
February 17, 2010, 02:11:19 am
The renew now link only shows if there is a contribution page id recorded against their contribution

CRM_Member_BAO_Membership::getContributionPageId is called to create the renew link

Code: [Select]
SELECT c.contribution_page_id as pageID
  FROM civicrm_membership_payment mp, civicrm_contribution c
 WHERE mp.contribution_id = c.id
   AND mp.membership_id = " . CRM_Utils_Type::escape( $membershipID, 'Integer' ) ;

        return CRM_Core_DAO::singleValueQuery( $query,
                                               CRM_Core_DAO::$_nullArray );

However, as Peter points out the membership could be created administratively but still be best renewed by an end user. I suspect the best approach would be to extend the civicrm_membership table with a field for default contribution page id for this membership type but this raises two possible concerns:

1) What if the contribution page is deleted? Also, it might be meddled with in other ways because there is no facility to 'reserve' the page

2) If they had created their membership online would the page they used over-ride the default? I suspect question 1 is the bigger issue to consider
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

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: renew Link - is this only shown for Online Memberships
January 31, 2013, 06:36:32 am
Hello,

Did either of you end up running a query to update the membership records to record a contribution page?  Setting the default membership renewal page will not help me with this issue.  I can't seem to find the table value contribution_page_id in table civicrm_membership_payment.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: renew Link - is this only shown for Online Memberships
January 31, 2013, 06:37:13 am
Nevermind just found it in the civicrm_contribution table.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • renew Link - is this only shown for Online Memberships

This forum was archived on 2017-11-26.