0

I'm using civiDiscount with an automatic discount set up for a single event and several membership types.

I'd like to use civiMail to send out an invitation to all members to invite them to register for the event.

For members who match the automatic civiDiscount rule, I would have thought that if I have a [Register Now] link like:

https://www.domain.ca/?option=com_civicrm&task=civicrm/event/register&reset=1&id=24&cid={contact.id}&cn={contact.hash}

That civiCRM/civiDiscount would recognize the cid value and apply the automatic discount on the registration page if the contact meets the civiDiscount rule, thereby circumventing the need for the contact to log in ... but this doesn't appear to be the case.

I see I can include the parameter &discountcode=YYYY in the URL to have the discount code applied, but that means I'd have to send a custom email to each membership type.

Is there any way to accomplish my goal of having the automatic discount applied for non-logged in contacts by using the registration link:

https://www.domain.ca/?option=com_civicrm&task=civicrm/event/register&reset=1&id=24&cid={contact.id}&cn={contact.hash}

1 Answer 1

1

It would be {contact.checksum} not contact.hash, and without the cn (I'm not even sure what cn would be - there's no cn parameter that I know of).

So https://www.domain.ca/?option=com_civicrm&task=civicrm/event/register&reset=1&id=24&cid={contact.id}&{contact.checksum}

1
  • Fantastic! That works as I had hoped. Thanks for your help!
    – A. Block
    Commented Jul 18 at 15:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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