Show the event title in the WooCommerce cart next to the ticket

Event Tickets Plus does a great job adding tickets to your events and selling them through WooCommerce. We've come across instances, however, where having the name of the event in the cart next to the ticket name would come in handy. For example, what if there are multiple tickets being purchased for different events but each ticket is called "General Admission"? That could become a confusing user experience.

Here is how a ticket currently appears when added to the WooCommerce cart:

kb-wootickets-cart

Now, imagine several tickets called "General Admission" in there. We will see the prices but won't know exactly which tickets correlate with which event we're purchasing tickets to. That wouldn't be optimal.

To dispel confusion, we can add the event name after the ticket title. Now the text in the Product column tells the user more about the ticket they are buying:

kb-wootickets-cart-withtitle

It's a minor detail, but these things can add up to a better user experience that makes your visitors happier during the checkout process. And happy visitors makes a happy website.

To do this on your site, add the snippet below to your theme's functions.php file: