Hi all,
I’m updating the booking system used on a restaurant website – the client has changed to a different provider (SevenRooms).
I want to add their ‘widget’ to the site and have been given the following code, which I’ve entered into a script snippet:
<div id="sr-res-root" class="sr-sm sr-dark sr-#000000">Reservations</div>
<script src="https://www.sevenrooms.com/widget/embed.js"></script>
<script>
SevenroomsWidget.init({
venueId: "nameofrestaurant",
triggerId: "sr-res-root", // id of the dom element that will trigger this widget
type: "reservations", // either 'reservations' or 'waitlist' or 'events'
styleButton: true, // true if you are using the SevenRooms button
clientToken: "" //(Optional) Pass the api generated clientTokenId here
})
</script>
This doesn’t work, it opens a pop-up/modal but content doesn’t load. Any idea what I may be doing wrong?
In case it’s helpful, here’s the code from the previous provider, which worked absolutely fine:
<div class="container-12 w-container">
<div id="Resy-Widget" class="html-embed w-embed w-script">
<a href="https://resy.com/cities/glc/restaurantname" id="resyButton-896bolJfITtzkixKPJw-_">Book your table on Resy</a>
<script src="https://widgets.resy.com/embed.js"></script>
<script>
resyWidget.addButton(document.getElementById('resyButton-896bolJfITtzkixKPJw-_'), {
"venueId": 53305,
"apiKey": "C5So7Q9G9iDntelT3bWZKFQ7ZojYpkvl",
"replace": true,
});
</script>
</div>
</div>
Would be super grateful if any of you could point me in the right direction. The SevenRooms tech support were completely useless…