Skip to content
Resrv
Esc
↑↓navigate↵open⌘Jpreview
On this page

Rates

Rates let you offer several prices and availability options on one Entry. A common example is a hotel room sold at a “Standard” rate, a cheaper “Non-refundable” rate and a “Breakfast included” rate, all sharing the same inventory.

What is a Rate?

A Rate belongs to a Statamic collection, not to a single Entry. It can apply to every Entry in the collection or only to the ones you pick. Each rate sets how it’s priced and where its inventory comes from. It can also have restrictions, a cancellation policy and a booked units per add-on value for pricing extras and options.

Managing rates

Rates have their own Rates section under Resrv in the Control Panel.

The Rates management page with the collection picker and rate tree.

The Rates management page with the collection picker and rate tree.

Pick a collection at the top. Only collections that use the Resrv Availability field are listed.

Base rates are listed first, with the rates derived from them indented underneath. Drag rates to reorder them within a level. Badges show whether a rate is published, applies to “All entries” or is “Non-refundable”, and how many rates derive from it. A shared rate that takes stock from several base rates shows a badge such as “+ Afternoon” for each extra one.

Click Add rate to create a rate, or a rate’s title to edit it.

The Add/Edit rate panel with its General, Pricing, Availability and Restrictions sections.

The Add/Edit rate panel with its General, Pricing, Availability and Restrictions sections.

Apply to all vs specific entries

In the General section, turn on Apply to all entries in collection to offer the rate on every Entry. Turn it off to pick the Entries yourself. Select all and Remove all help with long lists.

You can’t move a rate to another collection after you create it.

Pricing type

  • Independent (default): the rate has its own per-day prices, which you set in the Entry’s Availability calendar.
  • Relative: the rate takes its prices from a base rate and applies a modifier.

A relative rate has three modifier fields:

Field Values Description
Modifier type Percent or Fixed A percentage or a flat amount.
Modifier operation Increase or Decrease Raise or lower the base price.
Modifier amount A number (no % character) The amount or percentage.

A Fixed amount applies per day, so it’s multiplied by the number of nights. A Percent decrease is capped at 100, and no modifier can take a price below zero.

The base rate must be in the same collection and an independent, non-shared rate.

A base rate doesn’t have to be published. An unpublished base rate is never offered on the frontend itself, but the rates built on it still read its stock and prices, and you still edit it in the Entry’s Availability calendar. Use this for a pool of stock that’s only sold through other rates.

Availability type

  • Independent (default): the rate has its own inventory in the Availability calendar.
  • Shared: the rate uses the base rate’s inventory, so booking it reduces the base rate’s availability. Use Max available to cap how many units can be booked on this rate.

A shared rate needs a base rate. It’s the same field relative pricing uses.

The four configurations

Pricing Availability Base rate What it is
Independent Independent Not required Own prices and own inventory. This is the default.
Relative Independent Required Own inventory, price derived from the base rate.
Independent Shared Required The base rate’s inventory with its own prices (see below).
Relative Shared Required The base rate’s inventory and a price derived from it.

Independent pricing on shared rates

A shared rate with independent pricing keeps its own prices. You set them per day in the Entry’s Availability calendar, not in the Rates screen. Its inventory comes from the base rate and can’t be edited.

Require price override controls dates where you haven’t set a price for this rate:

  • On: those dates are unavailable.
  • Off: they use the base rate’s price.

Several base rates (time blocks)

A shared rate can take stock from more than one base rate. Use it when an Entry is booked for parts of a day that must not overlap, such as a boat that can sail a morning trip and a sunset cruise on the same day, but never two trips at once.

Treat each base rate as a time block:

  1. Create one rate per block, such as Morning, Afternoon and Evening, with independent pricing and availability. Turn off Published so the blocks aren’t offered themselves.
  2. In each Entry’s Availability calendar, give every block the number of units it can sell per day, usually 1. The blocks need a row for every date a trip can run.
  3. Create each trip as a shared rate. Pick the first block it uses as Base rate, and the other blocks it spans in Also takes stock from.
Trip Base rate Also takes stock from
Full day Morning Afternoon
Morning half day Morning
Afternoon cruise Afternoon
Sunset cruise Evening

With these rates, a full day on a boat leaves only the sunset cruise bookable that day, a morning half day leaves the afternoon and sunset cruises bookable, and two morning trips can’t both be booked.

How Resrv treats a rate with several base rates:

  • Availability: a date is available only while every block the rate takes has at least the searched quantity left. Searches, browsing, the calendar, the results components and the cart all use this rule.
  • Booking: the quantity is taken from every block in one database transaction, and each block records the booking. When two checkouts race for the same block, the second fails and takes nothing.
  • Release: expiry, cancellation, refunds and manual reservations give the stock back to every block.
  • Prices: the blocks in Also takes stock from only add stock. The price comes from the rate’s own prices (independent pricing, best with Require price override on) or from the Base rate (relative pricing).
  • Editing: you edit each block’s stock in the Availability calendar. A block can’t be deleted while a rate takes stock from it.

Restrictions

Restrictions limit when a rate can be booked. Every field is optional.

Field Description
Date range The rate can only be booked within this window. Check-in must be on or after the start, and the booking must end on or before the end date.
Min days before Early bird: book at least this many days before the reservation starts. The global minimum still applies.
Max days before Last minute: book at most this many days before the reservation starts. Use 0 for same-day bookings only.
Min stay Minimum number of nights.
Max stay Maximum number of nights.

