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) »
  • Pending memberships shouldn't have a Renew option on Dashboard
Pages: [1]

Author Topic: Pending memberships shouldn't have a Renew option on Dashboard  (Read 919 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
Pending memberships shouldn't have a Renew option on Dashboard
March 07, 2010, 12:56:40 pm
I picked this up as an issue before but think it deserves its own thread.

On Dashboard, all Pending memberships that were made via online pages show the Renew option.

I don't think this is correct behaviour.

Any pointers for us to Patch?
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: Pending memberships shouldn't have a Renew option on Dashboard
March 07, 2010, 02:04:57 pm
Here's a patch that works for this

Should it go in Core?

The ideal action link for a pending registration is one that allows the registration to be completed (or deleted).

Renewing a pending registration seems incorrect as there is not a completed registration to renew and many (most) pending registrations are previous incomplete efforts (often because of entering an incorrect credit card or something).


Code: [Select]
Index: civicrm/v3.0.2/custom_templates/Member/Page/UserDashboard.tpl
===================================================================
--- civicrm/v3.0.2/custom_templates/Member/Page/UserDashboard.tpl (revision 56)
+++ civicrm/v3.0.2/custom_templates/Member/Page/UserDashboard.tpl (working copy)
@@ -1,3 +1,4 @@
+{* Fuzion edited file so that pending registrations would not have a renew link *}
 <div class="view-content">
 {if $activeMembers}
 <div id="memberships">
@@ -17,7 +18,14 @@
          <td>{$activeMember.start_date|crmDate}</td>
          <td>{$activeMember.end_date|crmDate}</td>
          <td>{$activeMember.status}</td>
-         <td>{if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.renewPageId`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
+ <td>
+ {*Fuzion edit starts*}
+ {if $activeMember.status neq 'Pending'}
+ {if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.renewPageId`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}
+ {/if}
+ {*Fuzion edit ends*}
+
+ </td>
         </tr>
         {/foreach}
         </table>
@@ -47,8 +55,11 @@
          <td>{$inActiveMember.start_date|crmDate}</td>
          <td>{$inActiveMember.end_date|crmDate}</td>
          <td>{$inActiveMember.status}</td>
-         <td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.renewPageId`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
-
+ {*Fuzion edit starts*}
+ {if $inActiveMember.status neq 'Pending'}
+ <td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.renewPageId`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
+ {/if}
+ {*Fuzion edit ends*}
         </tr>
         {/foreach}
         </table>
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

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
Re: Pending memberships shouldn't have a Renew option on Dashboard
March 07, 2010, 03:34:19 pm
Also just spotted that I have a RENEW option against a 'Cancelled' membership.

Should the rules be that Renew is only an option for New, Current, Grace and Expired?
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: Pending memberships shouldn't have a Renew option on Dashboard
March 24, 2010, 05:23:52 pm
Hi,

Does anyone have an opinion on this? We think it would better to put the patch in core but that might just be our take on renewing memberships.

ie. if you renew a pending & make it current the entire membership duration would appear to be from the start of the 'pending' to the new expiry date? That seems wrong
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) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Pending memberships shouldn't have a Renew option on Dashboard

This forum was archived on 2017-11-26.