count( $orders ) ) : ?>
|
|
|
|
|
|
|
#id ); ?>
|
get_order_items_by_id( $order->id );
foreach ( $items as $item ) {
$course_id = $item->id;
if ( OrderModel::TYPE_SUBSCRIPTION ) {
$course_id = apply_filters( 'tutor_subscription_course_by_plan', $item->id, $order );
}
?>
|
created_at_gmt ) ); ?>
|
total_price ) ); ?>
|
translate_dynamic_text( $order->order_status, true ) );
?>
|
payment_method ?? '' ) ); ?>
|
|
tutor_empty_state(); ?>
ID );
$price = tutor_utils()->tutor_price( $wc_order->get_total() );
$raw_price = $wc_order->get_total();
$status = $order->post_status;
$badge_class = 'primary';
$order_status_text = '';
switch ( $status ) {
case 'wc-completed' === $status:
$badge_class = 'success';
$order_status_text = __( 'Completed', 'tutor' );
break;
case 'wc-processing' === $status:
$badge_class = 'warning';
$order_status_text = __( 'Processing', 'tutor' );
break;
case 'wc-on-hold' === $status:
$badge_class = 'warning';
$order_status_text = __( 'On Hold', 'tutor' );
break;
case 'wc-refunded' === $status:
$badge_class = 'danger';
$order_status_text = __( 'Processing', 'tutor' );
break;
case 'wc-cancelled' === $status:
$badge_class = 'danger';
$order_status_text = __( 'Cancelled', 'tutor' );
break;
case 'wc-pending' === $status:
$badge_class = 'warning';
$order_status_text = __( 'Pending', 'tutor' );
break;
}
} elseif ( 'edd' === $monetize_by ) {
$edd_order = edd_get_payment( $order->ID );
$price = edd_currency_filter( edd_format_amount( $edd_order->total ), edd_get_payment_currency_code( $order->ID ) );
$raw_price = $edd_order->total;
$status = $edd_order->status_nicename;
$badge_class = 'primary';
$order_status_text = $status;
}
?>
#ID ); ?>
|
get_course_enrolled_ids_by_order_id( $order->ID );
if ( tutor_utils()->count( $courses ) ) {
foreach ( $courses as $course ) {
echo ' ' . esc_html( get_the_title( $course['course_id'] ) ) . ' ';
}
}
?>
|
post_date ) ) ); ?>
|
|
|
ID );
$pay_now_url = esc_url( $wc_order->get_checkout_payment_url() );
}
?>
|
$total_orders,
'per_page' => $per_page,
'paged' => $paged,
);
$total_page = ceil( $pagination_data['total_items'] / $pagination_data['per_page'] );
if ( $total_page > 1 ) {
$pagination_template = tutor()->path . 'templates/dashboard/elements/pagination.php';
tutor_load_template_from_custom_path( $pagination_template, $pagination_data );
}
?>
tutor_empty_state( tutor_utils()->not_found_text() ); ?>