Warning! This section is advanced. If in doubt, consult your web designer.

The code for adding a booking widget to your website can be found under "Online Booking" > "HTML Widgets" within the product. The function call that activates the plugin looks something like this:

window.TTE.init({
  targetDivId: "TTE-457429ef-e98b-4891-8f14-ef6d352e783a",
  uuid: "457429ef-e98b-4891-8f14-ef6d352e783a"
});

The uuid parameter is unique to your account.

By default, this will create a booking widget that allows your customers to select which service they want to book. In order to limit them to only a particular service, you can add a service parameter. To find the id number of your service, go to "Set Up" > "Services" and find the "Direct link to service". The service parameter is the last number in this URL. For example, if the direct link to the service is:

https://10to8.com/book/randjs/123/

Then the code for a booking widget with only this service would be:

window.TTE.init({
  targetDivId: "TTE-457429ef-e98b-4891-8f14-ef6d352e783a",
  uuid: "457429ef-e98b-4891-8f14-ef6d352e783a",
  service: 123
});
Did this answer your question?