Travelmanager · call="basket"

Basket indicator

Use this small component alongside eventinfo or other views that open journey details in WordPress. It refers to the current visitor’s booking session. It is an indicator and link, not a page containing editable basket rows or a checkout form.

Try this demo → · Shortcode and parameters

Try it step by step

  1. Look for the basket icon in the live demo. A fresh session normally has no item count.
  2. When the current session contains items, the number links to the connected booking system’s basket.
  3. On your own booking page, place this shortcode once alongside the journey details.

An icon without a number is the expected empty-basket demo. No sample items are added automatically.

Live demo

Code used by this live demo

The live example uses demo-account values. The integration code below contains placeholders for your own account.

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

WORDPRESS INTEGRATION

Add this to your website.

Show the basket icon for the current booking session and, when it contains items, the item count and a link to the hosted basket.

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

[travelmanager call="basket" lang="en"]
Parameters for this example
ParameterValue / defaultWhat it does
callbasketUse this exact value to select the view shown in this example.
targetOptional: omitted or blankblank requests a new tab for the item-count link of a populated basket. It applies to that link, not to every booking button. Normally leave this parameter out.

Open the populated basket’s count link in a new tab

[travelmanager call="basket" target="blank" lang="en"]

The shortcode does not add a product, reserve a seat or complete a booking. It displays the state of the existing session.

Do not share a cached page containing a visitor’s basket between visitors. Exclude the booking page from full-page and CDN caches; cache="false" alone does not do this.

Uppercase values such as YOUR_RELATION_KEY, ARTICLE_ID and STATION_ID are placeholders. Replace them with identifiers from your own account. Numeric sample IDs also belong to a specific 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.

Content Bridge is an optional setting for exporting saved page and post text to chatbot knowledge, not a shortcode. It is disabled by default and requires the upcoming plugin build. See the Content Bridge guide on the Travelmanager overview.

Official plugin documentation →

More from PHCOM

Discover our software.

Find out more about the products behind these demos.