Appointment Booking Calendar - Use Case - How to Set Up User Time Credit


Use Case – How to set up user time credit

Back to User Guides

Note: This guide requires:

The payment add-on works with two payment systems, so you also need to install and activate one of these plugins:

Video Use-Case

Note: the video uses the older plugin version 2.2.0, there might be some differences in features.

Introduction

Appointment Booking Calendar allows you to manage and display multiple calendars with open spots for visitors to book. Users can book slots either for free or for money, when using the Booking Payments Add-on. It is also possible to set up a Time Credit feature for specific registered users, so these users can book slots only with the Time Credit that they have.

Use Case Front-End

Spending Time Credit for booking an appointment:

Spending Time Credit for booking an appointment - WordPress Scheduling Plugin
Spending Time Credit for booking an appointment

Not enough Time Credit for booking an appointment:

Message about lack of Time Credit for booking an appointment - Appointment Scheduling Plugin WordPress
Message about lack of Time Credit for booking an appointment

Use Case Assumptions

Want to Learn From The Start?

If you still haven't configured your first calendar, check this use case: 

In this example use case guide, we'll cover how to set up Time Credit for all or specific users, how to create a user dashboard for them, hot to let purchase time credit and how this feature works for the user side. 

We consider that you have already bought the Appointment Booking Calendar plugin, but not installed yet. 

It follows:

Installing the Plugin

The process is the same for all CM plugins and add-ons.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin → Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Learn more: Getting Started - Plugin Overview


Setting Up Calendars Recap

How This Feature Works

The user will be able to book the appointments only for definite amount of time according to the time credit that his has (either given by the admin or purchased). The user has a dashboard, where he can view available Time Credit balance, view all transactions, view all his bookings made using Time Credit and reject them. Rejecting the appointment returns to the user the Time Credit that was spent for it.

Now let's consider configuration and how it all works step by step.

Time Credit Settings

First, let's check the general Time Credit settings.

To do this, navigate to Admin Dashboard → CM Appointments Booking Pro → Settings → Time Credit tab.

Navigation to the time credit settings - WordPress Scheduling Plugin
Navigation to the time credit settings

There you can find the following settings:

Time credit settings - Appointment Scheduling Plugin WordPress
Time credit settings
  • Control time credit for all users - This option allows you to enable or disable in bulk the Time Credit functionality for all users that are registered on your site. Alternatively, you can enable or disable it specifically for each user, we will consider it further in this guide.
  • Display the Time Credit column in the User Table - If enabled, in the users list there will be displayed a column Time Credit which shows if this feature is enabled for the user, and how many time credit he has.
Time credit column - Event Booking Calendar WordPress Plugin
Time credit column
  • Send email to reject booked credit time before [hours] - In this field you need to put the amount of hours that the user will have before the beginning of an appointment to reject it. We will talk about the rejection further in this guide.

When you configured this option, click the button Save Changes on the bottom of the page.

Saving the changes - WordPress Plugin for Scheduling Consultations
Saving the changes

Enabling Time Credit for Specific Users

To enable the Time Credit feature specifically for each user, navigate to Admin Dashboard → Users → All Users.

Navigation to the page with all users - Best WordPress Scheduling Plugin
Navigation to the page with all users

Hover on the needed user and click Edit.

Editing the user - Appointment Booking Calendar
Editing the user

Find there the section Time Credit User Control and enable the option Allow Time Credit for User. A few new options will appear there:

Enabling the Time Credit feature for a user - WordPress Scheduling Plugin
Enabling the Time Credit feature for a user
  • Enter Time (minutes) - Choose the amount of minutes that you want to add or deduct from the user. You can choose between 15, 30, 45, 60 or 90 minutes.
    • Add Time To Credit - Click this button to add chosen amount of minutes to the user.
    • Deduct Time From Credit - Click this button to deduct chosen amount of minutes from the user.
  • Time Balance (minutes) - This field shows the amount of time that is currently available for the user. This value increases when the admin adds minutes or when the user purchases minutes, and decreases when the admin deducts minutes or when the user spends this time for booking appointments.
Adding and deducting Time Credit - Appointment Scheduling Plugin WordPress
Adding and deducting Time Credit
  • Time Credit Transaction Log - Click it to see the current user balance and the transaction history of operations with time credit.

Example of the Log

Time credit transaction log - WordPress Calendar Booking Plugin
Time credit transaction log

TIP

Alternatively, the admin can access this log from the list of all users, by hovering on the user and clicking Credit Transaction Log.

