Forum Replies Created
-
AuthorPosts
-
September 13, 2016 at 2:22 pm in reply to: Add Event Date and Ticket Time to Woocommerce Orders Page & CSV Export #1163626
Sheldon
ParticipantHi 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,
RobSheldon
ParticipantThis reply is private.
July 15, 2016 at 9:08 am in reply to: Displaying Event Thumbnail as Background Image in Calendar Cell #1140320Sheldon
ParticipantThis reply is private.
Sheldon
ParticipantHi 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.
-
AuthorPosts
