JavaScript Events & Triggers
Baza Booking Calendar v2 — JavaScript Events & Triggers Complete Reference
A complete reference of all JavaScript events in Baza Booking Calendar v2. Use these events to integrate with Google Analytics 4, Google Tag Manager, LiveChat, Zapier, or any custom script.
All events fire on $(document) with the bbc prefix. Listen with:
$(document).on('bbcEventName', function(e, data) {
console.log(data);
});Initialization
| Event | Parameters |
|---|---|
bbcInitialized | — |
Calendar
| Event | Parameters |
|---|---|
bbcCalendarPrinted | service, queryParams |
bbcAjaxPrintCalendarSuccess | — |
bbcCalendarNavigated | direction: next/prev, queryData |
bbcServiceChanged | service, queryData |
bbcHandleClick | — |
bbcCalendarClickHandled | element, selectedCount |
bbcFirstClickInDay | element, date, day |
bbcRangeSelected | startIndex, endIndex, day, date |
bbcDayReset | element, day, date |
bbcSelectedSlotsCleared | — |
bbcCalendarRefreshClicked | — |
bbcCalendarCleared | service |
bbcSwipeDetected | direction |
bbcPendingSlotClicked | — |
bbcBookedSlotClicked | — |
bbcUnableSlotClicked | — |
bbcOffSlotClicked | — |
bbcPrevButtonDisabledToday | date |
Form & Booking
| Event | Parameters |
|---|---|
bbcFormSubmitted | formData |
bbcFormValidated | isValid |
bbcFormSubmitSuccess | outAction: buy/get_url |
bbcFormSubmitFailed | reason |
bbcFormSubmitIgnored | — |
bbcFormSubmitError | — |
bbcUnenableSlotsChecked | found_slots |
bbcRulesCheckboxChanged | checked: bool |
bbcInvoiceCheckboxChanged | checked: bool |
Coupon
| Event | Parameters |
|---|---|
bbcCouponApplied | couponCode, couponData.coupon_type, couponData.coupon_value |
bbcCouponCheckFailed | reason: empty_code/invalid/error |
bbcCouponReset | — |
bbcCouponAlreadyApplied | couponCode |
bbcCouponButtonClicked | — |
bbcDiscountCalculated | discount, totalPrice, couponData |
Additional Services
| Event | Parameters |
|---|---|
bbcAdditionalServicesLoaded | service |
bbcAdditionalQtyIncreased | id, name, value, totalPrice |
bbcAdditionalQtyDecreased | id, name, value, totalPrice |
bbcAdditionalCategoryChanged | categoryId |
bbcSelectedServicesUpdated | selectedServices, totalPrice |
bbcAdditionalServicesCleared | — |
bbcAdditionalServicesInputUpdated | selectedServices, formattedString |
bbcPopupOpened | — |
bbcPopupClosed | — |
bbcServiceQuantityChanged | serviceId, delta |
bbcServiceRemoved | serviceId |
Pricing
| Event | Parameters |
|---|---|
bbcTotalCalculated | totalPrice, totalDiscount, taxAmount, selectedHours, chosenDates |
bbcBookingDetailsUpdated | full result object |
bbcUpdateBookingDetails | — |
Loyalty Program
| Event | Parameters |
|---|---|
bbcLoyaltyFound | loyaltyData, userData |
bbcLoyaltyDiscountApplied | discountPercent, loyaltyData |
bbcLoyaltyDiscountCalculated | discount, totalPrice, discountPercent |
bbcLoyaltyReset | — |
bbcLoyaltyNotFound | userData |
bbcLoyaltyMessageShown | loyaltyData |
bbcLoyaltyCheckError | error, userData |
Cart Module
Cart events require the BBC Cart module to be enabled in Settings → General → Enable Cart.
| Event | Parameters |
|---|---|
bbcDiscountApplied | — |
bbcLoyaltyApplied | — |
bbcCouponApplied | — |
bbcCouponReset | — |
UI & System
| Event | Parameters |
|---|---|
bbcComponentsInitialized | — |
bbcComponentsBound | — |
bbcEventHandlersInitialized | — |
bbcUIInitialized | — |
bbcApplicationStarted | — |
bbcTextCopied | text |
bbcCopyFailed | error |
bbcStateChanged | key, value, oldValue |
bbcConfigChanged | key, value |
bbcScrolledTo | target, element |