Accessing the log - Booking Plugin WordPress
Accessing the log

When you finished operations with the Time Credit, click the button Update User on the bottom of the page.

Updating the user - Event Booking Calendar WordPress Plugin
Updating the user

User Dashboard

Logged in users with enabled Time Credit can access the dashboard with detailed info about all Time Credit actions and a table booked appointments.

Creating a Page With the User Dashboard

The User Dashboard page can be generated in two ways:

  1. When you install and activate the plugin, the User Dashboard page is generated automatically.

    Time Credit User Dashboard page - Booking Plugin WordPress
    Time Credit User Dashboard page
  2. You can create your own page and place there the shortcode [cm_user_credit_time_stat_report] . The shortcode also has a parameter calendar_col which allows to show or hide a column with the calendar name in the table with booked appointments. By default, this column is not displayed. To display it, you need to use the value "1".

    Using a shortcode for displaying user dashboard - WordPress Plugin for Scheduling Consultations
    Using a shortcode for displaying user dashboard

TIP: Add User Dashboard to the Menu

For the convenience of your users, you can add the page to the menu of your site:

Adding the page to the site menu - Best WordPress Scheduling Plugin
Adding the page to the site menu

Front-end:

Result on the front-end - Appointment Booking Calendar
Result on the front-end

User Dashboard - User View

Only users with turned on Time Credit feature can access the user dashboard.

The dashboard consists of two parts:

User Dashboard - WordPress Scheduling Plugin
User Dashboard
  1. Upper part - General info about the user and info about his Time Credit. The user can see there the following:
    1. User Login 
    2. User Email
    3. Current balance - Available amount of Time Credit that the user can spend for booking.
  2. Lower part - Two tabs: Bookings and Credits.

Bookings Tab

In the Bookings tab the user can see all bookings he made using Time Credit:

Bookings tab - Appointment Scheduling Plugin WordPress
Bookings tab

There are 5 columns in the table:

  • Event Date/Time - The date and time of the booked appointment.
  • Calendar - This column shows which calendar the booking is related to. This column can be optionally displayed using the shortcode parameter mentioned above.
  • Duration (minutes) - The duration of the booked appointment.
  • Event Status - The status of the booked appointment. Can be Accepted, PassedRejectedtrash (when the appointment is deleted) and other.
  • Event Reject Link - This column contains the Cancel button. The button won't be displayed in three cases:
    • If the appointment is already rejected or deleted.
    • If the time when the user could reject the appointment has passed. The time before the appointment when the user is able to reject it is defined by the admin in the plugin settings.
    • If the appointment date and time has already passed. After rejecting the appointment, the user will be added the amount of minutes that were spent for this booking. We will talk about the reject link more detailed lower in this guide.

Credits Tab

In the second tab Credits the user can see all information about admin operations with adding and deducting Time Credit to the user. Above the table the user can see his Current Balance.

Credits tab - Event Booking Calendar WordPress Plugin
Credits tab

The columns in the table are:

  • Date / Time - The date and time of the transaction.
  • Operation - Here the user can see the following operation types:
    • Added by the admin minutes
    • Deducted by the admin minutes
    • Purchased minutes
    • Spent minutes
    • Refund
  • Amount (minutes) - The amount of minutes that was added or deducted.
  • Balance (minutes) - The amount of minutes that left after the operation.

Reject Booking - Admin View

When the user clicks the Cancel button, the button will be replaced by the message "Canceling in progress".

Rejection in progress status - WordPress Calendar Booking Plugin
Rejection in progress status

The admin gets an email notification that the user wants to reject the appointment. The admin can also see that message on the booking editing page.

Email notification - Booking Plugin WordPress
Email notification

TIP: Change the Email Template

The admin can change the subject and body of the email notification in plugin settings in the Email Templates tab. Learn more about it in this guide: Appointment Booking Calendar - Appointments - Email Notifications To User and Admin

Editing the email template - WordPress Plugin for Scheduling Consultations
Editing the email template

There are two ways how the admin can reject the booking.

  1. To reject the appointment, the admin needs to click the Reject button in the metabox Status and click the Update button.

    Rejecting the booking - Best WordPress Scheduling Plugin
    Rejecting the booking
  2. In the list of all bookings, the admin can use either the button Quick Edit while hovering on needed booking or the relevant button Reject.

    Rejecting the booking - Appointment Booking Calendar
    Rejecting the booking

As a result, the status of the booking will be changed on the User Dashboard, and the user will be added the amount of minutes that were spent for this booking.

Example of the rejected booking - WordPress Scheduling Plugin
Example of the rejected booking

