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_special_booking_price

Class bkap_special_booking_price

Class for Handling Special Pricing

Package: BKAP\Special-Price
Author: Tyche Softwares
Class: bkap_special_booking_price
Located at special-booking-price.php

Methods summary

public
# __construct( )

Default constructor

Default constructor

Since

2.0
public
# bkap_save_special_booking_price( integer $post_id, array $recurring_prices = array(), array $specific_prices = array() )

This function is used to add/update special booking

This function is used to add/update special booking

Parameters

$post_id
Product ID
$recurring_prices
Array of special price set for Weekdays
$specific_prices
Array of special price set for Specific Date

Since

2.0
public
# special_booking_display_updated_price( integer $product_id, string $booking_date, integer $variation_id )

This function is used to updated price of product

This function is used to updated price of product

Parameters

$product_id
Product ID
$booking_date
Date
$variation_id
Variation ID

Since

2.0

Hook

bkap_display_updated_addon_price
public integer
# get_price( integer $product_id, string $booking_date )

This function will calculate the special price for specific date or weekday

This function will calculate the special price for specific date or weekday

Parameters

$product_id
Product ID
$booking_date
Date

Returns

integer
$special_booking_price Returns the special price

Since

4.0.0
public
# bkap_special_booking_show_multiple_updated_price( integer $product_id, string $product_type, integer $variation_id_to_fetch, string $checkin_date, string $checkout_date, integer $gf_options, integer $resource_id, string $currency_selected )

This function is used to updated price of product for Multiple dates

This function is used to updated price of product for Multiple dates

Parameters

$product_id
Product ID
$product_type
Type of Product
$variation_id_to_fetch
Variation ID
$checkin_date
Date
$checkout_date
Date
$gf_options
Option price from Gravity Forms
$resource_id
Resource ID
$currency_selected
Selected currency

Since

2.0
API documentation generated by ApiGen