Posted: December 16, 2020 at 11:26 am
We are trying to change the CLOSED status on the front of the calendar to say “Sold Out”. Looking at a past post on the board, we tried this but it hasnt worked in our function file. What are we missing?
// This is an array of original strings // See if the current string is in the $strings array return $translated; add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 ); |
|
Hi there, Just to confirm we are on the same section here, do you mean the ‘Registration Closed’ string? Can you add a screenshot (or a link to a page I can view it on) of what you are looking to change? https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
This reply has been marked as private. | |
Hi there, That section is the event title and Event Espresso 3 (or 4 for that matter) does not add ‘(CLOSED)’, ‘(FULL)’ etc to the end of the event titles so this likes its either something custom, or its been manually set on the event title itself? For example, if you edit the event that shows on November 29th, does it show ‘(CLOSED)’ in event title? Is it yourself that changes those titles? I ask just to check that those aren’t being manually added when the event is updated etc? |
|
Yep, you’re absolutely correct. I had the wrong info on the issue from my dev. So the client was actually wanting to get it to auto add “Sold” to the title similar to how we have “closed” in it now when an event sells all of its seats. Is that possible? Thank you! |
|
No currently, no. The tooltips for the calendar shows ‘Registration Closed’ or ‘Sold out’ for events like these so can they not use the tooltips? To view those go to Event Espresso -> Calendar Settings Set ‘Show Tooltips’ to true. Depending on the events status and if it is shold out or not the button shown on the tooltip will change to show the relevant string. Will that work? |
|
The support post ‘Changing Closed Status to Sold out’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.