Nous résumons ci-dessous les étapes à suivre pour l'intégration du moteur de réservation avec le Meta IO de Wihp :
1) Aller à Intégrations > Mark up Manager.
2) Adapter le code suivant en remplaçant le champ #idwihp# par l'ID fourni par Wihphotels pour le suivi :
<script>
try { var currency = configuration.defaultCurrency; var htmlBody = document.body || document.getElementsByTagName("body")[0]; if ( transactionObject && transactionObject.items && transactionObject.items.length > 0 ) { for (var index = 0; index < transactionObject.items.length; index++) { var wihpScript = document.createElement("script"); var amount = transactionObject.items[index].amount; var reservationId = transactionObject.items[index].id; var checkin = transactionObject.items[index].checkIn; var checkout = transactionObject.items[index].checkOut; var scriptSrc = "https://secure-hotel-tracker.com/tics/log.php?act=conversion&" + "ref=" + reservationId + "&" + "amount=" + amount + "&" + "currency=" + currency + "&" + "idbe=3&" + "idwihp=#idwihp#" + "&"+ "checkin=" + checkin + "&" + "checkout=" + checkout + "&" + "date_format=YYYY-MM-DD"; wihpScript.setAttribute("src", scriptSrc); htmlBody.appendChild(wihpScript); } } } catch (exception) { console.log("error tracking wihphotel"); console.log(exception); }
</script>
3) Insérer le code adapté dans le champ « Mark up »
4) Configurer les variables comme dans la capture d'écran suivante :
- Actif : Oui
- printOneTime : Oui
- Nom : Wihphotel
- Position : Avant la fermeture de la balise
- Emplacement : Confirmation
5) Demander à soporte@witbooking.com d'activer l'accès à Wihp pour la consultation des prix / disponibilités dans l'API.
Cet article a-t-il été utile ?
C'est super !
Merci pour votre commentaire
Désolé ! Nous n'avons pas pu vous être utile
Merci pour votre commentaire
Commentaires envoyés
Nous apprécions vos efforts et nous allons corriger l'article