=== GetEat – Online Ordering Button for Restaurants ===
Contributors: geteat
Tags: restaurant, online ordering, click and collect, qr code menu, food ordering
Requires at least: 6.1
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

"Order online" button, floating button and QR code for your restaurant website. Free online ordering with GetEat, no commission.

== Description ==

**GetEat** is a free online ordering solution for restaurants: click & collect, QR code ordering at the table, online payment with Stripe or SumUp, or payment at the counter. No subscription and no commission on your sales.

This plugin connects your WordPress website to your GetEat ordering page:

* **"Order online" button**: a block and a shortcode, in your colors, wherever you want it.
* **Floating button**: an order button in the corner of every page, in one click.
* **QR code**: a QR code to your ordering page, drawn directly in the browser, ready for an "Order from your phone" section.
* **Settings page**: paste the address of your GetEat page, choose the text and the color, see a live preview.

Your customers order on your GetEat page; orders, payments and your menu stay managed in your GetEat space.

= A free alternative to GloriaFood =

GloriaFood closes on April 30, 2027. If your site used the GloriaFood ordering button, GetEat is a free replacement, without commission: create your page, import your menu from a photo, then replace the old button with this plugin.

= Shortcodes =

* `[geteat_button]` – the order button, with the settings of Settings › GetEat.
* `[geteat_button text="Order now" color="#1f7a3a" size="large" align="center"]` – with options. French aliases: `[geteat_bouton texte="Commander" couleur="#1f7a3a" taille="grand" align="centre"]`.
* `[geteat_qrcode size="200" caption="Scan to order"]` – the QR code (`taille`, `legende` in French).

= Developers =

The filter `geteat_show_floating_button` lets you hide the floating button on some pages:

`add_filter( 'geteat_show_floating_button', function ( $show ) { return ! is_page( 'contact' ); } );`

== External services ==

This plugin links to the GetEat ordering page of your restaurant (https://*.geteat.fr), operated by GetEat (https://geteat.fr).

* When an administrator saves a new page address in Settings › GetEat, the plugin sends one HTTP request to that address to check that the page exists. No personal data is sent.
* The buttons and the QR code are plain links: your visitors only connect to GetEat when they click or scan them.
* QR codes are generated in the browser by the bundled QRCode.js library (MIT); no external QR code service is used.

GetEat terms of use: https://geteat.fr/cgu – Terms of sale: https://geteat.fr/cgv

== Installation ==

1. Install and activate the plugin.
2. Create your free page on https://geteat.fr if you do not have one yet.
3. In **Settings › GetEat**, paste the address of your page (for example `https://your-restaurant.geteat.fr`).
4. Add the "GetEat order button" block, or the `[geteat_button]` shortcode, or enable the floating button.

== Frequently Asked Questions ==

= Is GetEat really free? =

Yes: no subscription and no commission. Only the fees of Stripe or SumUp apply if you accept online payment.

= Does the plugin take orders inside WordPress? =

No. The button opens your GetEat ordering page, where your customers order and pay. This keeps payment and order tracking reliable, with no WooCommerce or extra setup.

= Does it slow down my site? =

No. The stylesheet is tiny and only loaded on pages that show a button or a QR code (or everywhere if you enable the floating button). The QR code script is only loaded on pages with a QR code.

= Can I use it with Elementor, Divi or another page builder? =

Yes: use the `[geteat_button]` shortcode in a shortcode or text module.

== Screenshots ==

1. Settings page with live preview.
2. The "GetEat order button" block in the editor.
3. Floating button and QR code on a restaurant website.

== Changelog ==

= 1.0.1 =
* Security hardening: every input is sanitized and every output escaped (late escaping with wp_kses for the floating button).
* Removed the redirect to the settings page after activation.

= 1.0.0 =
* First version: order button (block and shortcode), floating button, QR code, settings page, French translation.
