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.

...

Step-by-Step Guide to Setting Up The Example

Define the Resource Hierarchy

  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" and "Country".

  2. Create

...

  1. Reservation Types:

    • Define a

...

    • 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.

Custom Fields Creation

  1. 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 Text Field)

      • reservation_type_image__c (Custom Image Field)

...

  1. Create Staff Members:

    • Add

...

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

  1. Create Reservations:

    • Create

...

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

    • Ensure each

...

    • Reservation is linked to the appropriate

...

    • Reservation Types,

...

    • Staff, and other

...

    • Custom 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].

...