Sheldon

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Sheldon
    Participant

    Hi Geoff,

    Thanks for getting back to me.

    I was able to get the columns added, but am struggling with getting the event date and showtime data to populate into the columns. I’ve got this so far:

    add_filter( ‘manage_edit-shop_order_columns’, ‘MY_COLUMNS_FUNCTION’ );
    function MY_COLUMNS_FUNCTION($columns){
    $new_columns = (is_array($columns)) ? $columns : array();
    unset( $new_columns[‘order_actions’] );

    //edit this for you column(s)
    //all of your columns will be added before the actions column
    $new_columns[‘MY_COLUMN_ID_1’] = ‘Event Date’;
    //stop editing

    $new_columns[‘order_actions’] = $columns[‘order_actions’];
    return $new_columns;
    }

    add_action( ‘manage_shop_order_posts_custom_column’, ‘MY_COLUMNS_VALUES_FUNCTION’, 2 );
    function MY_COLUMNS_VALUES_FUNCTION($column){
    global $post;
    $data = get_post_meta( $post->ID );

    //start editing, I was saving my fields for the orders as custom post meta
    //if you did the same, follow this code
    if ( $column == ‘MY_COLUMN_ID_1’ ) {
    echo (isset($data[‘_EventStartDate’]) ? $data[‘_EventStartDate’] : ”);
    }
    //stop editing
    }

    The issue is I’m not sure how to grab the event date from the meta data and display it. Can you advise?

    Additionally, I’m not sure this solution addresses the requirement to add event date to the Order landing page. Can you advise on this as well please?

    Thanks,
    Rob

    in reply to: Adding Event Date to Woocommerce #1141247
    Sheldon
    Participant

    This reply is private.

    Sheldon
    Participant

    This reply is private.

    in reply to: Custom Recurring Events for Comedy Club #1133457
    Sheldon
    Participant

    Hi Geoff,

    Thanks for the prompt reply. A couple follow up questions to confirm:

    1) So my process for the time being should be to add a new event per day, using the duplicate event plugin. I would then set the two available tickets for each event for the “Early Show” and “Late Show” and then manually set the price for the tickets, based on the day of the week?

    2) You had mentioned “very soon” for getting the new feature for multiple tickets added to recurring events. I know you can’t provide an exact date, but can you confirm if we’ll have this in the next month?

    Thanks again.

Viewing 4 posts - 1 through 4 (of 4 total)