Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com * @since 1.4.3 */ defined( 'ABSPATH' ) || exit; use Tutor\Ecommerce\Ecommerce; use Tutor\Helpers\DateTimeHelper; use TUTOR\Input; use Tutor\Models\OrderModel; // Global variables. $user_id = get_current_user_id(); $active = Input::get( 'period', '' ); $time_period = $active; $start_date = Input::get( 'start_date', '' ); $end_date = Input::get( 'end_date', '' ); $paged = Input::get( 'current_page', 1, Input::TYPE_INT ); $per_page = tutor_utils()->get_option( 'pagination_per_page', 10 ); $offset = ( $per_page * $paged ) - $per_page; if ( '' !== $start_date ) { $start_date = tutor_get_formated_date( 'Y-m-d', $start_date ); } if ( '' !== $end_date ) { $end_date = tutor_get_formated_date( 'Y-m-d', $end_date ); } /** * Prepare filter period buttons * * Array structure is required as below * * @since 2.0.0 */ $filter_period = array( array( 'url' => esc_url( tutor_utils()->tutor_dashboard_url() . 'purchase_history?period=today' ), 'title' => __( 'Today', 'tutor' ), 'type' => 'today', ), array( 'url' => esc_url( tutor_utils()->tutor_dashboard_url() . 'purchase_history?period=monthly' ), 'title' => __( 'Monthly', 'tutor' ), 'type' => 'monthly', ), array( 'url' => esc_url( tutor_utils()->tutor_dashboard_url() . 'purchase_history?period=yearly' ), 'title' => __( 'Yearly', 'tutor' ), 'type' => 'yearly', ), ); /** * Calendar date buttons * * Array structure is required as below * * @since 2.0.0 */ $filter_period_calendar = array( 'filter_period' => $filter_period, 'filter_calendar' => true, ); ?>
path . 'views/elements/purchase-history-filter.php'; tutor_load_template_from_custom_path( $filter_period_calendar_template, $filter_period_calendar ); $orders = tutor_utils()->get_orders_by_user_id( $user_id, $time_period, $start_date, $end_date, $offset, $per_page ); $total_orders = tutor_utils()->get_total_orders_by_user_id( $user_id, $time_period, $start_date, $end_date ); $total_orders = ! empty( $total_orders ) ? count( $total_orders ) : 0; $monetize_by = tutor_utils()->get_option( 'monetize_by' ); if ( Ecommerce::MONETIZE_BY === $monetize_by ) { $response = ( new OrderModel() )->get_user_orders( $time_period, $start_date, $end_date, $user_id, $per_page, $offset ); $orders = $response['results']; $total_orders = $response['total_count']; } ?>
count( $orders ) ) : ?>
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_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 ?? '' ) ); ?>
    #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() ); ?>