Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • BKAP
    • Addons
    • Admin-Bookings
    • Attribute-Lockout
    • Block-Pricing
    • Booking-Box
    • Booking-Confirmation
    • Booking-Process
    • Cancel-Order
    • Cart
    • Checkout-Process
    • Core
    • Date-Time
    • Emails
    • Functions
    • Global-Function
    • Global-Settings
    • Google-Calendar-Sync
    • ICS
    • Import-Booking
    • Labels
    • License
    • Menus
    • Meta-Boxes
    • Reschedule
    • Resources
    • Search-Widget
    • Special-Price
    • Uninstall
    • Validation
    • Variation-Lockout
    • Vendors
      • Dokan
      • WC-Vendors
    • View-Bookings
  • None

Classes

  • bkap_checkout

Class bkap_checkout

Class for all the operations related to order completion process

Package: BKAP\Checkout-Process
Author: Tyche Softwares
Since: 1.7.0
Located at checkout.php

Methods summary

public static array
# bkap_hidden_order_itemmeta( array $arr )

Hide the hardcoded item meta records frm being displayed on the admin orders page

Hide the hardcoded item meta records frm being displayed on the admin orders page

Parameters

$arr
array containing meta fields that are hidden on Admin Order Page

Returns

array
Hidden Fields Array modified

Since

1.7.0
4.5.0 Added field for WooCommerce Product Addons
4.7.0 Added field for Resources

Hook

woocommerce_hidden_order_itemmeta
public static array
# bkap_update_lockout( integer $order_id, integer $post_id, integer $parent_id, integer $quantity, array $booking_data, $called_from = '' )

Updated the availability/bookings left for a product when an order is placed.

Updated the availability/bookings left for a product when an order is placed.

Parameters

$order_id
Order ID
$post_id
Product ID
$parent_id
Parent Product ID in case of Grouped Products
$quantity
Quantity
$booking_data
Booking data array
$called_from

Returns

array
An array containing the list of products IDs for whom availability was updated.

Since

1.7.0

Globals

mixed $wpdb
public static
# bkap_update_booking_order_history( integer $order_id, integer $booking_id, string $query = 'insert' )

Update Booking Order History Table

Update Booking Order History Table

Parameters

$order_id
Order ID
$booking_id
Booking ID
$query
type of query to perform

Since

2.5.0

Globals

mixed $wpdb
public static BKAP_Booking
# bkap_create_booking_post( integer $item_id, integer $product_id, array $qty, integer $booking_details, string $variation_id = 0, $status = 'confirmed' )

Creates & returns a booking post meta record array to be inserted in post meta.

Creates & returns a booking post meta record array to be inserted in post meta.

Parameters

$item_id
Order Item ID
$product_id
Product ID
$qty
$booking_details Booking Data Array
$booking_details
$variation_id Variation ID if exists else pass 0
$variation_id
$status Status of Booking to be created
$status

Returns

BKAP_Booking
Booking Object

Since

4.0.0

Globals

mixed $wpdb
public static BKAP_Booking
# get_bkap_booking( integer $id )

Get Booking Object

Get Booking Object

Parameters

$id
ID for Booking to fetch

Returns

BKAP_Booking
Booking Object

Since

4.0.0
public static
# bkap_order_item_meta( integer $item_meta, mixed $cart_item )

This function updates the database for the booking details and adds booking fields on the Order Received page, Woocommerce->Orders when an order is placed for Woocommerce version breater than 2.0.

This function updates the database for the booking details and adds booking fields on the Order Received page, Woocommerce->Orders when an order is placed for Woocommerce version breater than 2.0.

Parameters

$item_meta
Order ID
$cart_item
Cart Item data

Since

1.7.0

Globals

mixed $wpdb
mixed $woocommerce

Hook

woocommerce_checkout_update_order_meta
public static
# bkap_update_global_lockout( integer $post_id, mixed $quantity, array $details, array $booking_data )

This function updates the database resords for the booking which has globally same timeslots

This function updates the database resords for the booking which has globally same timeslots

Parameters

$post_id
Post ID
$quantity
quantity
$details
array of all matching records for booking
$booking_data
array of selected booking details

Since

1.7.0
API documentation generated by ApiGen