Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19462

membership autorenew error when included via price set

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.12
    • Fix Version/s: 4.7.14
    • Component/s: CiviMember
    • Labels:
    • Documentation Required?:
      None
    • Sprint:
      4.7.14 Financial
    • Funding Source:
      Core Team Funds

      Description

      to reproduce:

      1. create a membership type and set auto-renew as required
      2. create membership price set and include the auto-renew membership
      3. create contrib page for memberships and assign this price set
      4. visit the live contrib page

      no auto-renew option or notification is included, and if the form is submitted, auto-renew is not triggered. if you view the console log, you will see the following error:
      showHideAutoRenew is not defined

      in templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl, around line 230, we condition the inclusion of the showHideAutoRenew function on whether the form is a quick config form or not. since a price set is not quickconfig, the function is not include in the page – but is called from the rendered form field. I suspect that js error trickles down and prevents the auto-renew option from getting set.

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Time Spent - 35 minutes Remaining Estimate - 25 minutes
                25m
                Logged:
                Time Spent - 35 minutes Remaining Estimate - 25 minutes
                35m