Where to find it: Online sales › Widgets
Goal: by the end, your visitors will be able to choose a date and book directly on your website.
Before you start
- At least one product has availability and prices (see Step 3: Open your availability).
- A payment method is active and available in Frontoffice for online sales. See Step 1: Set up your workspace and payment methods.
- You can edit your website, or someone in your team can.
Not sure you understand? Read How does selling on your website work? first. The detailed widget guide is here: How to create and integrate widgets?
Which widget to choose?
| Widget | Use |
|---|---|
| Calendar | Show the dates of a product on its page |
| Product list and calendar | Present several products on the same page |
| Cart | Complete the order and pay. Promo codes are entered here. |
| Use a gift voucher | Let a customer use their voucher |
To get started, a Calendar widget on your product page and a Cart widget on a dedicated page are usually enough.
Steps
- Go to Online sales › Widgets.
- Authorise your website to use the widgets. At the top of the screen, enter its address in the Website field, click Add, then Save. You can declare several websites.
- Create a page dedicated to the cart on your website and note its address. If your website exists in several languages, each language has its own cart page, and therefore its own URL.
- In the Create your widget block, choose Calendar in the Type field. A Preview is displayed.
- Select the product to display and the widget language.
- Fill in the Cart page URL: the address of the page created in step 3, in the widget language. This field appears depending on the widget type and the language, and it feeds the widget code. Note that each language has its own URL: for a website in several languages, create one widget per language, each with the URL of its cart.
- Copy the widget code. Copy it in full, without changing anything.
- On your website, paste this code into the product page. Use a block that accepts code, often called “HTML” or “code” in your website builder. The widget is not an iframe: it is a DIV embedded directly in your page. It inherits your website style, its height adapts, and you can add your own CSS and your own JavaScript to customise its display.
- Repeat steps 4 to 8 with the Cart widget and paste it on the cart page.
- Publish your pages on your website.
Warning: the widget code is a script, not plain text. Some website builders remove it if it is pasted into a standard text block. If nothing displays, use a “code” or “custom HTML” block.
Check that it worked
What you should see: on the product page of your website, the calendar shows your open dates. After choosing a date, you reach your cart page.
What if… (known limits)
- The widget does not display: check that your website address is declared in the Website field of the Widgets screen, and that the code was not changed when pasting it.
- The calendar is empty: check the periods, prices and stock of the product (step 3).
- Payment is not offered: check that your payment method is available in Frontoffice.
Next
Any question? Contact the Tourbiz team, quoting the title of this article.
