Forum Replies Created
-
AuthorPosts
-
February 16, 2017 at 7:07 am in reply to: Adding event and date title to cart/checkout and booking confirmation email #1238543RachelParticipant
Thank you, that snippet of code that is definitely getting me closer to what I need.
I still need to display the event date. I’ve tried to customise it using different methods but I cannot get it to display.
This is what I have so far:
add_filter( 'woocommerce_cart_item_name', 'example_testing', 10, 3 ); function example_testing( $title, $values, $cart_item_key ) { $ticket_meta = get_post_meta( $values['product_id'] ); $event_id = absint( $ticket_meta['_tribe_wooticket_for_event'][0] ); if ( $event_id ) { $title = sprintf( '%s for <a href="%s" target="_blank"><strong>%s</strong></a>', $title, get_permalink( $event_id ), get_the_title( $event_id ), tribe_get_start_date($event_id) ); } return $title; }
Once I can display the event date alongside the title it will all be sorted!
Thank you for your help so far.
February 13, 2017 at 7:36 am in reply to: Adding event and date title to cart/checkout and booking confirmation email #1233814RachelParticipantThank you Andras.
I have set up my own /woocommerce/cart/cart.php template and have added
echo tribe_get_start_date( $event_id, false );
to display the event date however it only shows today’s date (not the event date). I’m also struggling to find the right function in your list to echo the event title too?Could you let me know which functions will display the event title and event date please?
- This reply was modified 7 years, 2 months ago by Rachel.
February 10, 2017 at 8:19 am in reply to: Adding event and date title to cart/checkout and booking confirmation email #1232833RachelParticipantThank you Andras. I have re-downloaded the files and uploaded the plugin which is now activated.
However it doesn’t seem to be doing anything on the cart or emails. I’ve attached a screenshot of the cart page, which is untouched and is the standard template. Is there still an issue with the plugin?
February 9, 2017 at 7:55 am in reply to: Adding event and date title to cart/checkout and booking confirmation email #1232025RachelParticipantThank you for your response. I have downloaded that plugin however it doesn’t seem to work. I’ve manually dropped the plugin into my /plugin directory and also tried adding it via the WordPress panel and neither work.
I receive this message when trying to upload the plugin via WordPress (image attached).
Unpacking the packageā¦ Installing the pluginā¦ The package could not be installed. No valid plugins were found. Plugin install failed.
-
AuthorPosts