CSS Class based on inventory

Home Forums Ticket Products Event Tickets Plus CSS Class based on inventory

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1104626
    Robert
    Participant

    Is it possible to add a css class to a listing of events if the event is sold out so that I can change the color of the event? Likewise for other areas. Is there a code snippet that determines inventory that I can reference?

    #1104667
    Robert
    Participant

    Figured it out. May be useful for others. I created a list of upcoming events and added custom elements for if it’s sold out (passed in the loop).

    if (tribe_events_has_soldout($post->ID)) : echo ' - <span class="soldout">Sold out</span>'; endif;

    #1104676
    Geoff B.
    Member

    Good evening Lindsay and welcome back!

    Thank you for reaching out to us.

    Kudos on finding the solution on your own and for sharing it for everybody’s benefit.

    You are welcome back on our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘CSS Class based on inventory’ is closed to new replies.