My Orders Layout

[TOC]

Overview

The My Orders layout is a front-end view designed for end customers. It allows logged-in site users to view their own booking history, check order statuses, and cancel bookings if the cancellation policy allows it.

Menu Item Type: OS Calendar → Customers: My Orders

Who Can Access This View

Any registered (logged-in) Joomla user can access this view. Guests (not logged in) are redirected to the login page.

Features of the My Orders Layout

Order List

Displays all orders placed by the currently logged-in user:

Column Description
Order ID Unique identifier for the booking
Property / Room Booked property and room
Check-in / Check-out Dates of the stay
Nights Duration of the booking
Adults / Children Number of guests
Total Amount Total booking value
Status Current order status
Order Date Date the booking was submitted

Filtering

Customers can filter their own orders by:

Filter Description
Order By Sort by check-in date, order date, or amount
Sort Direction Ascending or descending
Status Filter by order status
Check-in From / To Filter by check-in date range

Viewing Order Details

Click on the order ID to open the full order detail page, which includes:

  • Full booking summary (dates, guests, property, room)
  • Price breakdown (subtotal, tax, total)
  • Payment method and transaction information
  • Current status with status badge
  • Print button for a printable version

Order Cancellation

If the administrator has enabled cancellation in Configuration → Application → Cancellation Policy, a Cancel button will appear on the order detail page when:

  1. The order status is Pending or Confirmed.
  2. The check-in date is still within the allowed cancellation window (as defined by Allow Cancel Before (days)).

Clicking Cancel will immediately cancel the order and send notification emails to the customer and administrator.

Menu Item Options

When creating a menu item for this view:

Option Description
Page Title Title displayed at the top of the page (e.g. "My Bookings").
Access Level Set to Registered to ensure only logged-in users can access this page.
Default Sort Default sorting field for the order list.

Tip: Link to the My Orders page from the user profile page or the site header so customers can easily find their booking history.