Event Title and Date in Cart

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1014861
    Bogdan Alin
    Participant

    I need to be able to show the title of the event in the cart and confirmation emails.
    Also, I can’t find if the plugins are compatible with WPML.

    Thanks,
    Bogdan

    #1014925
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    I have this snippet that will add the Event Name to the Ticket title.

    https://gist.github.com/jesseeproductions/4df22b491f0604be0ddc

    Add that to your themes’s functions.php and you should be all set.

    I found it added it on the event page, the cart, the receipt email, and on the order page. Let me know if that works for you.

    WPML

    The Events Calendar and the Events Calendar Pro are compatible with WPML.

    All our other plugins are not compatible, they may work for the most part, but we do not support issues that may come up with them.

    Cheers

    #1015117
    Bogdan Alin
    Participant

    Hi Brian,

    I don’t think it works as intended :
    http://www.gsmtrans.ro/daily/bus-bucharest-galati-at-440pm/2015-12-25/

    On my website, it just shows the name of the current page next to the ticket name. I need it to show something like ticket for Adult @ <hour> Bus Bucharest etc.

    What do you think am I doing wrong ?

    Thanks a lot !
    Bogdan

    #1015134
    Brian
    Member

    Hi,

    The snippet is working as intended. It is showing the Event Title next to the name of the ticket.

    Since this is not a feature, but a customization I am limited in supporting it much beyond this.

    I have presented a framework you might be able to modify, but beyond that I cannot support a customization.

    Thanks

    #1015191
    Bogdan Alin
    Participant

    Hi again,

    Unfortunately, it doesn’t. It just adds the last pages’ title next to the ticket name.
    I understand that this is a framework, could you point me to more detailed documentation on this ?

    Thanks

    #1015294
    Brian
    Member

    Hi,

    This is part of WooCommerce and I am not sure about their documentation so do not have a link to send for that.

    I tested again on my site and it does show the Event Title for me in the Cart so perhaps your theme is creating a conflict on that page?

    This is how I got the Product ID

    $product_id = $product->id;

    Perhaps there is another way to do that, but that is all under WooCommerce and I could not find anything else that worked.

    This maybe a solution instead and you could do a query using the ticket title to get the id of the ticket product from there and use that to get the event title. I found this example

    http://stackoverflow.com/a/21041093

    And created this from it:

    $product_id = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = '" . $title. "'" );

    I am not sure how that would work though if two tickets have the same exact name so I did not use that the first time.

    Thanks

    #1020497
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

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