🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Weekly Meal Pre-Orders Setup Guide

Updated 12 min read Gravity Forms Integrations A–Z
On this page
  1. What you need
  2. How it differs from our other add-ons and from Gravity Forms
  3. Install and activate
  4. Settings
  5. Meals
  6. Ordering window
  7. Kitchen report
  8. Weekly menus
  9. Copy last week
  10. Add the order field to your form
  11. What the orderer sees
  12. Cut-offs are checked on the server
  13. Changes and cancellations through the signed link
  14. Payments
  15. The kitchen report
  16. Printable labels per class
  17. CSV export
  18. Notifications and merge tags
  19. Dietary information
  20. Privacy and security
  21. Troubleshooting

The Gravity Forms Weekly Meal Pre-Orders add-on takes meal orders a week ahead for a school, nursery, holiday camp or workplace canteen. You set a menu for each service day with dietary tags, optional prices and an optional daily limit per meal. Parents or staff pick a week, add each person with their class or group, and choose a meal for every day. Each day closes at its own cut-off time, which the server checks on every order and every change. The kitchen gets exact counts per meal and per class, the dietary notes, printable labels per class and a CSV. This guide covers installing the add-on, the settings, the weekly menus, the order field, cut-offs, changes and cancellations, payments, the kitchen report, labels, CSV and e-mails.

What you need

You need Gravity Forms 2.9 or newer and WordPress 6.5 or newer on PHP 7.4 or newer. The add-on runs entirely inside your WordPress site: menus and meal lines are stored in two small tables of its own, orders are normal Gravity Forms entries, and the labels PDF is drawn on your own server. Apart from checking gravityextra.com for your licence and plugin updates, the add-on makes no outside connection.

Before you start, decide three things: the classes or groups you cook for (for example Class 1A, Class 2A and Staff), the days you serve, and how early orders must be in. The defaults are Monday to Friday and a cut-off of 10:00 on the working day before each meal.

How it differs from our other add-ons and from Gravity Forms

GravityExtra already has two add-ons that touch food and choices, and it helps to know which one you need. Our QR Table Ordering & Kitchen Display add-on takes orders at a table, for right now: a guest scans a code, orders, and the kitchen board shows the order a moment later. It has no dates, no weekly menus and no cut-off times. Our Inventory & Submission Limits add-on caps how many times a choice can be picked across all entries, but it has no idea of a menu per day, a person per order or a kitchen report.

Weekly Meal Pre-Orders is built for the planned meal: a menu for every service day of a week, one meal per day for each person on the order, a cut-off per day checked on the server, and a production report that tells the kitchen exactly how many of each meal to cook for each class. Gravity Forms itself has no dated menus, no per-day cut-offs and no kitchen counts; you would have to build and check them by hand.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Meal Pre-Orders, enter your GravityExtra licence key and press Activate License.
  • The settings page now shows the meal, ordering window and kitchen report settings, and a new menu item, Forms → Meal Pre-Orders, holds the kitchen report and the weekly menus.

Without an active licence the menu page only shows a note with a link to the licence settings, the order field tells visitors that pre-ordering is not available, orders are refused, and the edit links, the kitchen page, the labels and the CSV are switched off. Nothing is deleted: activate the licence again and everything is back.

Settings

All settings are in Forms → Settings → Meal Pre-Orders.

Meals

  • Kitchen or school name: shown on the edit page, the kitchen report and the labels. Empty means the site title.
  • Classes or groups: one per line. Every person on an order belongs to one of them, and the kitchen report and the labels are grouped by them in this order. Add a group such as Staff or Visitors for adults.
  • Dietary tags: separated by commas, for example Vegetarian, Vegan, Gluten-free, Halal, Dairy-free, Contains nuts. You tick them on each meal; they are shown to orderers and printed on the labels.
  • Service days: the weekdays you serve. They are also the working days used for the cut-off.
  • Note under the order: optional text shown under the order field and on the edit page, for example how to tell the office about an allergy.

Ordering window

  • Cut-off: working days before the meal: 0 means the same day; 1 means the working day before. With 1 and 10:00, Monday’s meals close on the Friday before at 10:00, because Saturday and Sunday are not service days.
  • Cut-off time: a 24-hour time such as 10:00, in your site’s time zone (Settings → General). The add-on works out every cut-off in that time zone, including the days the clocks change.
  • Weeks open for ordering: how many weeks ahead orderers can choose, when a menu exists for the week.
  • People per order: the most people one order can hold, for example a family with several children.

