Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This example provides a starting point for integrating GoMeddo's "activity registrationActivity Registration" capabilities into your website using the GoMeddo Javascript SDK.

An activity has a certain capacityCapacity, a staff memberStaff Member and a locationLocation. Your customers can sign up for this activity.

...

  1. Set Up Resources and Resource Types:

    • Define the hierarchical structure for your resources:

      • Organization > Country > City > Fitness Centre > Rooms.

    • Example:

      • Organization: Your Organization

      • Country: Netherlands

      • City: Amsterdam

      • Fitness Centre: FitZone

      • Room: Entry Level Room

    • Note: There can be multiple resources Resources of the type "Room", "City" and "Fitness Center".

  2. Create Reservation Types:

    • Define a reservation type Reservation Type for each class type (e.g., Pilates, Yoga).

    • Create a custom image field for each class type and add an image representing the class.

  3. Create Custom Fields Under the Reservation Object:

    • Add the following custom fields to provide detailed information about each activity:

      • Staff_Name__c (Formula Text Field)

      • Room_Name__c (Formula Text Field)

      • Room_Capacity__c (Formula Number Field)

      • City_Location__c (Formula Text Field)

      • Center_Name__c (Formula ext Text Field)

      • reservation_type_image__c (Custom Image Field)

  4. Create Staff Members:

    • Add staff members Staff Members (instructors) who will be associated with the reservations.

  5. Create Reservations:

    • Create reservations Reservations for the classes you want to display on the frontend.

    • Ensure each reservation Reservation is linked to the appropriate reservation typesReservation Types, staffStaff, and other custom fieldsCustom Fields.

Note:

  • Ensure that each resource in GoMeddo is marked as 'isActive' and 'Api Visible' to be displayed and available through the API.

  • Ensure that resourcesResourcesresources typesResource TypesstaffStaff and reservation typesReservation Types are set up in GoMeddo. For the booking system to accurately display available gym classes, each class must be created as a reservation within GoMeddo. This step is vital as the SDK relies on these existing reservationsReservations to present customers with real-time availability and booking options.

...

For further information on utilizing the GoMeddo Javascript SDK, visit [GoMeddo JS SDK wiki] and to test the frontend example explore the GitHub repository [GoMeddo Activity Registration and Scheduling].

...