Home › Forums › Ticket Products › Event Tickets Plus › Add Featured Image to Woocommerce Checkout
- This topic has 5 replies, 4 voices, and was last updated 9 years, 4 months ago by
Mike.
-
AuthorPosts
-
November 13, 2016 at 12:12 am #1191539
Mike
ParticipantIt is possible to add a PRODUCTS image to the Woocommerce Checkout by adding this code into the /your_theme/woocommerce/checkout/review-order.php page:
<?php $thumbnail = apply_filters( 'woocommerce_in_cart_product_thumbnail', $_product->get_image(), $values, $cart_item_key ); echo $thumbnail; ?>However, I want to add the FEATURED image from the Event, instead. Is there a comparable code/hook I use for this?
Thanks!
November 14, 2016 at 1:25 pm #1192068Cliff
MemberHi Mike.
This is very similar to your previous question.
That line of code doesn’t look like the current version of WooCommerce. These are the templates displaying the thumbnail that you’d probably want customized:
- https://github.com/woocommerce/woocommerce/blob/2.6.8/templates/cart/cart.php#L69
- https://github.com/woocommerce/woocommerce/blob/2.6.8/templates/cart/mini-cart.php#L40
- https://github.com/woocommerce/woocommerce/blob/2.6.8/templates/emails/email-order-items.php#L34
Other than filtering all those, it might be easier and more robust a solution to programatically set the ticket’s/product’s featured image to the same as the event’s featured image.
You might want to add your vote to this existing feature request: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/9581943-add-featured-ticket-header-image-as-woocommerce
This allows us to gauge interest in this particular feature request, which helps us prioritize our development efforts.
Thank you.
November 14, 2016 at 2:21 pm #1192101Mike
ParticipantSorry for the double up. I was working on so many different aspects I forgot I already posted. LOL!
I am working on a fix now, please leave the thread open so I can post my “how to” for other users, if I figure it out.
November 14, 2016 at 4:47 pm #1192185Cliff
MemberSounds great. I’ll close that other thread.
Please note that threads get Closed automatically after a couple weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.
Thank you!
December 6, 2016 at 8:35 am #1202094Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Add Featured Image to Woocommerce Checkout’ is closed to new replies.
