Artículos sobre: Solución de problemas

🔧 What Are Liquid Tags (and How Can You Use Them on TicketingHub?)

Liquid tags let you personalise confirmation emails, tickets, and messages by inserting dynamic content from each order — like customer name, tour date, ticket type, and more.




---

🧩 Types of Liquid Tags



1. Output Tags – show information

Hello {{ customer.first_name }}!
Your tour is on {{ order.date }}.


2. Logic Tags – make decisions

{% if order.language == "fr" %}
  Bonjour ! Merci pour votre réservation.
{% else %}
  Hello! Thank you for your booking.
{% endif %}


---

✨ Examples You Can Use




🌍 Show message based on language

{% if order.language == "fr" %}
Merci pour votre commande !
{% else %}
Thank you for your booking!
{% endif %}


Liquid Tag for languages

🎟 Show message based on ticket type

{% if order.ticket_type == "VIP" %}
  🎉 Welcome, VIP! Enjoy your complimentary welcome drink.
{% elsif order.ticket_type == "Student" %}
  🧑‍🎓 Don’t forget to bring your student ID.
{% else %}
  👍 Thanks for booking! Please arrive on time and enjoy the tour.
{% endif %}



📍 Change meeting point based on day of the week

% assign weekday = booked_for_date | date: "%a" %}

{% if weekday == 'Fri' %}
 your event is on Friday
{% endif %}

{% if weekday == 'Sat' %}
 your event is on Saturday
{% endif %}



📚 Full List of Supported Liquid Tags
You can use any of these variables in your emails, tickets, and messaging:


{ reference }
{ voucher }
{ notes }
{ product.name }
{ product.address.name }
{ product.address.building }
{ product.address.street }
{ product.address.city }
{ product.address.region }
{ product.address.postal_code }
{ product.address.country }
{ product.address.google_maps_url }
{ product.formatted_address }
{ season.name }
{ variant.name }
{ tier_names }
{ order.language }
{ order.reference }
{ order.referral_code }
{ order.checkout_url }
{ option.name }
{ option.time }
{ supplier.name }
{ supplier.logo }
{ supplier.logo_url }
{ supplier.website }
{ supplier.telephone }
{ supplier.email }
{ customer.first_name }
{ customer.last_name }
{ customer.full_name }
{ customer.company }
{ customer.email }
{ attendee.first_name }
{ attendee.last_name }
{ attendee.full_name }
{ attendee.company }
{ attendee.email }
{ channel.name }
{ reseller.name }
{ booked_for_date }
{ questions_with_answers }
{ group_booking }
{ extra_names }
{ pickup.location }
{ pickup.time }
{ pickup.note }
{ pickup.map }
{ smartwaiver_url }
{ guide.name }
{ guide.first_name }
{ guide.last_name }
{ guide.telephone }
{ manage_booking_url }
{ size }



🧠 Why Use Liquid?



✅ Automatically personalize messages

✅ Avoid manual edits or mistakes

✅ Show accurate info for each customer

---

💡 Pro Tip: You can combine conditions to customize even further — by ticket type y language y day of the week.

Need help writing your Liquid tags? Just ask — we’re happy to help!

Updated on: 31/03/2025

¿Le ha resultado útil este artículo?

Comparte tu opinión

Cancelar

Gracias.