Здравейте,
трябва да интегрирам този скрипт за резервации в сайта ни, но нещо не се получава.
Моля за съдействие и предварително благодаря.
Интеграционен скрипт:
<link rel="stylesheet" href="https://static-assets.clock-software.com/wbe_v2/clock-pms-wbe-integration.css">
<link rel="stylesheet" href="https://static-assets.clock-software.com/wbe_v2/clock-pms-wbe-reminder.css">
<script defer src="https://static-assets.clock-software.com/wbe_v2/clock-pms-wbe-integration.js"></script>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
window.clockPmsWbeInit({
wbeBaseUrl: "https://sky-eu1.clock-software.com/spa/pms-wbe/#/hotel/14468",
defaultMode: "standard",
roundedCorners: true,
language: null,
});
document.querySelectorAll("[data-clock-pms-wbe-form]").forEach((form) => {
form.addEventListener("submit", (e) => {
e.preventDefault();
const formData = new FormData(e.target);
window.clockPmsWbeShow({
arrival: formData.get("arrival"),
departure: formData.get("departure"),
// adults: ..., // Optional. Default value if omitted: 2. Expects an integer or null.
// children: ..., // Optional. Default value if omitted: 0. Expects an integer or null.
// childrenAges: ..., // Optional. Default value if omitted: []. Expects an array of integers. Example: [5, 8]
bonusCode: formData.get("bonusCode"),
companyCode: formData.get("companyCode"),
blockCode: formData.get("blockCode"),
roomTypeIds: [],
rateIds: [],
submit: true,
});
});
});
});
</script>
трябва да интегрирам този скрипт за резервации в сайта ни, но нещо не се получава.
Моля за съдействие и предварително благодаря.
Интеграционен скрипт:
<link rel="stylesheet" href="https://static-assets.clock-software.com/wbe_v2/clock-pms-wbe-integration.css">
<link rel="stylesheet" href="https://static-assets.clock-software.com/wbe_v2/clock-pms-wbe-reminder.css">
<script defer src="https://static-assets.clock-software.com/wbe_v2/clock-pms-wbe-integration.js"></script>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
window.clockPmsWbeInit({
wbeBaseUrl: "https://sky-eu1.clock-software.com/spa/pms-wbe/#/hotel/14468",
defaultMode: "standard",
roundedCorners: true,
language: null,
});
document.querySelectorAll("[data-clock-pms-wbe-form]").forEach((form) => {
form.addEventListener("submit", (e) => {
e.preventDefault();
const formData = new FormData(e.target);
window.clockPmsWbeShow({
arrival: formData.get("arrival"),
departure: formData.get("departure"),
// adults: ..., // Optional. Default value if omitted: 2. Expects an integer or null.
// children: ..., // Optional. Default value if omitted: 0. Expects an integer or null.
// childrenAges: ..., // Optional. Default value if omitted: []. Expects an array of integers. Example: [5, 8]
bonusCode: formData.get("bonusCode"),
companyCode: formData.get("companyCode"),
blockCode: formData.get("blockCode"),
roomTypeIds: [],
rateIds: [],
submit: true,
});
});
});
});
</script>