Zdarzenia i wyzwalacze w JavaScript

Baza Booking Calendar v2: Kompletny przewodnik po zdarzeniach i wyzwalaczach w JavaScript

Kompletny wykaz wszystkich zdarzeń JavaScript w aplikacji Baza Booking Calendar v2. Zdarzenia te można wykorzystać do integracji z Google Analytics 4, Google Tag Manager, LiveChat, Zapier lub dowolnym skryptem niestandardowym.

Wszystkie zdarzenia są wyzwalane na $(document) z prefiksem bbc. Nasłuchuj za pomocą:

$(document).on('bbcEventName', function(e, data) {
    console.log(data);
});

Inicjalizacja

WydarzenieParametry
bbcInitialized–

Kalendarz

WydarzenieParametry
bbcCalendarPrintedservice, queryParams
bbcAjaxPrintCalendarSuccess–
bbcCalendarNavigateddirection: next/prev, queryData
bbcServiceChangedservice, queryData
bbcHandleClick–
bbcCalendarClickHandledelement, selectedCount
bbcFirstClickInDayelement, date, day
bbcRangeSelectedstartIndex, endIndex, day, date
bbcDayResetelement, day, date
bbcSelectedSlotsCleared–
bbcCalendarRefreshClicked–
bbcCalendarClearedservice
bbcPendingSlotClicked–
bbcBookedSlotClicked–
bbcUnableSlotClicked–
bbcOffSlotClicked–
bbcPrevButtonDisabledTodaydate
bbcCalendarDataChangedservice
bbcCalendarDataLoaded–
bbcCalendarPrintErrorxhr, status, error, queryParams
bbcDayPickerDayOpened–
bbcDayPickerMonthChanged–
bbcDayPickerMonthShown–
bbcHandleClickBlockedelement, reason
bbcRangeChangedstartMonth, endMonth, startYear, endYear
bbcSlotClaimsChanged–
bbcSlotDeselectedelement, date
bbcSlotSelectedelement, date
bbcUpdateCalendarSlots–
bbcWeekAppendedresponse, year, month, day
bbcWeekLoadedloadedDays, queueRemaining

Formularz i rezerwacja

WydarzenieParametry
bbcFormSubmittedformData
bbcFormValidatedisValid
bbcFormSubmitSuccessoutAction: buy/get_url
bbcFormSubmitFailedreason
bbcFormSubmitIgnored–
bbcFormSubmitError–
bbcUnenableSlotsCheckedfound_slots
bbcRulesCheckboxChangedchecked: bool
bbcInvoiceCheckboxChangedchecked: bool
bbcBookingDataLoadErrorbookingId
bbcBookingElementsInitialized–
bbcFormBuilderReloaded–
bbcFormResetAfterBooking–
bbcMailOrPhoneChangeddata

Kupon

WydarzenieParametry
bbcCouponAppliedcouponCode, couponData.coupon_type, couponData.coupon_value
bbcCouponCheckFailedreason: empty_code/invalid/error
bbcCouponReset–
bbcCouponAlreadyAppliedcouponCode
bbcCouponButtonClicked–
bbcCouponBlurChecked–
bbcCouponClearedOnBlur–
bbcCouponClearedOnInput–
bbcCouponEnterPressed–

Usługi dodatkowe

WydarzenieParametry
bbcAdditionalServicesLoadedservice
bbcAdditionalQtyIncreasedid, name, value, totalPrice
bbcAdditionalCategoryChangedcategoryId
bbcSelectedServicesUpdatedselectedServices, totalPrice
bbcAdditionalServicesCleared–
bbcAdditionalServicesInputUpdatedselectedServices, formattedString
bbcPopupOpened–
bbcPopupClosed–
bbcServiceQuantityChangedserviceId, delta
bbcServiceRemovedserviceId
bbcAdditionalServiceClicked–
bbcAdditionalServicesLoadErrorservice, xhr, status, error
bbcAdditionalTotalPriceCalculatedtotal
bbcChoiseQtyMinusserviceId
bbcChoiseQtyPlusserviceId
bbcChoiseRemovedserviceId, day
bbcUpdateAdditionalServicesInput–
bbcAdditionalQtyChangedname, oldValue, newValue, totalPrice
bbcAdditionalQtyDecreasedid, name, value, totalPrice
bbcAdditionalQtyInitialized–
bbcSingleSelectionChangedselectedInput

Ceny

WydarzenieParametry
bbcBookingDetailsUpdatedobiekt zawierający pełny wynik
bbcUpdateBookingDetails–
bbcElementPriceUpdatedelement, price, secondPrice, enableSecond, reset
bbcMinimumAmountCheckedvalid, minimumHours
bbcPaymentActivityCheckedpaymentActivity
bbcPriceCleared–
bbcPriceDisplayUpdatedtotalPrice, taxAmount, taxLines, discount, info, partialAmount, userBalance, finalPriceWithTax, infoLines, fullLines, payNow, amount
bbcPriceInfoLines–
bbcServerPrice–
bbcServerPriceCleared–
bbcSurchargesInChoiseUpdated–

Program lojalnościowy

WydarzenieParametry
bbcLoyaltyFoundloyaltyData, userData
bbcLoyaltyDiscountApplieddiscountPercent, loyaltyData
bbcLoyaltyReset–
bbcLoyaltyNotFounduserData
bbcLoyaltyMessageShownloyaltyData
bbcLoyaltyCheckErrorerror, userData

Moduł koszyka

Aby korzystać z funkcji koszyka, należy włączyć moduł BBC Cart w sekcji Ustawienia, Ogólne, Włącz koszyk.

WydarzenieParametry
bbcCouponApplied–
bbcCouponReset–
bbcBalanceCodeSendFailedmessage
bbcBalanceCodeSentisResend
bbcBalanceCodeVerified–
bbcBalanceCodeVerifyFailedmessage
bbcBalanceDeductionDisplayeddeduction, balanceAfter
bbcBalanceReset–
bbcBalanceSendCodeStartedisResend
bbcBalanceVerifyStartedcode
bbcOfferAppliedoffer
bbcOffersLoadedoffers

Interfejs użytkownika i system

WydarzenieParametry
bbcComponentsInitialized–
bbcComponentsBound–
bbcEventHandlersInitialized–
bbcUIInitialized–
bbcApplicationStarted–
bbcTextCopiedtext
bbcCopyFailederror
bbcStateChangedkey, value, oldValue
bbcConfigChangedkey, value
bbcScrolledTotarget, element
bbcAlertShowntext, position, delay, image, type
bbcAlertsCleared–
bbcFieldFocusedelement
bbcLoadingHidden–
bbcLoadingShown–
bbcPopupClosedOutside–
bbcPopupInitialized–
bbcStateReset–
bbc_sp_closed–
bbc_sp_loaded–
Ostatnia modyfikacja: 25.10.2026