Home › Forums › Ticket Products › Event Tickets Plus › Custom "Sold Out" message on list view
- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by
Jennifer.
-
AuthorPosts
-
August 16, 2017 at 11:54 am #1336249
Ryan
ParticipantHello,
We would like to include a custom message after the “Sold Out” message that appears on the LIST view. I have successfully added a custom message on the individual EVENT page, but cannot figure out how to do this for the LIST view.
Basically, when a event is sold out, we’d like to have a message appear that would provide some instructions to be added to the waiting list. We don’t need any waiting list functionality, just the ability to add a custom message.
Thanks for the help!
August 18, 2017 at 9:57 am #1337450Jennifer
KeymasterHi Mary,
Thanks for reaching out!
I’d be happy to help you out with this. We have some instructions on changing text around your site by adding some code to your functions.php file, or another option would be to use a plugin like Say What to replace “Sold out” with your custom message.
Please let me know how that works and if you have any questions!
Thanks,
Jennifer
August 23, 2017 at 10:04 am #1339261Ryan
ParticipantHi Jennifer,
Thanks for the reply, but I don’t think this solution will work for what I need. I probably should have provided a better explanation in my last post.
Actually, I would like to keep the “Sold Out” message, but after that text, I would like to include a note (1-2 sentences) that explains how someone can contact us to be added to a waiting list. I’ve included a screenshot below for reference.
To do this, I’m thinking we’ll need some kind of conditional statement that detects if the event is sold out, and then if so, display our custom message after the sold out text.
Hope this explanation helps. Thanks again!
August 30, 2017 at 9:21 am #1342395Jennifer
KeymasterHi Mary,
Thanks for the clarification, and sorry about the delayed response here!
We are limited in the amount of support we can provide for customizations like this (please see our forum guidelines for more information), but I did write up a snippet for you that will let you display a custom sold out message. You can add the following to the functions.php file of your child theme:
function tribe_custom_soldout_message( $html, $event_id ) {if( tribe_events_has_tickets( $event_id ) && tribe_events_has_soldout( $event_id ) && ! tribe_events_has_unlimited_stock_tickets( $event_id ) ) {
$html['button'] = 'Custom message here';
}return $html;
}
add_filter( 'tribe_tickets_buy_button', 'tribe_custom_soldout_message' );You can use the CSS class to add some styling to the message. I hope that helps, and please let me know if you have any questions!
Thanks,
Jennifer
August 30, 2017 at 12:56 pm #1342657Ryan
ParticipantThis solution worked perfectly. Thank you for your help!
August 30, 2017 at 5:25 pm #1342782Jennifer
KeymasterI’m glad it’s working for you Mary!
I’ll go ahead and close out this thread, but please feel free to open up a new one if you have any further questions!
Thanks,
Jennifer
-
AuthorPosts
- The topic ‘Custom "Sold Out" message on list view’ is closed to new replies.
