Skip to content

Template Reference ​

Order and cart ​

Delivery Slots adds these to every Commerce order and cart:

Returns
cart.deliverySlotDaysThe days to choose from, for the cart’s shipping method
cart.getDeliverySlotDays('handle')The days for another shipping method
cart.hasDeliverySlotsWhether the cart’s shipping method has slots
cart.getHasDeliverySlots('handle')Whether another shipping method has slots
cart.deliverySlotThe chosen slot, or null
cart.getFirstError('deliverySlot')Why the slot couldn’t be held or the order paid for

Day ​

PropertyDescription
dateThe day
slotsIts slots, including full ones
openSlotsSlots that aren’t full
isAvailableWhether any slot can be chosen
unavailableReasonWhy there are no slots: Closed, a closed day’s label, Not in your area or Ordering has closed. null when the day has slots

Slot ​

PropertyDescription
valuePost this as deliverySlot, such as 2026-11-17@08:00
labelThe times, such as “8 – 10am”
dateWhen the slot starts
start, endThe times as 08:00 and 10:00
capacityThe slot’s limit
leftPlaces left
isFullNo places left
isLowNearly full
feeIts zone’s fee, or 0

Delivery slot ​

order.deliverySlot, the slot chosen for an order.

PropertyDescription
labelThe day and times, such as “Tuesday 17 November, 8 – 10am”
timeLabelThe times, such as “8 – 10am”
startDate, endDateWhen it starts and ends
date, start, end2026-11-17, 08:00, 10:00
value2026-11-17@08:00
zoneThe zone entry, or null
feeThe slot’s fee
isBookedtrue once the order is complete, false while it’s held
calendarUrlA link to download the slot as a calendar event (.ics). Works for completed orders

Form fields ​

FieldActionDescription
deliverySlotcommerce/cart/update-cartHolds the slot for the cart. Empty clears it
deliverySlotdelivery-slots/slots/chooseThe same, on its own (JavaScript Checkouts)

Times ​

Slot times show as “8 – 10am” and “10am – 12pm” on sites in English, and as “08:00 – 10:00” in other languages. For another format, use startDate and endDate with Craft’s date filter.

A Craft Commerce plugin by Suprim