Home › Forums › Ticket Products › Event Tickets Plus › image thumbnail in checkout
- This topic has 4 replies, 3 voices, and was last updated 9 years, 6 months ago by
Andrew.
-
AuthorPosts
-
November 14, 2016 at 11:56 am #1192038
Andrew
ParticipantSo I have The Events Calendar and Events Tickets Plus, all works perfectly except…
I have uploaded a ticket header image AND a featured image, yet when I add it to my cart neither of them appear next to the item as a thumbnail?
If I have added woocommerce items to my cart the thumbnails appear, its just the tickets that still show the default placeholder.
Can you help at all!?
November 15, 2016 at 7:00 am #1192393Geoff
MemberHi Andrew, good question.
It’s worth noting that customizing the WooCommerce cart will require you to override the template. WooCommerce has documentation for overriding it’s templates:
https://docs.woocommerce.com/document/template-structure/
From there, I think things get a little tricky because the cart does not actually contain events, but tickets and tickets do not have the featured images you attach to the event.
That means you will need to make an association between the ticket and the event it is connected to directly in the cart. Then, once you do, you can call the image and place it in the cart template using:
‘<?php echo tribe_event_featured_image(); ?>’
Another way to go about it is to attach an image to your ticket. All tickets are registered as Products in WooCommerce, so you can edit the ticket in WooCommerce (under Products) and add the “Product Image” in the editor. That will require you to make the extra step of uploading the photo to the Product, but would be less custom development for sure.
Does this make sense and will either route work for you? Please let me know.
Cheers!
GeoffNovember 15, 2016 at 7:08 am #1192399Andrew
ParticipantGeoff this is brilliant!!
I was just getting ready to tell my client that it wasn’t possible, but then read the bit at the end and I hadn’t realised that it creates a product in WOoCommerce, its hardly even an extra step because once you’ve created the event you can click ‘edit in woocommerce’ and its right there.
Perfect, thankyou so so much!
November 15, 2016 at 3:39 pm #1192788Geoff
MemberYES! That’s awesome and I’m happy to hear that does the trick. Thanks a ton for following up to let me know 🙂
I’ll go ahead and close this thread but let us know if any other questions come up and we’d be happy to help.
In the meantime, cheers and have a great day!
Geoff
-
AuthorPosts
- The topic ‘image thumbnail in checkout’ is closed to new replies.
