Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/zeeshanraza-official/wpcalibrate-restaurant-marketplace/releases/download/v1.0.2/wpcalibrate-restaurant-marketplace-1.0.2.zipWPCalibrate Restaurant Marketplace transforms WooCommerce into an enterprise-grade multi-restaurant food ordering and partner management platform. It enables marketplace operators to run an independent food delivery service where restaurants publish menus, manage custom modifiers, configure operating hours with overnight shifts, deliver within defined postcode zones, manage kitchen orders in real time, and audit earnings in an immutable financial ledger.
📌 Table of Contents
- About the Plugin
- Key Features
- Architectural Pillars
- Documentation & Usage Guide
- Settings & Configuration
- Developer API & Hooks
- Changelog
- Support & Author
- License
🍽️ About the Plugin
Traditional WooCommerce stores are built for single-vendor retail. WPCalibrate Restaurant Marketplace bridges the gap for on-demand food commerce by introducing:
- Dedicated Partner Portal: Restaurant owners and kitchen staff operate from a dedicated frontend dashboard (
[wpcm_restaurant_dashboard]) without needing access to the WordPress admin area. - Kitchen Order Management: Live order advancement through dedicated states: Pending → Accepted → In Preparation → Ready → Out for Delivery → Completed.
- Single-Restaurant Cart Enforcement: Prevents customers from mixing dishes from different kitchens in the same order, with a frictionless "Clear & Switch" modal.
- Zero Build Dependencies: 100% native PHP and Vanilla CSS. No bloated node bundles, Webpack steps, or external API reliance.
✨ Key Features
🏢 Multi-Tenant Restaurant Operations
- Custom
wpcm_restaurantpost type with categorized cuisines (wpcm_cuisine). - Dedicated user roles:
wpcm_restaurant_ownerandwpcm_restaurant_staffwith granular capabilities. - Self-service partner application form (
[wpcm_restaurant_application]) with an admin approval queue. - Multi-restaurant account switcher in the frontend partner dashboard.
🍕 Menu & Custom Dish Modifiers
- Link standard WooCommerce products directly to individual restaurants.
- Add required or optional modifier groups (e.g. Size, Crust, Extra Toppings, Spice Level).
- Server-Side Price Integrity: Recalculates all modifier prices on the server during cart calculations to prevent price tampering.
⏰ Operating Hours & Midnight Engine
- Timezone-aware opening hours engine utilizing
wp_timezone(). - Multi-interval daily shifts (e.g., lunch 11:30–14:30 and dinner 17:30–23:00).
- Seamless overnight/midnight shift handling (e.g. Friday 18:00 to 02:00 Saturday).
- Emergency store pause button to instantly close a restaurant during kitchen rushes.
🚚 Postcode Delivery Zones & Scheduling
- Per-restaurant delivery boundaries with exact and wildcard postcode matching (e.g.,
W1*,SW1A 1AA). - Tiered delivery fees and minimum order requirements attached directly to the WooCommerce checkout.
- ASAP and scheduled slot ordering (configurable slot intervals and days ahead).
💳 Commission Accounting & Payouts
- Configurable platform commissions: Percentage fee (e.g., 15%) + fixed per-order fee (e.g., $1.00).
- Transparent, immutable financial ledger (
wpcm_ledger) with per-order calculation snapshots. - Automated proportional commission reversals on WooCommerce refunds.
- Safe manual disbursements with overdraft balance protection.
🎨 Modern UI & Responsive Layouts
- Dark gradient admin header banners with WPCalibrate branding.
- Unified admin design system (
assets/css/admin.css) with metric stat cards and step-by-step guides. - Responsive, elevated customer directory storefront (
assets/css/directory.css). - Real-time customer visual order tracking timeline on Order Received and My Account pages.
⚡ Architectural Pillars
| Pillar | Implementation |
|---|---|
| Tenant Isolation | Scoped access through MembershipService validating capabilities against wpcm_restaurant_users table or primary ownership. |
| Cart Isolation | Single-restaurant cart validation hooked into woocommerce_add_to_cart_validation and woocommerce_check_cart_items. |
| Price Recalculation | Server-side modifier calculations hooked into woocommerce_before_calculate_totals. |
| HPOS Compatibility | Declared compatible with WooCommerce High-Performance Order Storage (custom_order_tables). |
| Checkout Blocks | Compatible with modern WooCommerce Cart and Checkout Blocks (cart_checkout_blocks). |
| Privacy & GDPR | Implements standard WordPress Personal Data Exporter and Personal Data Eraser hooks. |
📖 Documentation & Usage Guide
System Requirements
- WordPress: 6.9 or higher
- WooCommerce: 10.8 or higher
- PHP: 8.2 or 8.3 with
bcmath,curl,json,mbstring,openssl
Installation
- Download
wpcalibrate-restaurant-marketplace.zipfrom the latest GitHub Release. - In your WordPress admin, navigate to Plugins → Add New → Upload Plugin.
- Select the ZIP file and click Install Now.
- Click Activate Plugin. The plugin will automatically run database schema migrations and register default pages.
Step-by-Step Marketplace Roadmap
- Configure Marketplace Rules: Navigate to WPCalibrate → Settings to set your default platform commission rate, delivery fees, preparation times, and admin notifications.
- Onboard Restaurants: Add restaurants in WPCalibrate → Restaurants → Add New, or direct applicants to the registration form.
- Configure Menus: Create food products in WooCommerce, assign them to a restaurant, and attach custom modifier groups.
- Publish Frontend Pages: Place shortcodes on public pages for your directory and vendor dashboard.
- Live Kitchen Fulfillment: Restaurant staff manage incoming orders via their dedicated portal.
- Disburse Payouts: Audit accumulated earnings in WPCalibrate → Payouts & Ledger and record disbursements.
Shortcodes Directory
| Shortcode | Description |
|---|---|
[wpcm_restaurant_directory] |
Customer-facing directory featuring cuisine filters, operating status badges, search, and storefront menu previews. |
[wpcm_restaurant_dashboard] |
Vendor operations portal for managing live orders, menus, hours, delivery zones, and staff members. |
[wpcm_restaurant_application] |
Self-service registration form for new restaurant partners to apply for marketplace inclusion. |
⚙️ Settings & Configuration
Settings are located under WPCalibrate → Settings:
- Overview & Guide: Interactive roadmap, architecture documentation, and shortcode cheat sheet.
- General & Ordering: Marketplace name, auto-approve applications toggle, default prep time, delivery/pickup toggles, and scheduling rules.
- Commissions & Earnings: Platform percentage fee, fixed per-order fee, minimum payout threshold, and earnings hold duration.
- Licensing: WPCalibrate license verification adapter.
- Data & Privacy: Option to retain or clean up marketplace tables on uninstall.
- Support & Contact: Official WPCalibrate support links and documentation.
🛠️ Developer API & Hooks
Procedural Functions
wpcm_get_restaurant( int $restaurant_id ): ?arraywpcm_is_restaurant_open( int $restaurant_id, ?DateTimeInterface $datetime = null ): boolwpcm_get_cart_restaurant_id(): ?int
Action Hooks
wpcm_restaurant_status_changed( int $restaurant_id, string $old_status, string $new_status )wpcm_order_operational_status_changed( int $order_id, string $old_status, string $new_status, int $restaurant_id )wpcm_ledger_entry_recorded( array $entry_data )wpcm_payout_recorded( array $payout_data )
Filter Hooks
wpcm_calculate_commission( array $commission_data, WC_Order $order, int $restaurant_id ): arraywpcm_delivery_fee( float $fee, int $restaurant_id, string $postcode, float $subtotal ): floatwpcm_allowed_order_transitions( array $transitions, string $current_status, string $fulfillment_type ): array
📋 Changelog
[1.0.2] - 2026-10-20
- Added: Comprehensive "Overview & Guide" tab in main Admin Dashboard and Marketplace Settings.
- Added: Unified modern admin stylesheet (
assets/css/admin.css) with dark gradient headers, metric stat cards, step cards, and responsive tab navigation. - Changed: Modernized layout of main Dashboard, Settings screens, and Payouts manager.
- Changed: Upgraded frontend Partner Dashboard styles (
assets/css/dashboard.css) with status badges and operational action buttons. - Changed: Upgraded public restaurant directory storefront styles (
assets/css/directory.css) with card elevation and open/closed badges. - Added: GitHub auto-update metadata headers and GPLv2 LICENSE.
[1.0.1] - 2026-10-20
- Added: Automated FTP remote deployment system (
deploy-ftp.phpanddeploy-ftp.ps1). - Fixed: Resolved Intelephense "Problems 1K+" diagnostics via
.vscode/settings.json,stubs/wordpress-stubs.php, andstubs/woocommerce-stubs.php.
[1.0.0] - 2026-10-20
- Initial Release: Complete 33-phase multi-restaurant food ordering marketplace engine with HPOS and Cart/Checkout Blocks compatibility.
🤝 Support & Author
- Author: WPCalibrate
- Marketplace Portal: marketplace.wpcalibrate.com
- Support Email: support@wpcalibrate.com
- GitHub Repository: zeeshanraza-official/wpcalibrate-restaurant-marketplace
📄 License
This project is licensed under the GNU General Public License v2.0 or later - see the LICENSE file for details.
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.