Booking widget for your website

The Dineq booking widget puts the Dineq table booking form on your restaurant’s own website. Guests choose a day, the number of guests and a free time, then leave their contact details — without leaving your site. Bookings arrive in Smarton the same way as bookings made on dineq.com.

Before you start

  • Dineq is enabled and set up for your restaurant. See Dineq for how to configure it.
  • Working hours and tables are set up. The widget only offers times within your working hours when a table with enough seats is free.
  • You know your restaurant code. It is the first part of your Smarton address. For example, if you open Smarton at prezentacinis.smarton.app, your restaurant code is prezentacinis.

Adding the widget to your website

Paste these two lines into your website where the booking form should appear, and replace your-restaurant with your restaurant code:

<div data-dineq-booking="your-restaurant"></div>
<script src="https://dineq.com/assets/booking-widget.js" async></script>

The form fills the width of the space you place it in (400–500 px works best). Its height adjusts automatically as guests move through the steps, so the form never shows its own scroll bar. A small “Powered by Dineq” label is shown under the form.

Your website or website builder must let you add custom HTML code — look for a block or element called “HTML”, “Custom code” or “Embed”.

Settings — add these to the <div> line:

SettingWhat it does
data-dineq-bookingRequired. Your restaurant code.
data-langOptional. Language of the form: lt (Lithuanian, default), en (English) or ru (Russian).
data-titleOptional. Name of the form read out by screen readers. Default: “Table reservation”.

For example, to show the form in English:

<div data-dineq-booking="your-restaurant" data-lang="en"></div>

To show several forms on one page (for example, for two restaurants), add one <div> line per restaurant. The <script> line only needs to be added once.

If your website does not allow scripts

Some website builders remove <script> code. In that case, embed the form as an iframe instead. Its height does not adjust automatically, so give it a fixed height — about 720 px fits all steps; if the form gets taller, it scrolls inside the frame:

<iframe src="https://dineq.com/embed/your-restaurant?lang=en" title="Table reservation"
        style="width: 100%; max-width: 480px; height: 720px; border: 0;"></iframe>

Change your-restaurant to your restaurant code and lang=en to lang=lt or lang=ru if needed.

How guests book a table

1. Choose a day, number of guests and time. Guests pick a day from the strip (the + button shows later days, the calendar button opens a full calendar) and choose the number of guests. Free times are shown under Select time: From time hides earlier times and Show all lists every free time of the day. Days when the restaurant is closed are greyed out. After choosing a time, the guest clicks Next.

2. Enter contact details. The guest enters their name, phone number and email, and can add a comment, then clicks Confirm reservation. Back returns to the time selection.

The guest then sees a confirmation message saying that the team will contact them shortly. The booking appears in your Smarton reservations — see Managing bookings.

On phones

The widget adapts to narrow screens, so it works on phones without any extra setup.

Troubleshooting

Message or problemWhat to check
“Restaurant not found or online booking is not available.”The restaurant code in data-dineq-booking is misspelled, or Dineq is not enabled for your restaurant.
“No available reservations for selected date…”The restaurant is closed that day or all tables are taken. Check your working hours, or try another date.
“Problem while checking available reservations…”No table fits the selected number of guests, or the booking service could not be reached. Check that you have tables with enough seats, then try again.
The form does not appearCheck that both lines were pasted and the restaurant code is correct. If your website removes scripts, use the iframe version above.