Appearance
Discounts and promo codes for a salon, in Laravel
"First visit −15 %" is how a salon brings in new clients, and Tuesday at ten is a chair nobody sits in. A salon without discounts in its booking either hands out a code that nobody checks at the till, or leaves the quiet hours empty. One that types a discount into the till by hand finds out at the end of the month that the code meant for one visit was used six times.
Fresha, Booksy, Vagaro and Boulevard all let a salon lower a price: a code the client types, a time that costs less by itself, a discount at the till. kitloom/booking-discounts does the same on a Laravel site, with the salon's own data.
A promo code
Discounts → New discount:
- the name the client reads, First visit, and the code,
WELCOME15. A client may type it in any case; - what it takes off: a share or an amount;
- first visit only: a client who has never had a visit with you, by their card, their email or their phone;
- the limits: a new code is used once per client, and uses in all caps it at the first hundred.
On the booking page the client opens Have a code? and types it. The price is struck through, the discount is named, and what is left shows under it, with the deposit worked out on that. A code that does not apply says why: This discount is for a first visit, This discount has been used up.
Quiet hours and the last minute
A discount with no code applies by itself wherever its conditions hold:
- Tuesday mornings: twenty percent, Tuesday and Wednesday from nine to twelve;
- Last minute: ten percent for a visit booked less than four hours before it starts;
- or a Black Friday that runs four days, a discount for one stylist's new chair, one for colour only.
The booking page lists them above the services, and the time picker marks every time they lower: −20 %. A visit gets one discount: the code a client types, or else the largest that applies by itself.
At the till
With kitloom/booking-checkouts:
- The bill shows the services at their own prices and the discount under them: First visit (WELCOME15) −12.00.
- Give a discount takes a share or an amount off the services or off everything, with a word why. A staff member gives up to ten percent themselves; a manager gives any.
- Discount code takes a code a walk-in brings. It counts as a use like one typed online.
- Taxes come out of what is left: a discount the salon gives lowers the GST on the bill. A gift card is different. It is a way of paying, and the bill stays as it is.
- Takings shows Discounts given beside the tips and the taxes.
Kept straight
- Uses. Each time a discount lowers a visit is a use: held while the visit is ahead, kept once it happens or the client does not come, given back when the booking is cancelled. The limits count what is held and kept.
- A move. Moved to another time, a visit keeps its discount; moved to a colleague with their own prices, the same rule falls on theirs.
- Never deleted. An offer that ends is switched off, and what it took off stays on the visits it lowered.
- What it gave. Discounts this month on the dashboard: what discounts took off, the visits that had one, the first visits a first-visit code brought.
Ask the agent
With kitloom/ai connected:
- "Make a code SPRING for 10 % off colour until the end of March, once per client." (
booking_)discounts_ save - "Would WELCOME15 work for a cut with Mira on Tuesday at ten?" (
booking_)discounts_ check - "Which discounts were used this month?" (
booking_)discounts_ list
For a Laravel developer
The tables are the module's own, booking_ and booking_, on Eloquent models the application can swap through the Model.
Writing and choosing:
Discountis the only writer. It saves the owner's discounts, and holds a use inside the booking's transaction, counting the limits again under a lock on the discount's row: two clients never take the last use of a code at once.Writer Discountspicks the discount for a visit and says why a code does not apply.
The bookings name no module. They ask through a new contract, Visit, bound the way the deposit's Prepayment is. The answer sits on the Visit, so the booking's price and a deposit quoted on it are what is left, while its services keep their own prices for the bill. POST bookings/ prices a visit before it is booked, and every free time carries its badge.
The till reads the same contract. A discount is a bill line of its own, with a negative price, taxed as the lines it lowers.
Around it:
- webhook
booking_, and a notice when a code is used up;discount. used /;api/ v1/ booking- discounts - privacy export and erase, which keep the amounts;
- a spreadsheet of the uses.
Watch it
Try it
bash
composer require kitloom/booking-discounts kitloom/booking-discounts-filament
php artisan migrateOn a Nova site, the second package is kitloom/. Atelier, the salon theme, draws the code field, the offers and the marked times.
Open a sandbox in one click, with no sign-up: Filament or Nova. Every detail — the conditions, the agent's tools, the routes — is in the Discounts guide.