Overview of Booking Plugin Architecture

Booking Plugin Architecture Diagram This diagram illustrates the architecture of the Booking Plugin, which highlights the interactions between ServiceType, Service, and CustomerCheckin models.

Booking Plugin URLs

  • Services: /services/ - Endpoint for managing services on the Schedule page.
  • Calendar: /calendar/ - Shows the customer-facing booking calendar.
  • Manage Booking: /ajax/manage_booking/ - AJAX endpoint for managing bookings.
  • Classes Schedule: /classes-schedule/ - Displays each customer’s service schedule.
  • History: /history/ - Shows each customer’s booking history.
  • Get Class Context: /ajax/get_class_context/ - AJAX endpoint to get class context.
  • Get Class Info: /ajax/get_class_info/ - AJAX endpoint to get class information.
  • Check Layout: /ajax/check_layout/ - AJAX endpoint to check any layout for the given service.
  • Add Booking Cart: /ajax/add_booking_cart/ - AJAX endpoint to add to booking cart.

Booking Plugin Database Models

  • ServiceType: Defines types of services with fields for name, price, and description that become default for services.
  • Service: Represents a service with fields for virtual options and methods for managing participants and schedules.
  • CustomerCheckin: Generated upon customer registration for a service, this object helps manage registration and check-in.