The Pizza Hut Scenario
A returning Pizza Hut vendor signs in, reviews their current Fizook offers, and publishes a new auction-ready meal for diners to bid on.
Process overview
Pizza Hut is the first restaurant-specific vendor wired into the prototype. The login page has a hard-coded credential pair that routes them to a Pizza-Hut-flavoured offer builder, with their existing menu pre-loaded so they can see, edit, pause, or delete any offer they already have running.
Flow shown to the vendor
Each step below corresponds to one stop on the flow above. Follow them in order to reproduce the full walkthrough.
Steps to add a Pizza Hut offer
-
Open the vendor login page
From the consumer landing page index.html, click the highlighted ribbon "Want diners coming to YOU?" or the audience picker card "I run a restaurant." Either one routes the vendor to fizook-vendor-login.html.
-
Sign in with the Pizza Hut credentials
On the vendor login card, type the username and password listed below into the "Email or username" and "Password" fields, then click Sign in as vendor. A small piece of JavaScript on the login page checks the inputs and, on a match, navigates to the Pizza Hut offer builder.
Pizza Hut vendor credentials
These bypass the form’s default action so the vendor lands on their own page instead of the generic offer builder.
Usernamepizza Passwordhut -
Land on the Pizza Hut offer builder
The vendor arrives on fizook-vendor-pizza-hut.html. The top bar shows a Pizza Hut badge next to the FIZOOK AUCTIONS brand, the hero greets the vendor by name, and the form’s Restaurant Info section is already filled in with the Salt Lake City location, phone number, email, manager, and logo. The Meal Details section is pre-loaded with the Large 1-Topping Pizza as a starting point.
-
Review existing offers
Open the "Pizza Hut’s existing Fizook offers" panel at the bottom of the page to confirm what’s already running: Large 1-Topping Pizza, P’Zone Combo, Personal Pan Pizza Combo, 8-piece Bone-In Wings, and the Big Dinner Box. The saved-offers panel on the right rail is filtered to show only Pizza Hut entries — offers from other vendors stored in localStorage stay hidden on this page.
-
Fill in the Meal Details section
Either keep the pre-loaded Large 1-Topping Pizza as a template or replace the meal name, description, photo, portion, calories, dietary tags, and allergens with the new meal. The cuisine defaults to Italian and the meal type to Dinner — both safe defaults for a Pizza Hut menu item.
-
Set the pricing and auction limits
In the Pricing & Auction section, enter the meal’s retail price, the starting auction price (typically 10–20% below retail), and the floor price the vendor refuses to drop below. Configure the maximum discount, the per-hour and per-day caps, and any auto-decline rules (floor, capacity, off-hours).
-
Tune the Card Display, Fulfillment, and Notifications
Toggle which adornments appear on the diner’s offer card (on-fire badge, strength bars, vendor stats). Pick which service modes are eligible (dine-in, pickup, delivery), the average prep time, and which payment methods are accepted. Finally, choose where the kitchen team gets alerted — KDS, email, SMS — and what conditions trigger the alert.
-
Schedule availability
In the Availability section, activate the days of the week and the hours of the day the offer should run. Each hour button opens a popup so the vendor can set a fine-grained start minute (:00, :15, :30, :45) or turn the hour off. Set an active-from date, an optional end date, and any blackout dates — holidays, private events, or known closures.
The auction only shows scheduled offers
An offer is only eligible to appear in a live auction when the diner’s current day-of-week and hour both fall inside the offer’s schedule. If the vendor skips this section, the offer keeps the default Mon–Fri schedule and will not appear in a Saturday or Sunday auction.
-
Publish the offer
Click Publish offer at the bottom of the form. The page calls
publishOffer(), which gathers every field into a single offer object, tags it as belonging to Pizza Hut (the legal name is force-set so the offer always passes the vendor filter), and writes it tolocalStorage['fz-offers']. The saved-offers panel updates immediately and the page scrolls to it so the vendor sees the new row drop in. -
Edit, pause, or delete from the saved-offers panel
Each row in the panel has a pencil icon to edit (loads the offer back into the form), a trash icon to delete (asks for confirmation), and the form itself carries a Pause this offer button inside the Availability section. A paused offer stays in storage but the auction’s eligibility check skips it, so diners do not see it.
-
Run an auction to see the offer compete
From the top bar or the saved-offers panel, click Run auction with these offers. The auction page fzk-new.html reads every offer from
localStorage['fz-offers'], filters them by current eligibility, groups by vendor (so all Pizza Hut offers become one bidder card), surfaces the cheapest one as the headline price, and starts the live price drop loop.
Outcome
What the vendor walks away with
- A new live offer attached to their Pizza Hut account.
- Full control to edit, pause, or delete the offer at any time.
- A scoped view of every Pizza Hut offer, isolated from other vendors.
- Confidence that the offer will only appear during the schedule they set.
What the diner sees
- A Pizza Hut bidder card during the live auction.
- The cheapest current Pizza Hut offer surfaced on the card.
- A popup with every Pizza Hut offer when the card is tapped.
- Real-time price drops as Pizza Hut competes with other vendors.