Event Title and Date in Cart

Home Forums Ticket Products Event Tickets Plus Event Title and Date in Cart

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #945178
    Ian
    Participant

    Hi there

    I wondered if there was a solution to adding the event date and event title to the cart, so if people are ordering for multiple events they can confirm they are buying for the correct event before checkout.

    Thanks

    #945256
    George
    Participant

    Hey Ian,

    Thanks for reaching out to us. It should indeed be technically possible to do what you’re describing here – it will require some custom coding, some of which might fall outside the scope of our support forums here, but we can definitely at the very least help you get started in the right direction.

    To get started on that, can you clarify what exact eCommerce plugin and Events Calendar ticketing add-on you’re using on your site?

    We’ll then follow up with more detail and hopefully some code to get you started.

    Thanks!
    George

    #945284
    Ian
    Participant

    Hi there

    Thanks for getting back to me. I am using WooCommerce and your WooTickets addon with Events Calendar Pro.

    We have lots of events, lots in general with “Adult” and “Child / Concession” pricing.

    If a customer buys tickets for and event, the cart simply says states the tickets description of “Adult” for example, but if they also buy tickets for more than one show there is no differentiation. I think asking customers to pay based on a description that does not confirm the event name and date is not acceptable. It feels like a really basic requirement to be honest rather than needing extra coding.

    I look forward to your help / assistance with this.

    Thanks

    #945533
    George
    Participant

    Hey Ian,

    I think your critique of this aspect of the checkout for tickets is not invalid, at all – I can definitely see the benefit of having this as part of the default functionality of the plugin. I’d recommend mentioning this on our official User Voice forums, which you can find here → http://tribe.uservoice.com/forums/195723-feature-ideas

    An idea does not need to be posted there for it to be valid, or added to a future plugin update, of course – it just can speed up the process of adding a feature, because other users can vote on this idea there if it’s something that they, too, would like in the plugin as a default.

    For now, unfortunately, a bit of custom code is indeed required.

    As an example of what I’ve cooked up for you, here’s a screenshot of two ticket “levels” I created for a test event → https://cloudup.com/csp-gXxU6-7

    By default, as I’m sure you’re well aware of, there’s no event-specific data in the cart – here’s a screenshot of the WooCommerce cart before my custom code → https://cloudup.com/c5yeg9Horu0

    Now, if you take my custom code and add it to your theme’s functions.php file, here’s what that same cart looks like instead → https://cloudup.com/cz-EbDJJ10z

    “Testing Tickets Titles” is the admittedly-lame Event Title I came up with for that specific event, and that text in the cart is a link to the actual event if the user wants to click to it.

    Check out my custom code here:

    https://gist.github.com/momnt/92f5703f52dc9222ce8a

    Now, this is a starting-point that I hope helps, but keep in mind that you can modify this to whatever you need – you can remove the link, move the title of the event to the front of the cart name instead of after it like right now, you can add the event date and all sorts of stuff. But all the extra event data you’d need comes from using that $event_id variable I created in the code, which no matter how many different tickets are in a cart, should reference the WordPress Post ID of the specific Event that each ticket is linked to. So you can play around with using functions like tribe_get_start_date(), and simply pass the $event_id variable to those functions.

    Play around with this and let us know if it helps! I’m sorry you’re disappointed about the extra work required to add this to the cart, and your feedback about making this a default thing (or, at least, easier to enable/add) is something we really appreciate.

    Thanks Ian, cheers!
    George

    #949897
    George
    Participant

    Hello,

    This issue’s been sitting here a while so I’m going to go ahead and close it for now – if other issues arise, don’t hesitate to come back and open a new ticket, and if you need to open a new ticket about the same issues you originally brought up here, please share a link to this original ticket so we can pick up where we left off.

    Cheers!
    George

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Event Title and Date in Cart’ is closed to new replies.