7.1 Booking widget on a WordPress site — step by step

The CarRentSoft booking plugin for WordPress puts an online booking widget on your car rental website without editing the page code: with an editor block, a shortcode or a floating “Book now” button. The widget itself — a search form, a catalog of fleet units with prices, a full booking with customer documents, or a button — is set up in the CarRentSoft cabinet and is changed there too: nothing has to be redone on the website. Below is the connection step by step, from the cabinet to the first booking.

The plugin is free and distributed under the GPL licence. Bookings, customer cards and photos of their documents from the website appear in the cabinet.

Step 1. The widget in the cabinet and the site address

  1. Open the section “Integrations & Agents” and in the block “Booking widget for your website” click “Set up widgets”.
  2. Click “+ Add widget” and choose the kind, for example “Booking on the page”.
  3. In the field “Your website addresses (where the widget may be embedded), one per line” enter the site address as it is shown in the browser address bar, for example mysite.com. If the site opens both with and without www, enter both lines. Without the address the widget works only in the cabinet preview.
  4. Click “Save”.
  5. Next to “Copy code” click “Download WordPress plugin”. The archive carrentsoft-booking-version.zip is downloaded: the ID of this widget is already filled in, there is no need to look for it in the code.
Cabinet: the site address in “Your website addresses (where the widget may be embedded), one per line” (1), “Save” (2) and “Download WordPress plugin” (3).
Cabinet: the site address in “Your website addresses (where the widget may be embedded), one per line” (1), “Save” (2) and “Download WordPress plugin” (3).

Step 2. Installing the plugin in WordPress

  1. In the WordPress admin open “Plugins” → “Add Plugin” and click “Upload Plugin”.
  2. Choose the downloaded archive and click “Install Now”.
  3. When WordPress reports that the plugin is installed, click “Activate Plugin”.
WordPress: “Upload Plugin” — the archive is chosen (1), the button “Install Now” (2).
WordPress: “Upload Plugin” — the archive is chosen (1), the button “Install Now” (2).
WordPress: the plugin is installed, the button “Activate Plugin” (1).
WordPress: the plugin is installed, the button “Activate Plugin” (1).

Step 3. Plugin settings

Open “Settings” → “CarRentSoft Booking”. The widget ID in the field “Default widget ID” is already there; leave the field “CarRentSoft address” as it is. Here you can also turn on a floating “Book now” button on all pages: tick “Show the button on every page”, paste the ID of a widget of the kind “Book now” button into “Button widget ID” and choose “Button position”. If you changed anything, click “Save Changes”.

The widget language is the language of the page the visitor is reading (Polylang, WPML, TranslatePress or the site language); to always show the widget in one language, choose it in the field “Widget language”.

WordPress: “Settings” → “CarRentSoft Booking” — the widget ID is already filled in (1).
WordPress: “Settings” → “CarRentSoft Booking” — the widget ID is already filled in (1).

Step 4. The widget on a page

  1. Open “Pages” → “Add Page” (or the page you need) and enter a title.
  2. Click “+” and find the block “CarRentSoft booking widget” (search for the word CarRentSoft). Leave the block field empty — the page shows the widget from the plugin settings; for another widget enter its ID in this field.
  3. Click “Publish” and “Publish” once more in the check panel. The button “View Page” opens the finished page.

Instead of the block you can insert the shortcode [carrentsoft_widget], for another widget — [carrentsoft_widget id="widget ID"]. A website can have any number of widgets: for example, a search form on the home page and a catalog on a separate page.

Page editor: the block “CarRentSoft booking widget” (1) and its field for the widget ID (2).
Page editor: the block “CarRentSoft booking widget” (1) and its field for the widget ID (2).
The page is published (1), the button “View Page” (2).
The page is published (1), the button “View Page” (2).

Step 5. Check and a test booking

  1. Open the published page: the widget stands right in the website page.
  2. Make a test booking: dates, fleet unit, extras, customer details. With Stripe test keys the payment goes through with the test card 4242 4242 4242 4242 (any future date, any CVC), no money is charged.
  3. In the cabinet, in the widget settings, click “Check the connection”: green steps — everything is ready, a red step says what to fix and where. If the site is shown as refused, click “Add the address” and “Save”.
  4. The booking is in “Rentals” → “Reservations”, the customer with documents is in “Customers”. Cancel the test booking after the check.
A WordPress website page with the booking widget (1).
A WordPress website page with the booking widget (1).
The test booking is accepted, the booking number (1).
The test booking is accepted, the booking number (1).
Cabinet: “Check the connection” — the widget was opened on the site (1), booking and payment (2).
Cabinet: “Check the connection” — the widget was opened on the site (1), booking and payment (2).
Cabinet: the test booking from the website in “Rentals” → “Reservations” (1).
Cabinet: the test booking from the website in “Rentals” → “Reservations” (1).

If something does not work

  • Start with “Check the connection” in the widget settings: the window shows from which addresses the widget was opened and whether the server let them in, whether a payment system is connected and whether there are fleet units and locations.
  • Instead of the booking the visitor sees a message that the site is not allowed — the address is missing from “Your website addresses (where the widget may be embedded), one per line” (or it is entered without www while the site opens with www).
  • Visitors see only the link “Book online” — the CarRentSoft server cannot be reached or the widget ID is wrong; the site administrator sees the reason under the link.
  • Online prepayment cannot be turned on until a payment system is connected: the cabinet tells you where to connect it — or choose “Request without payment” in the panel “Booking”.

All widget settings and the editor are in the article Embedding booking on your website (iFrame).