I am working on a website that has the option for members to pay for membership by direct debit (via GoCardless). This is working fine but occasionally we have an issue where a member pays by direct debit and also by card. We refund the card payment to the member but the membership end date is incorrect and we are unable to edit it.

The membership is annual so if a member signs up by both direct debit and card the two payments will add two years to the end date (e.g. it will be 2021 rather than 2020). So, after we refund the card payment we want to also edit the end date to change it to 2020. Unfortunately, we are unable to do this.

Normally, you can edit the end date, as shown below:

enter image description here

It appears that if the membership is set as auto-renew and linked to a recurring payment then CiviCRM doesn't allow you to edit the end date. I presume this is a deliberate 'feature' but in our case it is preventing us from correcting the end date.

enter image description here How can we edit the end date in these circumstances?

CiviCRM 5.7.6 on WordPress

  • I am having the same issue in CiviCRM 5.13.6 on Drupal. This field used to be editable (with an appropriate caution that would appear), but it was changed to be view-only. I wonder if there might be a simple code modification that could make it editable again? – Daniel Ando Scholnick Aug 19 at 19:45
  • 1
    Update: This has been reported as a bug at lab.civicrm.org/dev/core/issues/1126 - hopefully the restriction will be removed in coming updates. – Daniel Ando Scholnick 2 days ago

You can probably still change it via the API - specify the new end date on the existing membership, but that may have unintended consequences.

How did you do the refund? What status is the contribution? Maybe changing the end date should be part of the refund process.

  • Thanks Aidan. The card payments are made via SagePay and we make the refunds via SagePay. Unfortunately, this doesn't update CiviCRM directly so we need to edit the contribution and membership end date manually in CiviCRM. – William Mortada Jun 27 at 13:36
  • The contribution status would be 'completed' before the money is refunded. – William Mortada Jun 27 at 13:43
  • Using the API isn't ideal for us as it would be the membership team that do this and we don't really want to unleash them on the API! – William Mortada Jun 27 at 13:44

If you disable auto-renew on the membership record, this will allow you to edit the end date. Once you have changed the end date, if you then enable auto-renew again.

  • Thanks for the suggestion but unfortunately this isn't possible. There isn't an option to cancel the auto-renew on the membership. – William Mortada Jul 16 at 10:30
  • Even in cases where "Cancel auto-renew" does appear in the "Renew" menu, if one elects to cancel it, then there is no option to re-enable it again. user6930 can you clarify what you meant here? – Daniel Ando Scholnick 2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.