
外掛標籤
開發者團隊
原文外掛簡介
WPCafe Addon for WCFM Marketplace connects WPCafe with WCFM Marketplace so each vendor can run their own restaurant menu, food ordering, and receipt printing from their own WCFM vendor dashboard.
Features
Per-vendor “Restaurant Menu” tab on the vendor store page.
Vendor food settings (preparing time, delivery time, food location) inside the WCFM dashboard.
Nutrition & allergen info fields on products.
Per-vendor delivery location selection at checkout.
Print receipts for an order from the vendor dashboard, using the WPCafe receipt layout.
Requirements
This is an addon and does nothing on its own. It requires:
WPCafe
WCFM – WooCommerce Multivendor Marketplace
Source Code
The vendor-dashboard app is written in React and TypeScript and compiled with webpack via @wordpress/scripts. It ships pre-built so the plugin runs with no build step on the site, and the complete unminified source is included in this plugin, along with everything needed to rebuild the compiled output from it.
Source files:
assets/src/ — the React/TypeScript application
tools/ — build helpers required by webpack.config.js
Build configuration:
package.json — dependencies
webpack.config.js, postcss.config.js, tailwind.config.js, tsconfig.json
To rebuild, from the plugin directory:
npm install
npm run minify
That compiles assets/src/ and writes the files below to assets/build/, overwriting the versions shipped here:
assets/build/js/dashboard.js
assets/build/js/i18n-loader.js
assets/build/chunks/js/*.js
assets/build/css/admin.css
assets/build/admin-rtl.css
(npm run build does the same, then regenerates languages/wpcafe-addon-for-wcfm.pot and packages a release zip. The zip step uses a Gruntfile that is not part of the released plugin, so use npm run minify to reproduce the compiled assets.)