Booked units per add-on

Extras and option values are priced per booked unit. Fixed and Per day prices are multiplied by the reservation quantity, so two rooms pay for two breakfasts. That doesn’t work when a unit is smaller than what a guest actually books.

Booked units per add-on sets how many booked units count as one when pricing add-ons for a rate. You’ll find it in the rate’s Availability section, next to Max available. Leave it empty to price add-ons per booked unit.

Say a cruise sells cabins by the berth, so a 2-berth cabin is quantity 2. A single-occupancy rate books the whole cabin for one guest, and a fixed 350 port tax should be charged once. Set Booked units per add-on to 2 on that rate:

Rate Booked units per add-on Booked quantity Add-on quantity
Double cabin (empty) 2 2
Single cabin 2 2 1
Single cabin (two solo cabins) 2 4 2
Single cabin 2 3 2

The single cabin now pays 350 instead of 700, and two solo cabins pay 2 × 350. The result is rounded up, so quantity 3 with the field set to 2 prices add-ons for 2 units.

A few things to keep in mind:

  • Only add-ons change. The cabin price, the inventory taken and the quantity stored on the reservation stay the same.
  • When Ignore quantity for prices is enabled in your configuration, add-ons are never multiplied by quantity and this field does nothing.
  • It applies to every Extra price type and to Fixed and Per day option values. Extras priced relative to the reservation price aren’t divided again, because the reservation price already scales with quantity.
  • In multi-cabin bookings it applies per cabin line, using that line’s rate. A party of three in a double cabin (quantity 2, field empty) plus a single (quantity 2, field 2) pays 3 × 350 instead of 4 × 350.
  • Add-on prices are stored on the reservation when it’s booked, so changing the field only affects new bookings.

Cancellation policy

Each rate can have its own policy in the Cancellation policy section, on top of the global free cancellation settings in your configuration.

The Cancellation policy select has three choices:

  • Free cancellation until X days before (free_cancellation): set the number of days in the Free cancellation period input that appears.
  • Non-refundable (non_refundable): no free cancellation. The booking is always prepaid in full.
  • Use global default (leave empty): the rate uses the global free_cancellation_period setting, as in v5.

Customers see the policy as a label on the availability results, the checkout sidebar, the reservation details and the confirmation email, like “Free cancellation until Mon 03 Jun 2026” or “Non-refundable”. If no period is configured, there’s no label. When the free cancellation date has already passed for the dates searched, the label reads “No free cancellation for these dates”. A booking keeps the label as it stood when it was confirmed, so emails and the status page show the terms the guest booked.

The policy is saved on the reservation at booking time, so later changes to the rate or the global settings don’t affect existing bookings. When a booking spans several rates, Resrv uses the strictest policy. If any part is non-refundable, the whole booking is.

Titles and descriptions per site

On a multisite, the rate panel has a Translations section with a title and a description for each site other than the default. Title and Description in the General section are the default site’s. A field you leave empty uses the default site’s value. Added in v6.7.0.

Where Shown in
The rate selector, the availability results, the collection and cart labels, the checkout, the reservation status page and the payment page The visitor’s site.
Emails and the Control Panel reservation view The site the reservation was booked on.

A reservation keeps the site the visitor booked on. Reservations made before v6.7.0, and those created in the Control Panel, have no site and show the default site’s title.

In your own templates, $rate->titleFor() and $rate->descriptionFor() return the value on the current site, or on the site you pass, such as $rate->titleFor('el'). $reservation->getRateLabel() returns the reservation’s rate title on the reservation’s site, or on the site you pass.

Link a rate to an entry

A rate can point to an entry in any collection, such as the page that describes a cruise, so your templates don’t have to match the rate’s slug to an entry’s. Pick it in the Linked entry field of the rate’s General section. The field searches every collection you can view, on every site. Added in v6.7.0.

Resrv saves the entry’s origin, and gives you the entry on the right site:

Where Gives you
$rate->linkedEntry() The entry on the current site, or on the site you pass, such as $rate->linkedEntry('el').
linked_entry_id on each rate in the search results and in live_availability The id of the entry on the visitor’s site.
$reservation->getRateEntry() The entry on the reservation’s site, or on the site you pass. A cart’s stays can each have their own rate, so for a cart call it on each stay in $reservation->childs.

Each gives you the origin when the entry has no localization on that site, and null when the rate has no linked entry or the entry was deleted.

For example, to link each rate in the collection results to its page:

@foreach ($row['rates'] as $rate)
    @if ($rate['linked_entry_id'])
        <a href="{{ \Statamic\Facades\Entry::find($rate['linked_entry_id'])?->url() }}">{{ __('About this cruise') }}</a>
    @endif
@endforeach

Published flag & ordering

Turn off Published in the Settings section to hide a rate on the frontend while you prepare it.

Drag rates in the Rates list to set the order they appear in on the frontend rate selector.

On the frontend

When an Entry has several published rates, the availability search component shows a rate selector. The availability results then show the price, availability and cancellation label for the chosen rate.

If no rate is selected, Resrv shows the cheapest available one.

Upgrading from v5

See Upgrading to v6 for the full migration and the resrv:upgrade-to-rates command, which converts your v5 “Advanced availability” properties and “Connected availabilities” into rates.

Was this page helpful?