• Resolved jonwallis

    (@jonwallis)


    When all the RSVPs for an event are gone it displays “Out of Stock!”, which doesn’t make a lot of sense for something that’s free and non-physical.

    How can I change this to something else? Eg, to “Fully Booked”

    I’m using TEC 5.5.0.1.

    (I’ve tried adding a $custom_text snippet to functions.php, but I’m guessing the specific approach previously used stopped working in TEC 5?)

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @jonwallis,

    Thank you for reaching out to us. I hope you’re doing well.

    Do you mean the message you get in the Event page or in the Events listing?

    Are you using the new views for TEC and ET?

    Best,
    Juan.

    Thread Starter jonwallis

    (@jonwallis)

    Hi Juan

    Do you mean the message you get in the Event page or in the Events listing?

    It’s on the Event page (ie, the page on which you would select the number of places required and click on the “CONFIRM RSVP” button).

    Are you using the new views for TEC and ET?

    I have “Use updated calendar designs” activated, but not “Enable New RSVP Experience”.

    Thanks.

    Hi @jonwallis,

    Thank you so much for the follow-up and the information. I need to ask you one more thing.

    I have “Use updated calendar designs” activated, but not “Enable New RSVP Experience”.

    ^ Are you creating the RSVPs with the block editor or the classic editor?

    Thanks,
    Juan.

    • This reply was modified 3 years, 10 months ago by Juan Aldasoro.
    Thread Starter jonwallis

    (@jonwallis)

    Are you creating the RSVPs with the block editor or the classic editor?

    The Classic editor.

    Hi @jonwallis,

    Thank you for the info.

    The string for the “Out of stock!” is printed here: https://github.com/the-events-calendar/event-tickets/blob/master/src/views/tickets/rsvp.php#L164

    My recommendation would be to customize the template you have on plugins/event-tickets/src/views/v2/list/event/cost.php and change the text there directly.

    You should get that template and put it in [your-theme]/tribe-events/tickets/rsvp.php

    If you need more help on how the template overrides and customizations work you can read the following article.

    Please let me know how it goes.`

    Best,
    Juan.

    Thread Starter jonwallis

    (@jonwallis)

    Hi Juan

    The following confused me

    My recommendation would be to customize the template you have on plugins/event-tickets/src/views/v2/list/event/cost.php

    as it seems to relate to v2, and also cost.php doesn’t contain the “Out of stock!” string, so I’m not sure why I would be copying & customizing that particular template.

    In contrast

    You should get that template and put it in [your-theme]/tribe-events/tickets/rsvp.php

    seems to relate to v1. (ie, as explained on https://theeventscalendar.com/knowledgebase/k/customizing-template-files/ )

    But I managed to figure things out — leastways, I copied /event-tickets/src/views/tickets/rsvp.php to /<my-child-theme>/tribe-events/tickets/rsvp.php and changed “Out of Stock!” to “Fully Booked”, which seems to have done the trick.

    Thanks

    Jon

    • This reply was modified 3 years, 10 months ago by jonwallis. Reason: removing stray unclosed blockquote
    • This reply was modified 3 years, 10 months ago by jonwallis.

    Hi @jonwallis,

    My bad, sorry! Seems like I copied the wrong path :/

    You are right, the template you need to use is located in plugins/event-tickets/src/views/tickets/rsvp.php.

    I’m really happy it’s sorted now ??

    I’ll mark this one as resolved, thank you for your support!

    Have a fantastic day ??
    Juan.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change “Out of Stock!” to something else’ is closed to new replies.