=== WPCafe Addon for WCFM ===
Contributors: arraytics
Tags: multivendor, wcfm, restaurant, food ordering, woocommerce
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Brings WPCafe food-ordering capabilities to a WCFM Marketplace multivendor store.

== Description ==

WPCafe Addon for WCFM Marketplace connects [WPCafe](https://themewinter.com/wp-cafe/) with [WCFM Marketplace](https://wordpress.org/plugins/wc-frontend-manager/) 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](https://themewinter.com/wp-cafe/)
* [WCFM – WooCommerce Multivendor Marketplace](https://wordpress.org/plugins/wc-frontend-manager/)

== Installation ==

1. Install and activate WPCafe and WCFM – WooCommerce Multivendor Marketplace first.
2. Upload and activate this addon.
3. Vendors will see a new "Restaurant Menu" tab on their store page, and food settings inside their WCFM dashboard.

== Frequently Asked Questions ==

= Does this work without WCFM? =

No. This addon only adds functionality on top of an existing WCFM Marketplace store.

== 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:

1. `npm install`
2. `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.)

== Changelog ==

= 1.0.0 =
* Initial release.
