3

We would like to sell numbered tickets for a raffle. According to the regulations we need to meet, we have to sell tickets that have unique numbers from a predetermined set (e.g. we have tickets numbered 1-500). How can we sell these tickets with email receipts that go to the buyer, including the ticket numbers?

Ideally, it would be possible to sell more than one ticket in a transaction and send a receipt to a buyer saying that they bought tickets x, y and z or failing that three emails listing the ticket numbers.

We've used a Drupal webform with the submission id as the ticket number in the past, but this only allows us to sell one ticket per transaction. It seems like we might be able use Civirules to send receipts with ticket numbers, but I'm not seeing a way to do that without custom code.

  • I can think of several approaches, but none that would allow multiple tickets per transaction without writing custom code. – Jon G - Megaphone Tech Nov 5 at 15:57
  • Thanks Jon. Would there be a better way to sell tickets one by one from a pre-defined set of numbers than using webform submission id (which is a little painful, as it limits us to sequential numbers)? – Lars SG Nov 5 at 20:41
  • 1
    All the one-by-one approaches would be sequential number approaches. Custom code-wise, the most "elegant" approach would probably be a "Raffle Ticket" entity, each record could have a contact_id to link it to a person. A simpler approach would be a Setting called "next ticket #" that would update any time tickets are sold. I think you're looking at code either way though. – Jon G - Megaphone Tech Nov 6 at 20:04

Your Answer

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

Browse other questions tagged or ask your own question.