/* Transport World custom - change Bookings to read Dig This Bookings */ // Case 24268 - Change this back to default //FIT5Initial.navBookings = "Reservation Products" $(function () { $('.ibis-ecomm-footer#container-footer .ibis-ecomm-footer-note').text('Tourism Management Platform for an Attraction Operator by IBIS Technology, Ltd.'); // Case 24268 - Hide DigThis products from TransWorld product group and the opposite for DigThis and Mini Dig if (location.href.toLowerCase().indexOf('prodgroup-brtwtour') > -1) { $('#ProductCode option').each(function () { if ($(this).val() !== "MUSEUMTOUR") { $(this).remove(); } }) } else if (location.href.toLowerCase().indexOf('prodgroup-dig') > -1 || location.href.toLowerCase().indexOf('prodgroup-mini') > -1) { $('#ProductCode option').each(function () { if ($(this).val() === "ProdGroup-BRTWTour" || $(this).val() === "MUSEUMTOUR") { $(this).remove(); } }) } // Case 25415 - Cinema Nights Customisation if (ibisGetVariables()["productcode"] === "prodgroup-ag") { hideProdCalendar(); if (ibisGetVariables()["workingdate"] !== "2023-07-26") location.href = "https://book.transportworld.co.nz/Departures/Index?WorkingDate=2023-07-26&ProductCode=ProdGroup-AG" } if (ibisGetVariables()["productcode"] === "prodgroup-chitty") { hideProdCalendar(); if (ibisGetVariables()["workingdate"] !== "2023-07-25") location.href = "https://book.transportworld.co.nz/Departures/Index?WorkingDate=2023-07-25&ProductCode=ProdGroup-Chitty" } if (ibisGetVariables()["productcode"] === "prodgroup-fg") { hideProdCalendar(); if (ibisGetVariables()["workingdate"] !== "2023-07-28") location.href = "https://book.transportworld.co.nz/Departures/Index?WorkingDate=2023-07-28&ProductCode=ProdGroup-FG" } if (ibisGetVariables()["productcode"] === "prodgroup-grease") { hideProdCalendar(); if (ibisGetVariables()["workingdate"] !== "2023-07-29") location.href = "https://book.transportworld.co.nz/Departures/Index?WorkingDate=2023-07-29&ProductCode=ProdGroup-GREASE" } if (ibisGetVariables()["productcode"] === "prodgroup-goonies") { hideProdCalendar(); if (ibisGetVariables()["workingdate"] !== "2023-07-27") location.href = "https://book.transportworld.co.nz/Departures/Index?WorkingDate=2023-07-27&ProductCode=ProdGroup-GOONIES" } if (ibisGetVariables()["productcode"] === "prodgroup-trhs") { hideProdCalendar(); if (ibisGetVariables()["workingdate"] !== "2023-07-30") location.href = "https://book.transportworld.co.nz/Departures/Index?WorkingDate=2023-07-30&ProductCode=ProdGroup-TRHS" } function hideProdCalendar() { $(".departures-selector").hide(); } // Case 25415 - Cinema Nights Customisation if (location.href.toLowerCase().indexOf("/booking/new") > -1) { if (ibisGetVariables()["departurecode"].indexOf(".ag-2xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ag-4xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ag-ga..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ag-ford..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ag-ute..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ch-2xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ch-4ccar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ch-ute..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ch-ford..") > -1 || ibisGetVariables()["departurecode"].indexOf(".ch-ga..") > -1 || ibisGetVariables()["departurecode"].indexOf(".fg-2xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".fg-ford..") > -1 || ibisGetVariables()["departurecode"].indexOf(".fg-ute..") > -1 || ibisGetVariables()["departurecode"].indexOf(".fg-4xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".fg-ga..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-ute..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-ga..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-ford..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-ute..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-4xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".grease-ga..") > -1 || ibisGetVariables()["departurecode"].indexOf(".grease-2xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".rocky-ute..") > -1 || ibisGetVariables()["departurecode"].indexOf(".rocky-2xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".rocky-ga..") > -1 || ibisGetVariables()["departurecode"].indexOf(".rhs-ford..") > -1 || ibisGetVariables()["departurecode"].indexOf(".rhs-4xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-ford..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-2xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".goon-4xcar..") > -1 || ibisGetVariables()["departurecode"].indexOf(".backsts..") > -1) { let doneOnce = false; $("body").on("ibEventBookingUnitChange", function () { $("#item-unit-processing-fee option[value='1']").prop("selected", true); $("#item-unit-processing-fee option").each(function () { if ($(this).val() != "1") $(this).remove(); }) if (doneOnce === false) { $("#item-unit-processing-fee").trigger("change"); doneOnce = true; } }) } } if (location.href.toLowerCase().indexOf("/departures/index") > -1) { // Case 25452 and 25469 - Hide calendar and product dropdown for Hall of Fame and Lazy P.A. if (location.search.toLowerCase().indexOf("prodgroup-halloffame") > -1 || location.search.toLowerCase().indexOf("prodgroup-lazypa") > -1) { $(".departures-selector").hide(); } // Case 25578 - Hide calendar for Black Shed Tours if (location.search.toLowerCase().indexOf("prodgroup-backshedto") > -1 && location.search.toLowerCase().indexOf("workingdate=2023-10-29") > -1) { $(".departures-selector").hide(); } } if (window.location.href.toLocaleLowerCase().indexOf("/ticket/index") > -1) { $('.item-grid').last().after("
Purchase your Dig This experience here.