설명
Tixys is a booking plattform for long-distance coaches. This plugin uses the Tixys API to provide an interactive search for travel connections.
This is very handy for companies who have a Tixys shop and want to embed a booking form into their own website. It may also be used by partners and affiliates of such companies.
설치
- Install the plugin from the WordPress repository.
- Go to Settings → Tixys, and enter your shop ID, domain and path.
- Edit the page on which the form is to be embedded.
- Use the shortcode
[tixysform]
to embed a form.
The [tixysform]
shortcode accepts a number of parameters, all of which are optional:
* target (values: same
, new
. default: same
): Open the Tixys page in the same or a new window.
* from (value: a station ID. default: null
): Pass a station ID, to have it preselected as starting point, and the select field hidden.
* to (value: a station ID. default: null
): Pass a station ID, to have it preselected as destination, and the select field hidden.
* datepicker (values: true
, false
. default: false
): Add a datepicker to allow selecting a journey date. If no datepicker is to be embedded, the current day will be used.
* affiliate (value: a user ID. default: null
): Pass an affiliate ID, as provided by the shop owner. This can be used for tracking where customers came from and what turnovers they generated. Note: Affiliate tracking is only supported on Tixys Premium.
FAQ
- How can I apply my own CSS styles?
-
Simple.
- In your theme’s functions.php, dequeue the stylesheets
tixys-form
andtixys-jquery-ui-smoothness
. - You can add any styles you want in your theme’s
style.css
.
- In your theme’s functions.php, dequeue the stylesheets
- Can I modify the form?
-
Apart from the configurational parameters and CSS styling, no. Of course, you could modify the source code. But this is strongly discouraged, because new updates will overwrite your modifications. And, you are advised to update the plugin as soon as new versions are available, because there may be updates to the Tixys API, which the new plugin version reflects.
후기
이 플러그인에 대한 평가가 없습니다.
기여자 & 개발자
변경이력
0.2
- Making the base server name selectable as we’re introducing different versions of Tixys.
- More verbose error handling.
- Wrap PHP code into classes.
- Rewrite form JS code to use WP as backend.
- Changing
$options
object structure.
0.1.2
- Various fixes to reflect API changes.
0.1.1
- Migration to www.tixys.com.
0.1
- Initial release.