Kitchen report

Roles that may see the kitchen report: tick the roles of your kitchen staff, for example Editor or a custom Kitchen role. Users who can view Gravity Forms entries can always see it. Kitchen staff open a clean, printable report from the toolbar link Kitchen report after logging in, without any access to your forms or entries.

Weekly menus

Open Forms → Meal Pre-Orders → Weekly menus. The page opens on next week; use Previous week and Next week to move. Each service day has its own box with the date and its cut-off, for example “Orders close Fri Nov 6, 10:00 am”.

The weekly menu editor: Monday to Wednesday of the week of November 9 with meals such as Roast chicken with vegetables, Vegetable pasta bake and Lentil curry with rice, dietary tag chips, prices, a daily limit of 3 and the cut-off of each day

For every meal enter:

  • Meal: the name orderers see, for example Roast chicken with vegetables.
  • Dietary tags: tick the tags that apply. They appear next to the meal in the order field, on the kitchen report and on the labels.
  • Price: optional. Leave it empty for free meals. Prices are added to the Gravity Forms order total.
  • Daily limit: optional. When the limit is reached, the meal shows as sold out for that day and the server refuses more orders for it. The Ordered column shows how many are taken so far.

Press + Add a meal for more rows; empty rows are ignored when you save. Tick No service this day for a holiday or a trip: the day shows “No service” in the order field. Press Save menu when you are done. A week only appears in the order field once it has a saved menu with at least one meal.

Copy last week

Most kitchens repeat a menu cycle. On a week without a menu, press Copy last week’s menu: every day is copied with its meals, tags, prices and limits, ready for you to adjust. If the week already has a menu you are asked before it is replaced. Orders already placed keep the names and prices they were placed with.

Add the order field to your form

Create a form, or open your existing order form, and add the Weekly meal order field from the Advanced Fields group. Add the fields you need around it, typically the orderer’s name and e-mail. You do not need product or total fields: the meal field shows its own total and adds the meals to the Gravity Forms order for you. Embed the form on a page as usual.

In Form Settings → Meal Pre-Orders you can choose:

  • Orders without an online payment: “pay later” marks priced orders as to be paid to the office, and they count in the kitchen report; “no payment label” is for free meals or payment handled elsewhere.
  • Registration form, name field ID and class or group field ID: optional. If your families register their children in another Gravity Forms form, logged-in parents see their registered children already on the order, with a quick + Add button for anyone they removed.

What the orderer sees

The field shows the weeks that have a menu, from this week up to the number of weeks you opened. The orderer picks a week, fills in each person’s name and class or group and an optional dietary note, and chooses a meal for every day from a list, or No meal. The dietary tags of the chosen meal appear under it, and the total for the week and the number of meals update as they choose.

The weekly lunch order form: the parent name and e-mail, the week of November 9, two children with their class and a dietary note, a meal chosen for each day with its dietary tags, one day with no meal, and the total for the week

Meals with a daily limit show how many are left when few remain, and a sold-out meal cannot be chosen. Two children on the same order choosing the last two places are counted together. Days past their cut-off are shown with “Closed on …” and cannot be chosen; days without service show “No service”.

Cut-offs are checked on the server

What the browser shows is only half of the story. On every order the server reads the menu again and checks that each chosen day is still open at that moment, that every meal is on that day’s menu, that each class or group is one of yours and that no daily limit is exceeded. A submission that adds a meal to a closed day, for example a form left open overnight or a hand-made request, is refused with a clear message, before Gravity Forms saves an entry and before any payment add-on runs. Prices always come from the menu, never from the browser.

The add-on works out the time with the site clock in your WordPress time zone. Sites that need a different clock, for example for a test copy, can use the gfmealorders_now filter.

Every order gets a private edit link, which you send with the {gemo_edit_url} merge tag. The link is signed with a secret key that only your site knows and is tied to that one entry; a changed or made-up link shows “This link is not valid”. The edit page is never cached or indexed and sends no referrer.

On the edit page the orderer sees the order with the same choices as the form. Days that are still open can be changed; days past their cut-off are read-only, and a person with a meal on a closed day keeps their name and class. Save changes goes through exactly the same server checks as a new order, so a forged change to a closed day is refused. Cancel open days removes the meals of every day that is still open and keeps the closed days, which the kitchen is already preparing. Every change is added to the entry as a note, the order total is updated, and the Meal order changed or cancelled notification event lets you send a new summary.

