Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GTRIA-1260] - Adds attendee meta data to Tickets Commerce Completed Order emails #3012

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us

== Changelog ==

= [TBD] TBD =

* Fix - Adds attendee meta data to Tickets Commerce Completed Order emails. [GTRIA-1260]
* Fix - Corrects override template URL for custom-fields.php template file. [GTRIA-1260]

= [5.9.0] 2024-04-04 =

* Feature - Sale Price for Tickets Commerce: Set a sale price for individual tickets for a certain duration of time within Tickets Commerce.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Event Tickets Emails: Order Attendee Info
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe/tickets/emails/template-parts/body/order/attendee-info.php
* [your-theme]/tribe/tickets/emails/template-parts/body/order/attendees-table/custom-fields.php
*
* See more documentation about our views templating system.
*
Expand All @@ -19,11 +19,11 @@
*/

// @todo @codingmusician: This needs to come from ET+
if ( empty( $attendee['custom_fields'] ) ) {
if ( empty( $attendee['attendee_meta'] ) ) {
return;
}

?>
<?php foreach ( $attendee['custom_fields'] as $custom_field ) : ?>
<div><?php echo esc_html( $custom_field['label'] ); ?> - <?php echo esc_html( $custom_field['value'] ); ?></div>
<?php foreach ( $attendee['attendee_meta'] as $label => $value ) : ?>
<div><?php echo esc_html( $label ); ?> - <?php echo esc_html( $value ); ?></div>
<?php endforeach; ?>