How to output "additional" fields from events in tickets email

Home Forums Ticket Products Event Tickets Plus How to output "additional" fields from events in tickets email

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1294804
    Darrell
    Participant

    We have added a custom email template in theme-folder > tribe-events > tickets > email.php and have added <div id=”addition_fields”>
    <?php echo tribe_get_custom_fields();?>
    <?php echo tribe_get_custom_field(‘Additional Information’);?>
    </div>

    We are trying to display the “additional fields” we added in the events (we are hiding it from front end view as we want this used for admin purposes to send with ticket info).

    We are not getting outputs from either – any idea on what we’re missing? Thanks

    #1296000
    Victor
    Member

    Hi Darrell!

    Thanks for reaching out! 🙂 Let me help you with that.

    The tribe_get_custom_fields() function returns an array of custom fields, so you can see its content by using var_dump, like this:

    $custom_fields = tribe_get_custom_fields();
    var_dump($custom_fields);

    I hope that helps! Let me know if you have other questions.

    Best,
    Victor

    #1314976
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to output "additional" fields from events in tickets email’ is closed to new replies.