Home › Forums › Ticket Products › Event Tickets Plus › Event Title and Date in Cart
- This topic has 6 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
October 15, 2015 at 6:55 am #1014861
Bogdan Alin
ParticipantI 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,
BogdanOctober 15, 2015 at 8:05 am #1014925Brian
MemberHi,
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
October 15, 2015 at 4:11 pm #1015117Bogdan Alin
ParticipantHi 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 !
BogdanOctober 15, 2015 at 4:57 pm #1015134Brian
MemberHi,
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
October 16, 2015 at 3:26 am #1015191Bogdan Alin
ParticipantHi 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
October 16, 2015 at 7:46 am #1015294Brian
MemberHi,
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
October 31, 2015 at 7:05 am #1020497Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Event Title and Date in Cart’ is closed to new replies.
