[WordPress] 外掛分享: MYF Fleet Booking Widget

首頁外掛目錄 › MYF Fleet Booking Widget
全新外掛
安裝啟用
尚無評分
10 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.8 上架:2026-07-20

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「MYF Fleet Booking Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

MYF Fleet Booking Widget adds a self-contained cab-booking widget to any page or post. Visitors search live fares and confirm bookings across four service types:

Outstation — one-way or round trip, with per-km and daily-allowance breakdown
Local — hourly/km packages
One Way — point-to-point on-demand rides
Airport — drop-to-airport or pickup-from-airport transfers, with a searchable airport/station picker

Key features:

Insert via the [myfboen_booking] shortcode or the “MYF Fleet Booking Widget” Gutenberg block
Google Places autocomplete for pickup/drop addresses (requires your own Google Maps API key)
Light/dark theme and accent colour, configurable from Settings → MYF Fleet Booking Widget
All calls to the MYF Fleet API are proxied through WordPress — your API token and signing salt are stored server-side and are never sent to the browser
No build step for the frontend or block editor scripts — pure JavaScript against WordPress core globals

Requirements
You need an active MYF Fleet API account (token + security salt) to search fares and take bookings. Without credentials configured, the widget shows a setup notice to administrators instead of rendering.
External Services
This plugin connects to two external services:
MYF Fleet API
Used to search available cabs and confirm bookings. Requests are made server-side from your WordPress install; data sent includes the pickup/drop coordinates, travel date/time, and — for bookings — the traveller’s name, mobile number and email address.
All calls are proxied through WordPress; your MYF token and salt never leave the server.

API endpoint: https://carapi.myf.io/w/v1/json/marketplace (search: .../marketplace/search, booking: .../marketplace/booking)
Terms of Service: https://mindyourfleet.com/termandcondition.php
Privacy Policy: https://mindyourfleet.com/privacyandpolicy.php

Google Maps Places API
Used for location autocomplete in the booking form. The Google Maps JavaScript library is loaded in the visitor’s browser only when a Google Maps API key has been entered in the plugin settings; the key itself is passed to the browser to initialise the Places library.

Terms of Service: https://developers.google.com/maps/terms
Privacy Policy: https://policies.google.com/privacy

延伸相關外掛

文章
Filter
Apply Filters
Mastodon