=== Eatzino Online Ordering ===
Contributors: aximatix
Tags: restaurant, online ordering, food ordering, menu, elementor
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 1.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Commission-free online ordering for your restaurant website: order button, menu, opening hours and Google data, all from your Eatzino account.

== Description ==

Eatzino Online Ordering connects your WordPress website to your restaurant on [Eatzino](https://eatzino.com). You keep your menu, prices and opening hours in Eatzino, and your website shows them. You never have to update anything twice.

* **Floating "Order online" button** on every page (optional, left or right). It shows how many items are in the cart.
* **Order button** you can place anywhere, filled or outline.
* **Ordering menu** inside a page. Guests choose dishes without leaving your site.
* **Menu as text on your page**, with photos, prices and categories. Search engines can read it, and the "+" on a dish opens the order window at that dish.
* **Opening hours** with a live "Open now · until 22:00" line. The hours follow the restaurant's own time zone.
* **Google data** (schema.org Restaurant: address, phone, opening hours, menu link), added automatically.
* **Own "Eatzino" menu in WordPress** with an overview: your restaurant, a to-do list that ticks itself off, and a button to your Eatzino dashboard.
* **Elementor widgets** in the group "Eatzino – Restaurant": Ordering, Food Menu, Ordering Widget, Opening Hours.
* Four blocks for the block editor, and shortcodes for every other editor (Divi, classic editor …).
* Your theme's own buttons can open ordering: link them to `#eatzino-order`.
* The floating button cannot be broken by theme styles, moves up when a chat or "back to top" button is in the same corner, and steps aside while a cookie banner is open.
* Saving the settings empties the page cache (LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache …).
* English and German. The widget follows your website's language, or you can choose one.
* Orders arrive in your Eatzino partner dashboard and app.

Guests choose their dishes on your website. To log in and finish the order they continue in a new tab on eatzino.com, because browsers block logins inside embedded windows.

You need an Eatzino restaurant account to use this plugin: https://eatzino.com/business

= Shortcodes =

* `[eatzino_order_button]` – button that opens the order window. Options: `label="Jetzt bestellen"`, `color="#006FDE"`, `style="outline"`, `lang="de"`, `shop="12"`.
* `[eatzino_order_link]` – plain link to your restaurant page on eatzino.com.
* `[eatzino_menu height="800"]` – the full ordering menu inside the page.
* `[eatzino_menu_list]` – the menu as text on your page. Options: `photos="no"`, `category="Pizza"`, `categories="no"`.
* `[eatzino_hours]` – the opening hours. Option: `status="no"` hides the "Open now" line.
* `[eatzino_reservation]` – table booking form inside the page (guests choose party size, day and time; no account needed).
* `[eatzino_reservation_button]` – button that opens table booking. Options: `label`, `color`, `style="outline"`, `lang`, `shop`.

Every shortcode accepts `shop="…"` (number or link) to show another restaurant, for example a second location.

= For developers =

The button works on any element: `<a href="#eatzino-order">Order</a>`, `class="eatzino-order"` or `data-eatzino-order`, or `data-eatzino-product="<dish uuid>"` to open a dish. From JavaScript use `window.EatzinoWidget.open()`. The page receives the events `eatzino:open`, `eatzino:close`, `eatzino:cart` and `eatzino:checkout` on `document`.

= External service =

This plugin uses the Eatzino service, provided by Aximatix Private Limited:

* Your visitors' browsers load the ordering widget from eatzino.com (the script `https://eatzino.com/embed.js` and the pages under `https://eatzino.com/embed/`) and connect to api.eatzino.com.
* Your WordPress server reads your restaurant's public data (name, address, opening hours, menu) from `https://api.eatzino.com` to show the menu list, the opening hours and the Google data. It sends only your restaurant number and the language. Answers are cached for 10 minutes.

No data about your visitors is sent from your WordPress installation.

* Terms: https://eatzino.com/terms
* Privacy policy: https://eatzino.com/privacy

== Installation ==

1. Upload the plugin (Plugins → Add New → Upload Plugin) and activate it.
2. Go to Eatzino → Settings (own menu item in the WordPress sidebar).
3. Paste the link of your restaurant page on eatzino.com (for example `https://eatzino.com/de/berlin/restaurant/your-restaurant`), or enter your restaurant number.
4. Save. The card at the top shows your restaurant, and the order button now appears on your website.
5. Eatzino → Overview shows what is still to do. Optional: add the Elementor widgets from "Eatzino – Restaurant" or the blocks "Eatzino Menu (page content)" and "Eatzino Opening Hours" to a page.

== Frequently Asked Questions ==

= Where do I find my restaurant link? =

In your partner dashboard (partner.eatzino.com) under "Website ordering", or by opening your restaurant on eatzino.com and copying the address.

= I changed my menu. Why does my website still show the old one? =

The plugin keeps the menu for 10 minutes. Click "Reload menu now" in Eatzino → Overview or Settings to show the change at once.

= Can I hide the floating button? =

Yes. Switch it off in the settings and place the button or menu yourself with the blocks or shortcodes.

= Does Eatzino take a commission? =

No. Eatzino charges a fixed monthly fee, with no commission on your orders.

== Changelog ==

= 1.3.1 =
* New: automatic updates from eatzino.com – new versions install by themselves.

= 1.3.0 =
* New: table booking. Shortcodes [eatzino_reservation] (booking form in the page) and [eatzino_reservation_button], block "Eatzino Table Booking", Elementor widget "Table Booking".
* New: the floating button can open table booking instead of ordering (Settings).
* Any link to #eatzino-reserve opens table booking.

= 1.2.0 =
* New: own "Eatzino" menu with an Overview page and a to-do list that ticks itself off.
* New: Elementor widgets (category "Eatzino – Restaurant"): Ordering, Food Menu, Ordering Widget, Opening Hours.
* New: links to #eatzino-order and the class eatzino-order open ordering (for theme buttons).
* Fix: themes could move or restyle the floating button – it now lives in its own Shadow DOM.
* The floating button avoids chat / "back to top" buttons and cookie banners.
* German text "Online bestellen" when the widget language is German.
* Saving the settings empties common page caches.

= 1.1.0 =
* New: menu list block and shortcode (menu as text, photos, prices, "+" opens the dish).
* New: opening hours block and shortcode with a live open/closed line in the restaurant's time zone.
* New: Google data (schema.org Restaurant) on pages with Eatzino content.
* New: cart count on the floating button, outline button style, `[eatzino_order_link]`.
* New: connection card in the settings (restaurant, address, open state, dish count, reload).
* Restaurant links in the new format (/de/city/restaurant/name) are accepted.
* The widget follows the website's language.
* German translation.

= 1.0.1 =
* Eatzino blue as the default colour.

= 1.0.0 =
* First release.
