Travelmanager demo

Departure search

Search departures using a date and the categories configured in Travelmanager.

WORDPRESS INTEGRATION

Add this to your website.

Provide a date and category search with departure results loaded through AJAX.

Add a Shortcode block to your WordPress page and paste the following code.

[travelmanager call="basket" lang="en"]
[travelmanager call="list" lang="en"]

Keep the basket shortcode on the same page for journeys that open local trip details. It supplies the booking context and shows the current basket when populated.

Parameters for this example
ParameterValue / defaultWhat it does
calllistUse this exact value to select the view shown in this example.
station_idNo station filterOptional single station ID passed to the backend search.

Filter departures for a station

[travelmanager call="basket" lang="en"]
[travelmanager call="list" station_id="2" lang="en"]

The URL query start in DD.MM.YYYY preselects the date; without it, the date is today. The URL query linientyp_id preselects a category. These URL queries are not equivalent shortcode attributes.

The numeric IDs in the examples are placeholders. Replace them with IDs from your own account. Attribute names and call values stay unchanged in every language.

Account, language and shared options

Install and activate Travelmanager. Save your backend hostname under Settings → Travelmanager and enable Automatic language or select a fixed language. Store the optional private WordPress token there if your account requires it. The examples use the saved account; you can override it with account.

ParameterValue / defaultWhat it does
accountSaved settingOptional backend hostname, for example your-account.travelmanager.software, without https://. Overrides the default account.
langen / deLanguage code for this instance, for example en or de. Use Automatic or a fixed language in the plugin settings to enable the current language behavior.
cachefalseOptional: false bypasses the plugin API-read cache for this call. It does not clear a WordPress page cache or CDN cache. Usually omit this parameter.
vermittler_idEmptyOptional numeric referral ID. Existing referral information from a URL or session can also affect the booking context.

Use literal true and false for boolean attributes. Parameter names such as linie_id, linien_ids and linie_typ_id identify different filters and must not be translated or interchanged.

Official plugin documentation →

Try it yourself.

Adjust the date and category to find a suitable departure.

Demonstration account: please use test details only. Do not enter personal or payment information.

Explore more Travelmanager features →

More from PHCOM

Discover our software.

Find out more about the products behind these demos.