CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How safely add participant id to Event\BAO\Event.php
Pages: [1]

Author Topic: How safely add participant id to Event\BAO\Event.php  (Read 375 times)

megabait

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.6.6
  • CMS version: WordPress 4.2.4
  • MySQL version: MySQL 5.6
  • PHP version: PHP 5.5
How safely add participant id to Event\BAO\Event.php
August 20, 2015, 08:30:54 am
Hello,
I want to output participant id in email tamplate, after some research found that need to extend Event\BAO\Event.php and add $sendTemplateParams['tplParams']['participantID'] = $participantId;
What is safest way to extend it?
Also there problem: For example If somebody ordered 2 tickets then in email of main participant id is 0 but in email of additional participant there right id. How to fix this problem? Thank you

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How safely add participant id to Event\BAO\Event.php

This forum was archived on 2017-11-26.