Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
1.8 KiB
ADDED Requirements
Requirement: Tickets Block
A page MAY hold TICKETS blocks. The page SHALL show each enabled ticket type of the block's event in sort order with its name, its price as RM 150.00 or Free, and its seats left or "Sold out" or "Sales ended", a quantity picker per type with an order total of at most 10, the running total, the buyer's fields and the privacy consent. When the event no longer accepts requests, the block SHALL say ticket sales are closed and the rest of the page SHALL still show.
Scenario: Visitor sees ticket types
- GIVEN a published page with a TICKETS block for
KL Hotel Tech Day, whose types areEarly birdRM 150.00 with 12 left,GeneralRM 250.00 with 80 left, andVIPRM 500.00 sold out - WHEN a visitor opens the page
- THEN the block lists the three types with their prices, shows "Sold out" for
VIP, and offers no quantity forVIP
Scenario: Sales closed
- GIVEN the event of a TICKETS block ended yesterday
- WHEN a visitor opens the page
- THEN the block says ticket sales are closed and the other blocks still show
Requirement: Tickets Block Fields
A TICKETS block SHALL name one event of the page's company that is enabled, not ended and has Tickets on when saved. It MAY have a heading (120 characters), text (1000 characters), a section label, a look and a link name. The server SHALL refuse any other field. Both editors SHALL offer the block and pick its event from the company's events that qualify.
Scenario: Event without tickets
- WHEN staff save a TICKETS block for an event whose Tickets switch is off
- THEN the save is refused on that block's event field
Scenario: Add a tickets block in the editor
- WHEN staff add a Tickets section in the on-page editor and pick
KL Hotel Tech Day - THEN the canvas shows that event's ticket types