Answers.Body: <p>Chris,</p>
  
  <p>I just tested this on my site, and you're right.   </p>
  
  <p>If you have the "Pay Later" option selected, the auto-renewal checkbox does not appear.   </p>
  
  <p>The checkbox should always appear, and then when the page goes through verification if 'Pay Later' is selected, and the 'auto-renew' box is selected, that should throw an error to the user.</p>
  
  <p>I've created an issue report on this:</p>
  
  <p><a href="https://issues.civicrm.org/jira/browse/CRM-18299" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-18299</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-26T14:59:44.607Z
Answers.Text: Thanks. There's also the problem of the checkbox being readonly and checked when auto-renew is optional which I'm seeing on 4.6.14, which also needs sorting. I haven't had a chance to look at this any more yet.
Answers.UserDisplayName: chriscant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-29T08:58:58.197Z
Answers.Text: Sorry, ignore my last comment: I must have accidentally chosen Required at some point in my testing.
Answers.UserDisplayName: chriscant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-29T14:50:38.530Z
Answers.Text: In JavaScript I can untick and hide the auto-renew box (and show it again). However I don't know where the verification happens server side.
  
  Here's an addition toggleConfirmButton() in crm/contribute/form/contribution/Main.tpl ie before the line if (flag === true) {
  
  
  `if( processorTypeId==0){
  
          cj("#auto_renew").prop('checked', false );
  
          cj("#allow_auto_renew").hide();
        } else {
          cj("#allow_auto_renew").show();
        }`
Answers.UserDisplayName: chriscant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-01T13:27:06.093Z
Answers.Text: I added the patches as shown in https://issues.civicrm.org/jira/browse/CRM-18299 and the auto-renew option now displays properly.   The system will throw an error if auto-renew and pay later are both selected by the user.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-01T14:53:49.787Z
Answers.Text: Just a note that this behavior has always existed:  See https://issues.civicrm.org/jira/browse/CRM-14924.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-02T21:28:58.113Z
Answers.Text: Weird, as they evidently fixed in in 4.5 or 4.6 because it worked.   Guess they haven't gone through their open issues now they 4.6 and 4.7 are out.
Answers.UserDisplayName: Neil Z
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-26T14:32:19.370Z
Answers.LastActivityDate: 2016-03-26T14:47:35.307Z
Answers.LastEditDate: 2016-03-26T14:47:35.307Z
Answers.UserDisplayName: Neil Z
Body: <p>In Civi 4.6.12 I am testing recurring PayPal Pro payments for a membership.</p>
  
  <p>A simple recurring contribution works OK once <a href="https://issues.civicrm.org/jira/browse/CRM-16698" rel="nofollow">CRM-16698</a> in place.</p>
  
  <p>However when testing with a new membership, no option for auto-renew appears. <a href="https://issues.civicrm.org/jira/browse/CRM-17197" rel="nofollow">CRM-17197</a> fixed a similar issue when a price-set is used. Any suggestions for fixing this without a price-set?</p>
  
  <p>Thanks, Chris</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-24T15:18:43.500Z
Comments.Text: I've found that enabling Pay Later on the contribution page is what is stopping the "Please renew my membership automatically" checkbox to appear. Does that sounds right?  With an optional auto-renew, I'd simply expect opting for pay later to disable this checkbox.  In 4.6.14 this is around line 927 in CRM/Member/BAO/Membership.php
  
  With Pay Later disabled, the checkbox is readonly (even though Auto-renew is optional for the membership) - not tracked down why this is yet.
Comments.UserDisplayName: chriscant
Tags: <civimember><auto-renew>
Title: Auto-renew option not appearing for membership
ThreadText: # Auto-renew option not appearing for membership
  
  (Asked by: username_0 on 2016-02-29)
  
  In Civi 4.6.12 I am testing recurring PayPal Pro payments for a membership.
  
  A simple recurring contribution works OK once [CRM-16698](https://issues.civicrm.org/jira/browse/CRM-16698) in place.
  
  However when testing with a new membership, no option for auto-renew appears. [CRM-17197](https://issues.civicrm.org/jira/browse/CRM-17197) fixed a similar issue when a price-set is used. Any suggestions for fixing this without a price-set?
  
  Thanks, Chris
  
  **Tags:** civimember, auto-renew
  
  > **Comments:**
  > **username_0**: I've found that enabling Pay Later on the contribution page is what is stopping the "Please renew my membership automatically" checkbox to appear. Does that sounds right?  With an optional auto-renew, I'd simply expect opting for pay later to disable this checkbox.  In 4.6.14 this is around line 927 in CRM/Member/BAO/Membership.php  With Pay Later disabled, the checkbox is readonly (even though Auto-renew is optional for the membership) - not tracked down why this is yet.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-26. Score: 2
  
  Chris,
  
  I just tested this on my site, and you're right.
  
  If you have the "Pay Later" option selected, the auto-renewal checkbox does not appear.
  
  The checkbox should always appear, and then when the page goes through verification if 'Pay Later' is selected, and the 'auto-renew' box is selected, that should throw an error to the user.
  
  I've created an issue report on this:
  
  <https://issues.civicrm.org/jira/browse/CRM-18299>
  
  > **Comments:**
  > **username_0**: Thanks. There's also the problem of the checkbox being readonly and checked when auto-renew is optional which I'm seeing on 4.6.14, which also needs sorting. I haven't had a chance to look at this any more yet.  
  > **username_0**: Sorry, ignore my last comment: I must have accidentally chosen Required at some point in my testing.  
  > **username_0**: In JavaScript I can untick and hide the auto-renew box (and show it again). However I don't know where the verification happens server side.  Here's an addition toggleConfirmButton() in crm/contribute/form/contribution/Main.tpl ie before the line if (flag === true) {   `if( processorTypeId==0){          cj("#auto_renew").prop('checked', false );          cj("#allow_auto_renew").hide();       } else {         cj("#allow_auto_renew").show();       }`  
  > **username_1**: I added the patches as shown in https://issues.civicrm.org/jira/browse/CRM-18299 and the auto-renew option now displays properly.   The system will throw an error if auto-renew and pay later are both selected by the user.  
  > **username_2**: Just a note that this behavior has always existed:  See https://issues.civicrm.org/jira/browse/CRM-14924.  
  > **username_1**: Weird, as they evidently fixed in in 4.5 or 4.6 because it worked.   Guess they haven't gone through their open issues now they 4.6 and 4.7 are out.  
  
  ---
  
  