Booking - User View

When the user tries to book an appointment, there can be two cases.

First case, when the user has enough Time Credit for a booking. Above the submitting form the user can see:

  • The amount of minutes that will be spent for this booking. 
  • Current amount of minutes that he can spend.
  • The amount of minutes that will remain after making this booking.
Spending Time Credit for booking an appointment - Appointment Scheduling Plugin WordPress
Spending Time Credit for booking an appointment

Second case, when the user doesn't have enough Time Credit for a booking. Above the submitting form the user can see a message that he doesn't have enough Time Credit to book an appointment:

Message about lack of Time Credit for booking an appointment - Event Booking Calendar WordPress Plugin
Message about lack of Time Credit for booking an appointment

Translating Front-end Interface (Labels)

You can edit or translate all front-end labels related to the user dashboard in the plugin settings. To find them, navigate to Admin Dashboard → CM Appointments Booking Pro → Settings → Labels tab.

Navigation to the labels settings - WordPress Plugin for Scheduling Consultations
Navigation to the labels settings

First section with needed labels is Time Credit Dashboard Labels:

Time credit dashboard labels - Best WordPress Scheduling Plugin
Time credit dashboard labels

And the second section with needed labels is Booking Form Credit Labels:

Booking form credit labels - Appointment Booking Calendar
Booking form credit labels

Purchasing Time Credit Minutes

To let users purchase Time Credit minutes, you need to use the Booking Payments Add-on and one of the payment plugins - either Easy Digital Downloads or WooCommerce.

If both payment plugins are activated on your site, don't forget to choose the needed one in the plugin settings:

Payment settings - WordPress Scheduling Plugin
Payment settings

In this use case guide we choose Easy Digital Downloads, but it works the same for WooCommerce.

When the Booking Payments add-on is installed and activated, you will see 2 more options under the Time Credit tab in the plugin settings:

Time credit payment settings - Appointment Scheduling Plugin WordPress
Time credit payment settings
  • Price for 15 minutes - Set the price for purchasing 15 minutes of Time Credit. The product will be automatically created in the relevant payment plugin.

Example of the created product in EDD

Automatically created product - Event Booking Calendar WordPress Plugin
Automatically created product
  • Product name on the confirmation page - Define the nice-looking name to display in the checkout.

Example of the product name in EDD checkout

Product name in the checkout page - WordPress Calendar Booking Plugin
Product name in the checkout page

To display the functionality of purchasing minutes on the front-end, we need to use the shortcode [cmeb_purchase_time_credit] .

So let's add it to the page:

Adding shortcode to the page - Booking Plugin WordPress
Adding shortcode to the page

Result on the front-end:

Here the user can see his current balance, the price for 15 credits (defined by you in the plugin settings), and the buttons "-" and "+" to choose the amount of minutes to buy.

Form for purchasing time credit - WordPress Plugin for Scheduling Consultations
Form for purchasing time credit

When clicking "+" or "-" the user can also see the total price that he will have to pay.

Purchasing minutes - Best WordPress Scheduling Plugin
Purchasing minutes

After clicking Buy the user will be redirected to the checkout page. Here the user can finalize the payment by clicking the button Purchase:

Checkout page - Appointment Booking Calendar
Checkout page

This amount of minutes will be added to the user balance, and he will be able to see a relevant record in the operations log under the Credits tab of his user dashboard:

Record in the operations log - WordPress Scheduling Plugin
Record in the operations log

Compatibility With Paid Booking Slots

The booking slots in the calendar can be either free or paid. Paid slots are marked in the calendar by the relevant labels:

Example of paid booking slots - Appointment Scheduling Plugin WordPress
Example of paid booking slots

But the difference between free and paid slots is applicable only to users with disabled Time Credit functionality. The user with enabled Time Credit functionality can book both types of slots only with their Time Credit, without need to pay extra money for booking slots that are marked as "Paid".

End Result

Following instructions found in the plugin and guides, you should be able to set up Time Credit for all or specific users, how to create a user dashboard for them, hot to let purchase time credit and how this feature works for the user side. 

Front-End Use Case:

Spending Time Credit for booking an appointment:

Spending Time Credit for booking an appointment - WordPress Scheduling Plugin
Spending Time Credit for booking an appointment

Not enough Time Credit for booking an appointment:

Message about lack of Time Credit for booking an appointment - Appointment Scheduling Plugin WordPress
Message about lack of Time Credit for booking an appointment

More information about the Appointment Booking Calendar plugin for WordPress

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.