Flower shop sales associate - single-file bouquet cost & pricing calculator - quote at the counter in 30 seconds: tap stems from a local flower library, add packaging supplies by the piece, fold labor in by the minute; get a cost breakdown plus two suggested prices (floor margin and standard margin), with wholesale prices never leaving the browser and a customer-safe printout
You are a coding agent. Build a single-file HTML
"bouquet cost & pricing calculator" for the
counter staff of a flower shop: with the
customer standing there, produce a grounded
price in 30 seconds. Runs locally, offline, no
external dependencies, no libraries.
The scene (design for this; no POS, no
inventory system): at the counter, a customer
names a budget or wants something custom, and
the associate must decide on the spot - can
this budget work, what does the build cost,
what do I quote. Today that's mental math plus
vibes; supplies and labor fall out of the
calculation on busy days and quotes wobble.
Flower library (the core):
- Ships with sample entries for common cut
flowers and greenery (name / per-stem cost /
unit), fully editable - add, edit, delete
- Entries persist in localStorage across
sessions; include "export library" and
"import library" buttons (plain-text JSON,
copy away to back up)
- Stems are tapped in: pick a variety, adjust
count with +/-. One variety may carry
multiple size classes (e.g. roses by stem
length)
Cost structure (four segments, each shown):
- Flowers subtotal: sum of per-stem cost x
count, displayed both raw and inflated by
the [wastage factor] (stems get tossed;
costing runs on the inflated figure)
- Packaging supplies: by the piece - wrap /
ribbon / hydration packs / foam / card -
picked from a supply list with editable
prices
- Labor: minutes x [hourly rate], one dial for
minutes (quick presets: 5 / 10 / 20)
- Delivery: one fixed field, zero allowed
Pricing output (live refresh):
- Total cost plus the per-segment breakdown
table
- Two suggested prices computed from the
[floor margin] and [standard margin], each
with its price and its profit figure
- One warning line: any segment left empty or
zero glows amber with "not counted" - a
forgotten segment must never read as free
Settings (fill once, parked in the footer):
- Wastage factor, floor margin, standard
margin, hourly rate - four numbers fixed
shop-wide; changing any of them demands a
confirmation step
Hard constraints:
- Pure front-end, zero network calls;
wholesale prices are the shop's most
sensitive data - no upload, no cloud sync,
no accounts
- Print-friendly: the breakdown prints on an
A5 slip in a customer version that hides the
cost column and shows the build (stems of
what, filler, wrap, delivery) at the quoted
price
- Ship with sample flowers, supplies, and one
pre-computed sample bouquet so the tool
explains itself on open
You will not:
- No pairing suggestions, no "smart color
matching" - this tool computes money;
pairing flowers is the florist's craft
- No members, points, or discount management
- No cloud history of quotes - beyond the
flower library nothing persists
- No free-spinning sliders on the four
settings - a calculator whose rates drift
daily calculates nothing
Why it is written this way
"30 seconds to a quote" is the tool's first constraint, and every interaction defers to it: the flower library ships pre-filled, stems enter by tap, labor lands via minute presets. The custom-bouquette window is brutally short - every silent second after the customer names a budget leaks goodwill. Veterans who mentally price fast don't need this tool; the people who need it are new hires and whoever minds the shop alone on a slow Tuesday, exactly the people most likely to drop supplies from the math mid-rush. The tool's job is not beating human arithmetic - it is closing the "forgot to count" error that happens on a schedule.
Inflating flower cost by the [wastage factor] before it enters the math is what separates florist costing from ordinary retail. Cut flowers arrive with built-in shrink and end their lives in markdowns - cost them at net purchase price and the book margin reads rich while the year ends flat. The shop owns the factor (which is why it lives in settings, not in code); the tool's only job is turning the policy into arithmetic.
Two suggested prices (floor and standard margin) map to two real moments: everyday quotes run on standard; rush season, hard-capped budgets, and small bouquets built from leftover stems run on floor - which answers "what's the least I can take without losing money." A single-tier tool goes mute exactly when the counter is slammed, and the associate slides right back to guessing.
The four rate numbers sit in the footer, demand confirmation to change, and get no sliders, because a calculator's whole authority is a stable basis: nudge the margin daily and today's quotes stop comparing with yesterday's - at which point "the system computed it" stops persuading anyone. The customer-safe printout matters just as much: the slip a customer receives shows the build (so many stems of what, which wrap, delivery included); wholesale prices are the shop's hole card, and a handout must never carry it out the door.
Variables
| Variable | Description |
|---|---|
| Wastage factor | The multiplier on stem cost - set from the shop's actual toss rate (monthly receiving-loss data is a good start), fixed in settings, reviewed quarterly |
| Floor & standard margins | The two price tiers' rates - floor is "the least without losing," standard is the everyday quote; the gap depends on your rent and labor structure, and a too-narrow gap makes the two tiers pointless |
| Hourly rate | The per-minute conversion - not payroll hourly wage but "what one shop-hour is worth" (rent folded in); the owner fixes it and everyone quotes from the same number |