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

  • import_bookings

Class import_bookings

Bookings and Appointment Plugin for WooCommerce

Import Booking related functionalities handled in this class

Package: BKAP\Import-Booking
Category: Classes
Author: Tyche Softwares
Since: 3.6
Located at import-bookings.php

Methods summary

public static
# bkap_map_imported_event( )

This function will map the imported calendar events to the product and generate the booking.

This function will map the imported calendar events to the product and generate the booking.

Since

3.6
public static array
# bkap_create_order( array $booking_details, boolean $gcal = false )

This function will map the imported calendar events to the product and generate the booking and create WooCommerce Order.

This function will map the imported calendar events to the product and generate the booking and create WooCommerce Order.

Parameters

$booking_details
Array of all booking details
$gcal
true if called from google event functionality and false if it is called from manual booking

Returns

array
$status Array which contains validation result, new order id, item id, variation id, and parent id

Since

3.6
public static array
# bkap_create_booking( array $booking_details, boolean $gcal = false )

This function will generate the booking and update the lockout for the product.

This function will generate the booking and update the lockout for the product.

Parameters

$booking_details
array of booking details
$gcal
true if called from google event functionality and false if it is called from manual booking

Returns

array
$status Returns array of validation checks, order id, item id,

Since

3.6
public static array
# bkap_sanity_check( array $booking_data, boolean $gcal )

This function will validate if the give booking details is valid for creating the booking for the product or not.

This function will validate if the give booking details is valid for creating the booking for the product or not.

Parameters

$booking_data
$booking_details Array of booking details
$gcal
true if called from google event functionality and false if it is called from manual booking

Returns

array
$sanity_results Returns result of the validation

Since

3.6
public static array
# bkap_quantity_setup( array $booking_data, array $sanity_check )

This function is to calculate the parent id and its data.

This function is to calculate the parent id and its data.

Parameters

$booking_data
$booking_details Array of Booking details
$sanity_check
Array of validation result

Returns

array
$quantity_return Return array of parent id, quantity, lockout quantity, variation id and variation array

Since

3.6
API documentation generated by ApiGen