7.2 Booking widget on a Joomla site — step by step

The CarRentSoft booking module for Joomla puts an online booking widget on your rental website without editing the page code: as a module in a template position or with the {carrentsoft} tag in an article. 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. It works with Joomla 3.10, 4, 5 and 6. Below is the connection step by step, from the cabinet to the first booking.

The module 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 Joomla module”. The archive pkg_carrentsoft-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 Joomla module” (3).
Cabinet: the site address in “Your website addresses (where the widget may be embedded), one per line” (1), “Save” (2) and “Download Joomla module” (3).

Step 2. Installing the package in Joomla

  1. In the Joomla administrator open “System” → “Install” → “Extensions”, tab “Upload Package File”.
  2. Drag the downloaded archive into the upload area, or click the file selection button and choose it. Joomla installs the package by itself.
  3. Joomla reports that the package was installed and shows what to do next: the link “create the module” and the exact address of your site for the cabinet. If this address is not yet in the widget’s “Your website addresses (where the widget may be embedded), one per line”, add it there (step 1).

The package turns on the {carrentsoft} tag plugin by itself, there is nothing else to enable.

Joomla: installing extensions — the upload area (1) and the file selection button (2).
Joomla: installing extensions — the upload area (1) and the file selection button (2).
The package is installed: the link “create the module” (1) and the site address for “Your website addresses (where the widget may be embedded), one per line” (2).
The package is installed: the link “create the module” (1) and the site address for “Your website addresses (where the widget may be embedded), one per line” (2).

Step 3. The module on the website

  1. Click the link “create the module” — a new module “CarRentSoft booking widget” opens. The widget ID in the field “Widget ID” is already there.
  2. Enter a title, for example “Book a car”. The title is shown above the widget; to hide it, switch “Title” → “Hide”.
  3. Choose a “Position” in the content area. In the standard Cassiopeia template (Joomla 4–6) it is main-top; in another template, a position above or below the page content. A module without a position is not visible on the site.
  4. Click “Save & Close”.

By default the module is shown on all pages. To have the widget on one page only, open the tab “Menu Assignment”, choose “Only on the pages selected” and tick the menu item you need. The widget language is the language of the page the visitor is reading; to always show the widget in one language, choose it in the field “Widget language”.

Instead of the module you can write {carrentsoft} in an article — the same widget appears in that place; for another widget write {carrentsoft 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.

New module: the title (1), the widget ID is already filled in (2), the position main-top (3) and “Save & Close” (4).
New module: the title (1), the widget ID is already filled in (2), the position main-top (3) and “Save & Close” (4).

Step 4. Check and a test booking

  1. Open the website: the widget stands right in the 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 Joomla website with the booking widget (1).
A Joomla website 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.
  • The widget is not on the page — the module has no position, is not published, or this page is not ticked on the “Menu Assignment” tab.
  • 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 (Super User) 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”.
  • Joomla caching is on — the widget works with it: it always takes availability and prices from the CarRentSoft server.

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