Solutions
– Add ticket description column to the event table and cart

In case you want to add ticket description column to your event table and cart you just have to add this to your functions.php file:

function tc_the_content_by_id($post_id = 0, $more_link_text = null, $stripteaser = false) {
    global $post;
    $post = &get_post($post_id);
    setup_postdata($post, $more_link_text, $stripteaser);
    return get_the_content();
    wp_reset_postdata($post);
}

add_action('tc_cart_col_value_before_ticket_price', 'tc_cart_col_value_before_ticket_price_add', 10, 1);
add_action('tc_event_col_value_before_ticket_price', 'tc_cart_col_value_before_ticket_price_add', 10, 1);

function tc_cart_col_value_before_ticket_price_add($ticket_type) {
    echo '<td class="ticket-description">' . tc_the_content_by_id($ticket_type) . '</td>';
}

add_action('tc_cart_col_title_before_ticket_price', 'tc_cart_col_title_before_ticket_price_add');
add_action('tc_event_col_title_before_ticket_price', 'tc_cart_col_title_before_ticket_price_add');

function tc_cart_col_title_before_ticket_price_add() {
    ?>
    <th><?php _e('Description', 'tc'); ?></th>
<?php
}

 

Leave Us A Message!
Tickera
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.