PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Services/TransactionalEmailTemplateService.php +3 -0 3.0.11 → 3.0.16 View file →
@@ -1004,8 +1004,11 @@
1004 1004 'customer_phone' => (string) ($booking->contact_phone ?? ''),
1005 1005 'booking_reference' => (string) ($booking->reference ?? ''),
1006 1006 'booking_id' => (string) $bookingId,
1007 1007 'booking_url' => $bookingId > 0 ? home_url('/my-account/bookings/' . $bookingId) : home_url('/'),
1008 + // Trip context for per-trip template selection (Pro overrides) and
1009 + // for {{trip_id}}; "0" when the booking has no trip.
1010 + 'trip_id' => (string) (int) ($booking->trip_id ?? 0),
1008 1011 'trip_name' => (string) ($booking->trip_title ?? ''),
1009 1012 'trip_url' => !empty($booking->trip_slug)
1010 1013 ? home_url('/' . SettingsService::getTripBase() . '/' . rawurlencode((string) $booking->trip_slug) . '/')
1011 1014 : home_url('/'),