=== TEG-MARKET ===
Contributors: theeldestgeek
Tags: farmers market, vendors, stalls, consignment, payouts, point of sale
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.19.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The back office of a farmers market inside WordPress: the vendors who rent a table or leave goods on consignment, the stalls, the trading days, what is for sale, what the till took and who the money belongs to.

== Description ==

A farmers market sells produce of its own, it rents tables to growers who trade under its umbrella, and it takes goods on consignment and pays the owner a share when they sell. At the end of the day the market owes people money and owes the state sales tax, so every sale has to say whose it was. TEG-MARKET is the set of books that keeps that straight.

What it does:

* **Vendors** - the people who trade here: name and business name, contact details and address, tax id, whether they rent a table or consign goods (or both), their commission rate and rent, how they are paid, and notes.
* **Stalls** - the tables and pitches the market rents: where they are, how big, the daily, weekly and season rate, whether there is power.
* **Market days** - a trading day with its opening and closing time, a status and a note about the weather. The day screen is the one the manager stands in front of: who is booked, which stalls are still free, the rent collected and the rent owing, what the till has taken so far, and a button to open the day and one to close it.
* **Bookings** - a vendor has a stall on a market day at a rate, booked, confirmed or canceled, paid or still to collect. Two people cannot be given the same stall on the same day: the second booking is refused and the screen says who already has it. Rent left unpaid comes off the vendor's next payout.
* **Items** - what is for sale: whose it is (the market's own, a stallholder's, or on consignment), the unit it is priced in (each, lb, bunch, dozen, pint), the price, the cost, whether it is taxable and in which tax class, and its category. Every item can carry pictures from the media library, and the first one is the thumbnail wherever the item is listed. A quick row adds a morning's produce without the long form.
* **The till** - ring up a sale from the item list or type a free line, a quantity in the item's own unit, a discount, the tender and the change, and print a receipt. The tax is worked out line by line from each line's tax class, never on the total, because raw food and prepared food are not taxed the same. Each line writes down the vendor, the ownership kind and the commission rate as they were at the moment of sale, so a payout run months later cannot change because somebody edited an item.
* **Payouts** - work a period out and the market tells you, vendor by vendor, what their goods sold for, the commission it kept, the rent they owe, anything held back and the net. Write the payouts down and every sale line on them is stamped as settled so nothing is ever paid twice; mark one paid and the rent on it is settled with it. Print or e-mail a statement that shows every line and what was taken and why.
* **Statements vendors can read** - every vendor has a long private link to their own statement: no password, no account, and it only ever shows that one vendor.
* **Reports** - what the till took day by day, sales by vendor with the commission earned, sales tax collected split by class and by taxed against not taxed, stall rent charged and collected, and consignment settled against outstanding. Each one on screen and as a CSV.
* **The market's own page** - what is for sale at the next market, who is trading, and when the market is open, on a page the plugin renders itself (no theme header or footer), or as the shortcodes `[teg-market-today]`, `[teg-market-vendors]` and `[teg-market-hours]`.
* **TEG Rover: local deliveries on the drivers' phones** - the site side is included, switched OFF until the market turns on "Rover (drivers / field staff)" under Setup > Device pairing (Deliveries appears then). TEG-MARKET > Deliveries keeps the orders to take out: the customer, the address, the items ("2 x honey"), the amount still to collect and the day. Put several in order into a delivery run for one driver and it reaches their phone as one multi-stop route; they can reorder the stops on the phone, and each stop is finished on its own with the customer's signature and a photo. A stop nobody answered goes back on the Deliveries list for another day. A single delivery can also go on the open board for whichever driver takes it first (two can never take the same one). A driver is a person with the Market Driver role; each phone pairs under Device pairing by QR code with its own revocable key, no passwords. GPS check-ins only while on shift, and a delivery finished without signal is sent when the signal returns. Money still owed is shown to the driver to collect at the door; what they collected is written on the delivery for you to put through the till (it is not yet taken as a payment by the phone). The TEG Rover app (0.2.2 or later) is distributed separately; the site side costs nothing per driver.
* **Settings** - the market's name, address and contact, the trading days and hours, the currency, the sales tax rate and tax classes, the default commission and the rent rates, the units and categories, the receipt footer, and the public page.
* **A sample market** - one click under Settings > Data loads a believable market: a dozen vendors, a row of stalls, trading days, about forty items with prices, a morning of sales and the payouts that settle them. Demo mode puts it all back every night on a public "try it" site.
* **Data packages** - export every table to a zip as a backup or to move a market to another site, import one back, or delete every record to go live.
* **Backups** - "Back up now" keeps a full copy of the market's records in a private folder on the server, with download, delete and restore (a copy of what was there is taken before every restore). A nightly backup can also copy itself off-site to an SFTP or FTP server, Amazon S3 / Wasabi, or Dropbox. Backups never hold settings, passwords or payment keys.
* **Pay by Zelle and incoming payments** - a booking that still owes rent carries a line telling the vendor where to send Zelle and which booking number to put in the memo (on the booking, the vendor's pay page and the payment receipts). Zelle payments read from the bank's alerts are matched to their booking and recorded by themselves when the match is certain; the rest wait under Incoming payments.
* **Help & Tutorials** - the full manual and the common questions inside WordPress, with instant search, and a "?" on every market screen that opens the help for that screen.
* **One-click setup** - after activating, a short setup fills in the business details, makes the public pages and their menu and the Market Staff role, and can load an invented market to try every screen (removed again at Finish).

== License ==

TEG-MARKET is licensed like the rest of the family: every install carries a free 30-day Pro trial that starts the first time the plugin runs and needs no internet connection. On day 31 adding and editing pause (everything stays readable) until a license is active: fetch a personal 30-day trial from the license panel (name and e-mail, no card) or enter a purchased code from theeldestgeek.com - annual or lifetime, Standard or Pro, single-site or 5-site agency pack. A code is bound to the name and e-mail on the order and verifies offline against a public key; paid codes are re-checked with the license server once a day and keep working when it cannot be reached.

== Installation ==

1. Plugins > Add New > Upload, choose teg-market_1.0.0.zip, install and activate.
2. The Market menu appears, the tables are created, the public "Farmers Market" page is added at /teg-market/, and the 30-day trial starts.
3. Open Market > Settings and put in the market's name, address, trading days, currency, tax rate, commission and rent.
4. The one-click setup opens by itself after activating; "Run setup again" on Settings > Data opens it later. It can load an invented market to look at first, removed again when you click Finish.
5. Website shortcodes: `[teg-market-today]`, `[teg-market-vendors]` and `[teg-market-hours]` (full list: Help Center > Shortcodes).

== Companion app ==

Run the market from a phone with the TEG Companion app. Under Market > Setup > Device pairing, pick a person, name the phone and press Add a phone: the page shows a QR code, a pairing code and a 9-digit code (good for 15 minutes, once). In the app choose Pair with a shop and scan or type one of them. The phone can then list vendors and stall bookings, book a stall (the website's own rule applies: a stall can be let to one vendor per day), confirm or cancel a booking, note it, take stall rent (nothing is e-mailed or texted), see payouts and the day's takings, and attach photos and signatures, which are kept in a private folder and never in the media library. Marking a payout paid, bank details and tax ids stay on the website. Revoke a phone on the same page, or by removing the person.

An administrator's phone also has a Reports tab: the till's sales this month against last month (the same figures as Market > Reports), and report cards to pick from - today so far, busiest times, sales tax, takings by method, discounts, voids and refunds, rent still owed, cash flow (rent due against approved payouts), tokens outstanding, stall occupancy, booked ahead, no-shows, vendors who rebook, regular vendors who have stopped coming (after 90 days by default; change it under Settings > Till, payouts and reports), dead stock and best-selling times by item. The same cards are on the desktop under Market > Reports cards, with a CSV per card, Print / PDF, goals and a monthly summary e-mail.

== Frequently Asked Questions ==

= How does the market know whose money a sale is? =

Every sale line carries the vendor and the ownership kind as they were at the moment of sale: the market's own goods, a stallholder's goods sold under the market's umbrella, or goods taken on consignment. Nothing that is edited afterwards can change what a past line says.

= Does it need the internet? =

No. The license is verified offline against a public key. A paid code is re-checked with the license server about once a day, and keeps working when the server cannot be reached.

= Will deleting the plugin take the books with it? =

No. Records are kept unless you switch that off under Settings > Data first.

= How do vendors pay their stall rent? =

Settings > Payments > "Payment methods you accept" is the list of what the market takes: Zelle, PayPal, Venmo, Credit card, Check and Cash, each with a tick box and one line of details (your Zelle e-mail or phone, PayPal.me link, Venmo @handle, "Checks payable to ..."). Card, check and cash start ticked; at least one always stays ticked.

Every booking has a "Ways to pay" tick list, all accepted methods ticked on a new booking; untick any this vendor should not use. The vendor's own page for the booking (the link shown on the booking) lists each offered method with its details while rent is owed, the card or PayPal button when that method is accepted and offered and the gateway is set up, and "Payments received" by date, method and amount. A method you stop accepting leaves new bookings but stays on the ones already made.

On the booking, "Record a payment" takes the amount, the method (the accepted ones first, then "Other"), a reference and a staff note that the vendor never sees, and records who took it and when. "E-mail the customer a receipt" is unticked until you tick it. Once the rent is covered the booking is ticked paid, as an online payment already did. The "rent collected" shortcut on the day board still ticks a booking paid without writing a payment down.

= Who does TEG Back Office payroll list? =

Your market's own people: Market Staff and managers (anyone who may open the back office), Market Drivers, and administrators. Vendors are never on payroll - they are paid their sales through Payouts. There is no time clock, so hours are typed on the payroll run.

== Changelog ==

= 1.19.3 =
* The website shortcodes are renamed: [market-today] is now [teg-market-today], [market-vendors] is [teg-market-vendors], [market-hours] is [teg-market-hours]. The old names no longer work.

= 1.19.2 =
* An import of vendors or items that stopped half-way no longer blocks Undo for ever, and two Undo clicks at once can no longer clash.

= 1.19.1 =
* "What's new" no longer opens by itself after an update. The dashboard has a button "What's new in <version>"; press it to read the notes.

= 1.19.0 =
* The TEG Companion and TEG Rover phone apps can show their screens in another language when your shop has the Pro edition and a language pack. This needs the next update of the apps; until then nothing changes.
* A payout or rent payment opened on the phone always shows exactly what your vendor gets, in the shop language.
* Help Center and menu refresh.

= 1.18.0 =
* New Language screen in Settings. Each staff member can choose their own language for the screens they work in, from their profile.
* The market now has a language of its own for everything customers and vendors receive: till receipts, vendor statements (printed or e-mailed), booking payment pages and receipts, gift coupons, the public market page and texts. What they get no longer depends on who happened to click the button.
* Language packs (Spanish first) arrive later and need the Pro edition. Until a pack is installed everything stays in English, exactly as before.
* The public market page and the Market Staff role are now created in the market's language when the plugin is first set up.

= 1.17.4 =
* The demo market is richer and more realistic: about three months of weekly market days plus last year's for comparison, sales spread through the morning in the right order, and payouts to vendors for every past market day.
* Payout screens and vendor statements no longer show "-$0.00" when nothing is owed.
* The activity log now shows plain words instead of internal codes.
* Item pictures show up straight away on the checkout till instead of staying blank until you scroll.
* Loading the sample data again on a demo site starts fresh with today's dates.

= 1.17.3 =
* New: Licenses & permits (Setup > Licenses & equipment) - keep your market permit, food permit, business license, liability insurance and your legal-for-trade scale's certification in one place, with reminders before they expire and a printable binder for inspectors. Scans are kept private, the register goes into your backups, and deleting the plugin keeps it unless you choose otherwise.

= 1.17.2 =
* TEG Companion reports can show older months too (this month, last month and up to 10 more; set how many in Companion).

= 1.17.1 =
* Payments: the currency symbol always matches the currency (a US shop never shows £).

= 1.17.0 =
* Dates now follow your region: US shops see 03/14/2026 and 2:30 pm, UK shops 14/03/2026 and 14:30, EU shops their country's own way - on every screen, print, e-mail and in TEG Companion and TEG Rover. WordPress's own date setting no longer leaks in. Leave the date format blank to follow the region, or type your own; documents already issued keep the dates they were issued with.
* TEG Companion now learns the shop's date format when it connects, so the phone writes and reads dates the same way the shop does.
* Settings > Money: the Date format hint now says that blank follows your region (it used to say WordPress's setting). The licence's "valid through" date is written your region's way.
* TEG Companion and TEG Rover keep working out of signal: a change made on the phone waits on the phone and reaches the market once, with the time it really happened; a resend never books anything twice.
* Device pairing works when only TEG Companion is switched on, and no longer asks which kind of phone when there is only one.
* Payments: a customer's card can be kept on file (through your own Square or Stripe) for charges you agree with them - off until you tick it.

= 1.16.1 =
* Companion: a stall booking now says "Rent paid: Yes" or "No" instead of true or false.
* Sample market: both "Add sample data" and "Reset to the sample market" (and Demo mode's nightly reset) now take some stall rent today - half a stall's rent in cash and another stall's by check - so the day close and TEG Companion's Today show money on a fresh demo. "Reset to the sample market" took no rent at all before.

= 1.16.0 =
* Backups: Settings > Data has "Back up now", a list of the backups kept on this server (download, delete, restore), and a nightly backup that can copy itself to an SFTP, FTP, Amazon S3 / Wasabi or Dropbox account. A restore keeps a copy of what was there first. Backups never hold settings, passwords or payment keys.
* Help: a new "Help & Tutorials" page under Tools - the full manual with instant search and the common questions - and a "?" on every market screen that opens the help for that screen.
* One-click setup: a new market opens a short setup after activating - business details, the public pages and their menu, the Market Staff role, and an invented market to try (removed again at Finish). "Run setup again" is on Settings > Data.
* Pay by Zelle: a booking that still owes rent shows a line telling the vendor where to send Zelle, with the booking number for the memo - on the booking, on the vendor's pay page and in the payment receipts. Set it up under Settings > Payments.
* Incoming payments: Zelle payments read from your bank alerts are matched to the booking they are for and recorded by themselves when the match is certain; the rest wait under Incoming payments for you to pick the booking.
* What's new: after an update, administrators see everything that changed since the version they last saw, once, on whichever screen they open first.

= 1.15.1 =
* "Rent still owing" is one figure everywhere: the dashboard, the Bookings list and the Companion follow-ups card all count rent for market days already over. Rent for today and the market days ahead is shown apart as "still to come in".
* A payout that comes to less than zero (more stall rent than sales) can no longer be marked Paid: the payout says the vendor owes the market and how to settle it.
* Reports > Sales tax collected lists each tax class once (older sales and new ones at the same rate are added together).
* Ticking rent paid on a booking for a market day still to come records today as the day it was paid, never a date in the future; editing a paid booking keeps its paid date.
* A stall can be let to only one vendor on a day, even when two people book it at the same moment; a day with a stall let twice from before says so. "Stalls booked" counts the stalls the layout shows.
* Sample market: every stallholder has a stall of their own, and no sample payout comes to less than zero.

= 1.15.0 =
* TEG Back Office payroll now lists your market's people: Market Staff, managers, Market Drivers and administrators. Vendors stay off payroll (they are paid through Payouts).
* Payments: bank transfer is recorded under one name (wire still works); new pay-by-QR codes (Venmo, Cash App, Zelle) under Settings > Payments, off until you switch them on; Companion report card dates follow your date format; Rover's Device pairing hides IP addresses; licence check knows TEG-MARKETER and the Back Office bank feed.

= 1.14.10 =
* Licence check knows the new TEG Total Auction Management (TAM) product.

= 1.14.9 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.

= 1.14.8 =
* The admin menu is grouped the same way as the other TEG shops: the phone pairing page is "Device pairing" (it was "Phones" / "Rover phones"), and Settings is the last row of Setup.

= 1.14.7 =
* The licence check and the updater now share one tested core: a slow licence server can no longer slow the shop down.

= 1.14.6 =
* Money in another currency is always written with its own symbol.
* Product names in the licence screen use the new spelling (TEG-DELI, TEG-FOODTRUCK, TEG-BUTCHER, TEG-BAKERY).

= 1.14.5 =
* Money in another currency is written with its own symbol on the TEG Rover cards.

= 1.14.4 =
* A delivery typed in by hand keeps the currency it was made in.

= 1.14.3 =
* Customer links (invoices, quotes, bookings and the like) only open with their exact key; a link with a blank or altered key opens nothing.

= 1.14.2 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.
* A delivery made from a sale shows the money still to collect, and the money collected, in that sale's currency.

= 1.14.1 =
* Totals and reports now count one currency at a time: after a region switch, money in the old currency is listed apart instead of being added in. The TEG Companion app shows every invoice in the currency it was issued in.

= 1.14.0 =
* Every vendor now has one Vendor notes box, on the desktop and in the Companion app: the general notes first, then the notes from their stall bookings and payouts, with who wrote each one and which came from Staff. On the desktop it is on the vendor's own screen (Vendors > a vendor), with "Add a note".
* A note added on a vendor from the Companion app now goes in that box, with who wrote it and when. It is no longer added to the end of the vendor's Notes field (notes already there stay where they are).
* A note added on a stall booking from the app still goes on the booking's note, and the box now shows who wrote it. An empty note from the app is refused.
* A payout's note for the statement shows in the box too, marked as one the vendor can see.
* Deleting the plugin with "keep the market's records" switched off now also removes the vendor notes.

= 1.13.1 =
* Report cards on the phone now open the matching page on the computer: the sales cards open Reports > "What the till took", sales tax opens the sales tax report, rent still owed opens Bookings showing only rent still owing, cash flow opens the stall rent report, tokens open Market > Tokens, the vendor cards open Vendors, no-shows and rebooking open Bookings, how full the market is opens Market days, and the stock cards open Items.
* Card names that fit a market: "Repeat customers" is now "Repeat vendors", "Owed to customers" is now "Tokens not yet back" (with "Tokens out" instead of "Gift cards"), follow-ups say "Stall rent overdue" instead of "Overdue unpaid invoices", cash flow says "Stall rent falling due" and "Vendor payouts due" instead of invoices and bills, and the booking cards talk about stalls and market days instead of appointments, visits and rooms.
* The follow-ups card no longer shows a "Quotes waiting" line, since a market has no quotes.
* Clearer date ranges on the cards: "October 1" instead of "October 1-1", and "Jan 5-10, 2031" instead of "Jan 5, 2031 to Jan 10, 2031".
* Deactivating the plugin now stops every copy of its scheduled jobs, and deleting it removes the report card settings in one step.

= 1.13.0 =
* New: report cards on the phone. An administrator's TEG Companion app has a Reports tab with cards you pick for each person, grouped in sections (everyday, customers, money, bookings, stock). Only "this month against last month" is on to begin with; tick the others you want.
* New: the market's own cards - today so far (till sales plus stall rent taken today), busiest times, sales tax, takings by payment method, discounts, voids and refunds, rent still owed for past market days, cash flow (rent coming in over the next 30 days against approved vendor payouts), tokens still outstanding, stall occupancy, stalls booked ahead, no-shows and cancellations, vendors who book again, regular vendors who have stopped coming, dead stock and the best-selling times for each item. Sales in another currency are kept apart and never added together.
* New: Market > Reports cards on the desktop shows the same cards. Compare with the last period, the same time last year or dates you choose, set a goal for a card, download any card as a CSV, or print it (or save it as a PDF).
* New: "Lost customers after N days" (Settings > Till, payouts and reports) sets when a regular vendor counts as having stopped coming. It is 90 days until you change it.
* New: an optional monthly summary e-mail. On the 1st of each month the cards you tick are e-mailed to the address you give, for the month that just ended. Nothing is sent until you save it once on the Reports cards page.
* Fixed: rent still owing now takes part payments off. A booking with some rent paid used to show its whole rate as owing on Reports > Stall rent (and its CSV), the dashboard, the market day screen and till header, the vendor screen, the bookings list and the vendor's own statement page. They now all show only what is really left to pay, the same amount the payout run already took off. Nothing was ever charged twice; if a vendor was asked for the full rate after paying part of it, check their payments by hand.
* Turning the plugin off now also stops the e-mails it had scheduled.
= 1.12.0 =
* New: TEG Rover, the drivers' phone app, is now included - switched off until you turn on "Rover (drivers / field staff)" on the Phones page. Once it is on, TEG-MARKET > Deliveries keeps the orders to take out (customer, address, items, money still to collect, the day). Put several deliveries in order into a run for one driver and it reaches their phone as one route with stops; each stop is finished with the customer's signature and a photo, and a stop nobody answered comes back to the Deliveries list for another day. Money collected at the door is written on the delivery for the office to put through the till. TEG Companion and TEG Rover phones now pair on the same Phones page, each by QR code with its own key; phones paired before keep working.
* New: errands. Send someone to fetch things for the market - stall supplies, signs and printing, bags, the bank or the post office - with a shopping list, an optional spending limit and how it is paid. On the phone they tick off each item and photograph the receipt; the office confirms what was spent, and money spent from their own pocket shows as "to reimburse" until you mark it paid.
* New: Import from CSV (TEG-MARKET > Import from CSV). Bring your existing vendors and items over from a spreadsheet or another program: match your columns to the market's fields, do a test run as often as you like to see exactly what would be added, changed or refused (nothing is saved), then import. Every import can be undone. A paused or unlicensed market cannot import; exports stay open as always.
* New: removable sample data (Settings > Data). Add a believable sample market next to your own records to try things out, then take it away again with one click - only the sample records are removed.
* The TEG Companion app support is brought up to date.

= 1.11.0 =
* New: E-mail test mode (Settings > E-mail test mode). Turn it on before going live and every e-mail the site sends - invoices, receipts, reminders, status notes, staff alerts - goes to one address you choose and to nobody else. The subject starts with [TEST to ...] so you can see who it was meant for; the message is exactly what the customer would get. Administrators can switch it from the TEG Companion app too (Settings > E-mail test mode), and a red notice shows on every admin page while it is on. Text messages are not e-mail and still go out.
* TEG Companion: shared Companion core 2.4.0.

= 1.10.3 =
* Square Terminal: on a bill that still owes money, staff can press "Send to Square Terminal" to take the card on the shop's paired Square Terminal; the payment is recorded once and a tip is noted, never billed. Pair the terminal under Settings > Payments.
* Card payments taken on a Clover or Elavon terminal can be recorded by hand (US shops, off until ticked in Settings > Payments). They count as card in the totals, and a whole card number typed into the note is refused.

= 1.10.2 =
* Payments now run on the TEG family's one shared payments engine: money that arrives for a document that no longer owes it is kept as unapplied money for the office to refund or move; a demo site never takes a payment; staff are alerted when a gateway payment is lost; a manual payment is capped at what is still owed; and each bill is locked while a payment is recorded, so two payments at the same moment cannot both land on it.
* Region: the region is inferred only from a currency the shop typed, never from the factory default currency it shipped with.

= 1.10.1 =
* Demo sites never take a real payment: on a demo (Demo mode, or the TEG SHOPS demo) the pay area says This is a demo - no payment is taken, every pay link and webhook is refused and nothing is recorded as paid.

= 1.10.0 =
* A whole-sale discount is split over the sale lines to the cent (new sale_items.discount).
* Sale and payout numbers are locked unique (checked on activation and every upgrade; repeats are listed for the administrator).
* Payments: a manual payment cannot exceed what the document still owes; staff are alerted when a gateway payment arrives for a document that is gone.
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed. DB 1.7.3.

= 1.9.0 =
* TEG Companion: the store chooses what the phone's home screen shows (owner 2026-10-28: too cluttered). Phones (TEG Companion) has a new section, **Companion home screen defaults**: one checkbox per button, card, list and bottom-bar tab the app's home has at this shop (Buttons / Cards / Lists / Bottom bar) and "Reset to starter set". Ticked = shown by default; each person can still change it on their own phone. app/hello's module rows carry `home` {v: 1, items: [{id, label, group, on}]} - only what that person can see. Never saved = the starter set: every button the app has here on (four or fewer: New <job>, New <customer> and the shop's own extras), every list and tab on. Shared Companion core 2.1.0 (generated; tools/test-companion-home.php).

= 1.8.3 =
* Licences for the new shops: TEG-EVENTCENTER, TEG-LASTDJ and TEG-FARM are known to the licence code, in lockstep with the rest of the family. A bundle licence that includes them is read correctly and names them on the License screen; nothing else changes.

= 1.8.2 =
* Get my license: Settings > License - enter the order number and e-mail to install your license; Check license; Release this website.

= 1.8.1 =
* Sample market: every item now has a real photograph (43 farmers-market photos from Unsplash, credited in sample-data/photos/SOURCES.md) in place of the ten cartoon drawings. The photos ship inside the plugin and never touch the media library.

= 1.8.0 =
* Companion phone app: pair TEG Companion from Setup > Phones (QR or code) to work the market from your phone - vendors, stall bookings, rent and payouts.

= 1.7.1 =
* Region: choose United States, United Kingdom or European Union (and the EU country) under Settings > Region. Currency, number and date formats, the tax label and rate, address wording and spelling follow it. Settings you typed yourself are kept; "Apply the region's defaults" resets them on purpose.
* Receipts, bookings and payout statements keep the region, currency and tax they were issued with. Changing the region later never changes a document already issued.
* Payment methods follow the region: US card, cash, check, Zelle, Venmo, PayPal, ACH and Cash App / Apple Pay / Google Pay; UK card, cash, bank transfer, cheque and PayPal; EU card, cash, SEPA transfer and PayPal. A payment already recorded with a method the region no longer offers still shows, exports and can be refunded.
* Refunds from the booking screen: each payment has its own refund form, never more than was paid. A double click or two people refunding at once refunds only once, and a card refund the gateway has not confirmed yet shows as pending until it does.
* Online payments (Square, PayPal, Stripe) are charged in the booking's own currency. A payment that arrives in another currency is not recorded and shows an alert on the admin screens. Stripe now needs its webhook signing secret before it can be switched on.
* Gateway keys kept in wp-config.php (TMK_SQUARE_TOKEN, TMK_PAYPAL_SECRET, TMK_STRIPE_SECRET_KEY) are copied into Settings > Payments on update. A notice tells you when you can remove them from wp-config.php. Saved secrets are never shown again on the settings screen.
* Totals are kept per currency: day totals, the dashboard, reports, payout runs and each vendor's summary no longer add dollars to pounds or euros.
* Exports (sales, bookings, items, vendors, payouts, reports, scrip, payments) always work, licensed or not. The settings export never includes payment keys.
* Fixed: stock quantities typed in an EU format were read a thousand times too large.

= 1.5.0 =
* Admin menu grouped by job with bold headings.
* Pairing/2FA QR codes support longer codes.

= 1.4.1 =
* The license server moved to wildwebwizards.com (licenses, trials and site checks now go to https://wildwebwizards.com/cgi-bin/postlicense.py). Nothing changes for your license.

= 1.4.0 =
* "What's new": after an update, a short card on the TEG-MARKET screens lists what changed - shown once per person, then a "What's new" button on the dashboard reopens the same notes in a pop-up window. In demo mode, where every visitor shares one login, the card is remembered per browser instead, so each visitor sees it once.

= 1.3.2 =
* Licensing: entering a code now checks it with the license server right away and says how it went. A paid code that has not checked in yet is shown as AWAITING VALIDATION (not REVOKED), and when the server cannot be reached the License tab shows the actual connection error. While the server is unreachable the plugin asks it at most once every ten minutes instead of on every page. An offline install can define TMK_NO_LICENSE_NETWORK in wp-config.php.

= 1.3.1 =
* American English throughout: every screen, e-mail, printout and help text now uses American spelling (labor, color, license, canceled, catalog, authorize and the rest). Nothing you have saved changes - settings, records and translations carry over as they are.

= 1.3.0 =
* Licenses are now tied to your site. When you enter a paid code it checks in with the license server once and binds to this site's address; after that it keeps working normally even if the server is unreachable. Your data is never locked away - everything stays readable at all times.
* A brand-new install (or a copy placed on a different web address) that has a paid code but has never checked in stays in read-only mode for the paid features until it can reach the license server once. The License panel says so and "Re-check with license server" completes it. Sites that were already licensed and running are carried over automatically on update - nothing to do.
* The trial is unchanged: it still works fully offline for 30 days from the first run.
* The value features now pause together when a license is not active: taking a customer card payment (Square, PayPal, Stripe) and the business/CSV exports (sales, bookings, items, vendors, payouts, reports, scrip). Reading your records and exporting your full data package for portability are always allowed, and a payment already in progress is never interrupted.
* The License panel shows this site's bound address, whether it is validated, and when a code is in use on more sites than it was sold for.

= 1.2.0 =
* Settings > Payments has a new "Payment methods you accept" list: Zelle, PayPal, Venmo, Credit card, Check and Cash, each with a tick box and one line of details. Card, check and cash start ticked, so nothing a vendor sees changes until you tick more. At least one method always stays ticked.
* Every booking has a "Ways to pay" tick list; the vendor's page for the booking shows each offered method with its details while rent is owed. Stop accepting a method and it leaves new bookings, while bookings already made keep it.
* The online card button (Square or Stripe) now shows only when Credit card is accepted and offered, and the PayPal button only when PayPal is, as well as the gateway being switched on.
* A booking can now take a payment by hand: "Record a payment" with the method, a reference, a staff note and an optional receipt e-mail (unticked until you tick it). Every payment records who took it and when; the booking screen shows both with the note, the vendor's page lists "Payments received" without it.
* Online PayPal payments are now recorded as PayPal rather than as a card payment.
* Fixed: on a new site, every stall booking after the first was silently not saved while the screen said "Stall booked." Each booking now gets its own link key when it is made.

= 1.1.2 =
* A license that has been revoked (after a refund, for example) no longer receives updates, lifetime licenses included. If the license server cannot be reached, updates carry on as before.
* CSV imports and exports no longer write a deprecation warning to the debug log on PHP 8.4.

= 1.1.1 =
* Updates now arrive through Dashboard > Updates like any other plugin, instead of downloading a zip and replacing the folder by hand. The update check sits on the Data tab.
* A license buys every version published while it was valid: lifetime and current licenses install any update, and an expired license can still install anything released on or before its expiry date.
* Fixed card payments, market tokens and the two-factor QR code failing to load with a "class not found" error.
* Ready for PHP 8.4 (the version in Debian 13): no more deprecation notices in debug.log from the card payment code.
* Translations now load at the point WordPress 6.7 expects, so a site with debugging on no longer logs a 'translation loaded too early' notice on every page.
* The license screen now recognizes every product in the family, so a bundle license names the right shops.

= 1.1.0 =
* SNAP/EBT and matching-grant tokens: sold at the booth, redeemed by vendors, and settled on the same payout as everything else, so there is one reconciliation instead of two.
* Card payments for stall rent through Square, PayPal or Stripe, from a plain payment page that works on a phone.
* Vendor paperwork: public liability and trading permit expiry dates, and a panel for them on the dashboard. Nothing is blocked automatically.
* Two-factor sign-in with a QR code for Google Authenticator or any other authenticator app, backup codes, a lockout after repeated failures and an admin reset for a lost phone. A setting says who must use it.
* The market has its own artwork instead of borrowing the repair shop's.

= 1.0.0 =
* Vendors, stalls, market days, bookings, items, the till, payouts and reports.
* The day screen: who is booked, which stalls are free, the day's takings, open and close.
* Double bookings of a stall on a day are refused, in plain words.
* Pictures on items from the media library, with the first as the thumbnail everywhere.
* Tax worked out per line from the line's tax class, and a total that always equals the sum of its lines.
* Payout runs that stamp every settled line, statements to print or e-mail, and a private statement link for each vendor.
* Reports for the owner and the accountant, on screen and as CSV.
* Settings for the market, money and tax, trading terms, the till, payouts, reports, the public page and the data tools.
* The admin shell: menu, dashboard tiles, capability helpers and the license gate.
* The license client with the baked-in 30-day Pro trial.
* The public market page and the three shortcodes.
* The sample market and demo mode.
