Perhaps Tony knows a better way to do this, but one way would be to edit the /wp-content/plugins/ee4-events-table-template/templates/espresso-events-table-template-toggle.template.php file and just above where it says
Now this has limitations: it will only work for an event with a single datetime (it works via the primary datetime, so if a second ticket expires it wont be marked as sold out).
Also, updates to the addon will over write these changes.
You can add sold_out_button_text=”No more tickets” to the shortcode to use custom text for the Sold out events.
You can also style the link using something like:
.a_register_link_sold_out {
color: red;
}
This should also work with multiple datetimes but is currently under testing, if it works well it will be included within the next update to the events table template.
Viewing 4 reply threads
The support post ‘EE4 – Event Table View – Adding Sold Out in place of Register’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.