← Blog
By Raman Halder··6 min read

An Engraved Cup Became a Cafe Membership System

Vivere Bay Cafe wanted to sell a yearly engraved cup. We built small membership plans instead: sold from the menu, paid at the counter, recognised by phone number.


Key takeaways: When a client asks for one special product, check whether it's really the first of several. A membership plan can be a menu item with a few extra fields, so it reuses the cart, bill and checkout the cafe already has. For a single cafe, a phone number works fine as the only identity. Copy the perks onto each membership when it's bought, so editing a plan later doesn't change what people already paid for. Two kinds of perk were enough to start.

The Request

Once the ordering side of Vivere Bay Cafe's proof of concept was working, the owner asked for something that isn't food. They wanted to sell a yearly cup. A guest pays once, the cafe engraves a cup with their name, and the cup stays at the cafe for whenever they come in. Brewery mug clubs work the same way.

We could have built exactly that: a cup product, a cup flag on the guest, a cup badge for staff. It would have been quicker. But the owner also said other ideas would probably follow, the kind of thing a free-biscuit card or a monthly discount pass would be, and each of those would have meant another special case and another round of development. So we built a small membership system, and the cup is the first plan in it. The owner can set up the next one from the admin console.

Like the rest of the proof of concept, memberships haven't been through a real service yet.

A Plan Is a Menu Item

There's no plans section, no second checkout and no subscription billing. A membership plan is a menu item with a validity period filled in. The owner puts it in any menu category, it shows on the guest's menu on the same kind of card as a croissant, and the guest adds it to their order like anything else. It goes on the table's bill, is taxed at the cafe's usual rate, and gets paid at the counter.

Most of the work was avoided by that one decision. The cart, the bill, staff confirmation and the dashboard already worked, and they barely needed to know memberships existed.

In the admin console, any item can be marked as a plan. That reveals a few more fields: how many days it's valid for, the discount, how many free items it includes and from which category, and a line saying what the cafe has to prepare, such as "Engraved cup, kept at the cafe". On the guest's menu the plan's card says "Valid 365 days" with its perks underneath, something like "10% off every bill · 12 free items from Bakery".

A Phone Number Is the Membership Card

Guests in this system don't have accounts, and memberships didn't change that. A membership belongs to a phone number. When a tab includes a plan, checkout asks for a name as well as the phone number, because the cafe needs something to engrave.

The membership starts when a server confirms the payment, not when the plan is ordered, and the validity runs from that moment. Someone who orders two gets two.

On later visits there are two ways in. The phone that bought the plan remembers the number and attaches it with the next order, without the guest doing anything. Anyone else can tap "Member? Enter your phone" and type it. If the number has no active membership the order goes through normally, so an old number saved on a phone never stops anyone ordering. The guest sees "Welcome back" with their plan, and the staff ticket shows "Member" with their name.

What a Member Gets

Each plan can have two kinds of perk: a percentage off the whole bill, and a number of free items over the life of the membership, either from one menu category or from anything.

The discount is automatic. Once a member is attached to the table's tab, the bill shows a "Member discount" line, and tax is worked out on the discounted amount.

Free items aren't automatic. A server marks a line as free from the table's tab, and can undo it. A member might want to pay for today's biscuit and save the free one for another visit, and that's easier for the server to ask than for a rule to guess. The free count goes down each time, and only single items can be made free, so three croissants on one line have to be split into singles first.

A few smaller rules came up while writing the spec, and the owner made the call on the one about renewing:

  • Perks start after the plan is paid for. The bill that includes the purchase doesn't get its own discount.
  • The discount never applies to a plan. Renewing a yearly cup doesn't come with 10% off the cup.
  • A phone can't buy a plan it already has. Checkout says "You already have Yearly Cup until 12 Oct 2027". Renewing is possible once the current one ends.
  • If two plans overlap, the bigger discount applies. They don't add up.

Editing a Plan Doesn't Change Old Memberships

When someone buys a plan, its name, discount, free items and fulfilment line are copied onto their membership. If the owner raises the discount next year, existing members keep what they bought and new members get the new terms. Without that copy, fixing a typo in the admin form would quietly change something guests had already paid for.

The Cup Itself

Software can't engrave a cup. What it can do is keep track. Each plan has its fulfilment line and each membership has a "prepared" flag. The owner's members page lists who bought which plan, when it runs out, and whether the cup has been handed over yet. Until it has, the staff view of that member shows the fulfilment line with "not yet handed over", so whoever serves them next knows to sort it out.

Keeping Numbers Private

Phone numbers and names are visible to staff only. Other guests at the table can see the bill, but not the member's name or number. Someone at another table can't claim a member discount without the member's actual number, and the membership records can't be read from the guest app at all.

What We Left Out

There's no online payment or auto-renewal, because there's no card on file. A membership simply ends, and renewing means buying it again at the counter. No points, no tiers, no referral codes, and memberships can't be transferred or shared across a family. We also didn't build a general rules engine for perks. Two kinds cover the cup and the ideas the owner mentioned, and a third kind can be added when there's a plan that needs it.

Before You Ask for a Loyalty Feature

If you run a cafe or restaurant and want something like this, these are the questions that shaped ours:

  1. What does a member pay, and for how long?
  2. What do they get, in a sentence a server can repeat?
  3. How will staff recognise a member without an app?
  4. Is there anything physical involved, and who keeps track of it?
  5. What happens at renewal, and can someone hold two at once?
  6. If you change the terms, what happens to people who already paid?

The rest of the system is in the post on pay-when-you-leave rules, and the database side is in the engineering post. If you're planning memberships or ordering for your own place, tell us what you have in mind.