Class view_bookings
Bookings and Appointment Plugin for WooCommerce
Allow Bookings to be edited from Cart and Checkout Page
Category: Classes
Author: Tyche Softwares
Since: 1.7
Located at view-bookings.php
Methods summary
public
|
|
public static
|
#
bkap_woocommerce_history_page( )
This function adds a page on View Bookings submenu which displays the orders with the booking details. The orders which are cancelled or refunded are not displayed. |
public
|
#
bkap_data_export( )
This function will download CSV or Print Bookings based on the CSV on Print button is clicked |
public
array
|
#
generate_data( string $tab_status )
This function will generate the data require for CSV and Print of bookings |
public
integer
|
#
bkap_order_id_asc( integer $value1, integer $value2 )
Function to sort the Order ids in ascending order |
public
integer
|
#
bkap_order_id_dsc( integer $value1, integer $value2 )
Function to sort the Order ids in descending order |
public
integer
|
#
bkap_amount_asc( integer $value1, integer $value2 )
Function to sort the amount in ascending order |
public
integer
|
#
bkap_amount_dsc( integer $value1, integer $value2 )
Function to sort the amount in descending order |
public
integer
|
#
bkap_quantity_asc( integer $value1, integer $value2 )
Function to sort the quantity in ascending order |
public
integer
|
#
bkap_quantity_dsc( integer $value1, integer $value2 )
Function to sort the quantity in descending order |
public
integer
|
#
bkap_order_date_asc( integer $value1, integer $value2 )
Function to sort the order date in ascending order |
public
integer
|
#
bkap_order_date_dsc( integer $value1, integer $value2 )
Function to sort the order date in descending order |
public
integer
|
#
bkap_checkin_date_asc( integer $value1, integer $value2 )
Function to sort the check-in date in ascending order |
public
integer
|
#
bkap_checkin_date_dsc( integer $value1, integer $value2 )
Function to sort the check-in date in descending order |
public
integer
|
#
bkap_checkout_date_asc( integer $value1, integer $value2 )
Function to sort the check-out date in ascending order |
public
integer
|
#
bkap_checkout_date_dsc( integer $value1, integer $value2 )
Function to sort the check-out date in descending order |
public
integer
|
|
public
integer
|
#
bkap_name_dsc( string $value1, string $value2 )
Function to sort the name date in descending order |
public
integer
|
#
bkap_product_name_asc( string $value1, string $value2 )
Function to sort the name date in ascending order |
public
integer
|
#
bkap_product_name_dsc( string $value1, string $value2 )
Function to sort the name date in descending order |
public
string
|
#
generate_csv( array $report )
This function will create the string to be required for CSV download |