Payments

The add-on has no payment code of its own and never sees card details. Meal prices are added to the Gravity Forms order, so the form total includes them. To take payment online, add a feed of a Gravity Forms payment add-on you already use to the form, with the form total as the amount. The add-on reads the payment status Gravity Forms stores on the entry:

  • Paid or authorised: the meals count in the kitchen report and are marked paid in the CSV.
  • Processing or pending: the meals keep their places under the daily limits but stay out of the kitchen counts until the payment add-on marks them paid. The report shows how many meals are waiting.
  • Failed, cancelled or refunded: the meals are left out of the counts and free their places.
  • No online payment: priced orders are marked pay later and count in the report, unless you chose “no payment label”.

If a paid order is changed and its total changes, any difference is handled by your office; the edit page says so.

The kitchen report

Open Forms → Meal Pre-Orders → Kitchen report, or the toolbar link Kitchen report. The report opens on today, or the next service day, and the arrows or the date picker move between days.

The kitchen report for Monday, November 9: a card per meal with its count and dietary tags, a class by meal grid with totals, the dietary notes and the Print labels and Download CSV buttons
  • A card for every meal with its count and dietary tags, the most ordered first.
  • A class or group by meal grid with totals per class and per meal, so each class’s trolley can be filled at a glance.
  • The dietary notes of the day: the person, class, meal and note.
  • Print labels (PDF) and Download CSV buttons.

The counts include every meal of an order that is paid, authorised, pay later or free, and leave out orders waiting for an online payment or whose payment failed. The report is calculated from the stored meals at the moment you open it, so it always matches the orders.

Printable labels per class

Print labels (PDF) creates an A4 document with one class or group per page and 21 labels per page (3 by 7). Each label shows the name, class, day, meal, dietary tags and the person’s dietary note. Large classes continue on the next page. Print on plain paper and cut, or on matching label sheets, and stick a label on each lunch box or tray.

A page of printable meal labels for Class 2A: the school name and the day in the header, then one label per pupil with the name, class, day, meal, dietary tags and a dietary note

The PDF is drawn on your server with the bundled TCPDF library; no images or outside services are used.

CSV export

Download CSV gives every meal of the day with the day, class or group, name, meal, dietary tags, dietary note, price, payment state, whether it counts in the report, and the entry ID. Cells that a spreadsheet could run as a formula are written as plain text.

Notifications and merge tags

  • {gemo_summary}: the order as a table per person and day, with the total when meals are priced. Use it in the confirmation e-mail to the orderer.
  • {gemo_edit_url}: the private edit link.
  • {gemo_total}: the order total.
  • The field’s own merge tag shows the same summary.

A typical setup is a “Weekly summary” notification to the orderer’s e-mail on form submission, and a second notification on the Meal order changed or cancelled event with the same merge tags.

Dietary information

Dietary tags and notes help orderers choose and help the kitchen prepare, but they are only as accurate as the menus you enter and the information orderers give. Allergen information, ingredient checks and safe preparation remain the responsibility of the meal provider. Use the note under the order to tell families how to report an allergy.

Privacy and security

  • Orders are Gravity Forms entries; the meal lines and menus are stored in your own database. Uninstalling the add-on removes its options and its two tables and keeps your forms and entries.
  • The edit links are signed and tied to one entry. The kitchen report, the labels and the CSV need a login with an allowed role and a fresh security token.
  • The server checks the menu, cut-offs, classes and daily limits on every order and change; the browser cannot change prices.
  • No outside service is used; the add-on only contacts gravityextra.com for licence and update checks.

Troubleshooting

  • The field says there is no menu open: save a menu for this week or a later week within the “weeks open” setting, with at least one meal on a day that is still open.
  • A day is closed earlier than expected: check the cut-off settings and your site’s time zone in Settings → General.
  • Kitchen staff see “not allowed”: tick their role in the kitchen report setting, and make sure they are logged in.
  • Numbers on the report look low: meals of orders waiting for an online payment are left out until they are paid; the report shows how many are waiting.
  • The registered children do not appear: check the registration form and field IDs in the form settings, and that the parent is logged in with the account that submitted the registration.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr