Sorry, we don't support your browser.  Install a modern browser

Multiple Bookings for Same Time Slot with the Same Package#631

It would be ideal if package deals can be for multiple people. Example: I have packages for 3, 5, 10, 20 and 30 baseball lessons and I want customers to be able to book multiple times for the same appointment time if they want to bring in more people with them and just use another lesson for the same time period.

A more specific example: a family buys a 30 package, they have two sons who play baseball and they want both of them to come in at the same time together. I want them to be able to use 2 of their 30 lessons in the package to book at 10am on a Monday so that both kids can come in and they use 2 sessions for the same time slot. It seems right now they can’t book another lesson at the same time with the same package as it tells them “Error, you have already booked this appointment”

4 years ago
6

This simple solution would fix a lot of our booking problems, please consider looking into this! Allow a customer to book more than 1 appointment at the same time for services that offer multiple slots per hour.

4 years ago
3
C

This is must, because sometime the user’s friends wanted to come together and ask the user to make the payment for them.

And it’s not user friendly if the user can’t add the slot after the first booking.

4 years ago
2

200% percent agree
And admins should be able to add and/or delete participants too.

🙏😊 this is a must be

4 years ago
2
?

For us this would be ideal as well, we are really needing either this solution or resource management to let the booking tool work correctly for us.

4 years ago

Hi may I ask if the problem was solved for now?

3 years ago

No, and don’t get your hopes up as they rarely change things we need.

3 years ago
?

worst in amelia where user NO OPTION for multiple customer in sametime slot

2 years ago

No, and they told us they don’t want to add this because “most users don’t need this”. If you want this to work, you’ll have to custom code it by commenting out the double booking restriction in the .php files of the plugin.

  1. AppointmentReservationService.php
    – Path: /wp-content/plugins/ameliabooking/src/Domain/Services/Reservation/AppointmentReservationService.php
    – Comment out the block that throws a CustomerBookedException when overlapping appointments are detected.
    1. AppointmentApplicationService.php
      – Path: /wp-content/plugins/ameliabooking/src/Application/Services/Appointment/AppointmentApplicationService.php
      – Comment out the block that throws a CustomerBookedException when the same customer is already booked for another appointment at the same time.

This is not advised because you might break the plugin altogether and the changes will not stay through updates. Amelia is so powerful and is much better than most alternatives, but they are totally dropping the ball on a lot of basic features like this, and booking two different services at the same time in the same cart.

I hope they change their mind and add a feature to toggle this on or off depending on your needs. Any good developer would be able to make this a toggle feature easily.

a year ago

AppointmentReservationService.php
– Path: /wp-content/plugins/ameliabooking/src/Domain/Services/Reservation/AppointmentReservationService.php
– Comment out the block that throws a CustomerBookedException when overlapping appointments are detected.
AppointmentApplicationService.php
– Path: /wp-content/plugins/ameliabooking/src/Application/Services/Appointment/AppointmentApplicationService.php

i cant see a file that (folder sturucture changed version 8.2 ) ?

a year ago

Apologies, the new structure in Amelia 8.2 seems to be as follows. You can use an Application like FileZilla to connect to your remote server.

/srv/htdocs/wp-content/plugins/ameliabooking/src/Application/Services/Booking

You should see AppointmentApplicationService.php in the above, double checked just now on Amelia version 8.2

Comment out the following lines as shown:

 foreach ($appointment->getBookings()->getItems() as $booking) {
               // if ($booking->getCustomerId()->getValue() === $newBooking->getCustomerId()->getValue()) {
                   // throw new CustomerBookedException(FrontendStrings::getCommonStrings()['customer_already_booked_app']);
               // }
            }

The other file:
/srv/htdocs/wp-content/plugins/ameliabooking/src/Application/Services/Reservation

You should see AppointmentReservationService.php in the above folder in 8.2

Comment out the following lines as shown:

  //  if ($customerBooking->getStatus()->getValue() !== BookingStatus::CANCELED &&
                 //   $booking->getCustomerId() &&
                 //   $booking->getCustomerId()->getValue() === $customerBooking->getCustomerId()->getValue()
               // ) {
                 //   throw new CustomerBookedException(
                  //      FrontendStrings::getCommonStrings()['customer_already_booked_app']
             //       );
             //   }

This will not work through updates, you’ll have to redo changes. If they change this structure so this is not possible in future updates, we may move on from Amelia unless they implement this feature as an intended toggle. I don’t see why they’d move this structure unless they are out to get the few of us that need this…

a year ago

My client needs this feature for their business; if the feature could be added with a toggle, perhaps as part of WP Amelia “9”, then this would allow us to use the plugin to fully satisfy our booking needs.

8 months ago
I

This php workaround works for 8.x, so thanks! However, I couldn’t get it to work on the 9.0 beta. I found another “throw new CustomerBookedException” in EventReservationService.php (same folder as AppointmentReservationService.php) and uncommented that as well, but that didn’t seem to do much.

In the Wordpres menu, I don’t even see a toggle for the cart anymore. It is still in beta though.

I hope I’m doing something wrong…

6 months ago
Q

Is there an Amelia 9.0 update for this?

4 months ago

I know Amelia are unlikely to do anything about this, but thought I’d add my +1 as well. Running Amelia on a dog training website and using packages for pre-purchasing classes. Many people have more than one dog and would like to book all of their dogs in for a class. At the moment there is no way to do this, other than creating separate accounts and purchasing a package for each dog. That’s ridiculous.

All they need to do is add the “bring additional people” option to the packages, or (even easier) just remove the check to see if they’ve already booked that date.

3 months ago
B

my client also needs this feature : to have the possibility to book for many people when we book with a pack like 10-session pass.
Any news for this?

a month ago