Okay
  Public Ticket #2743125
Price for extra people
Closed

Comments

  • Huw Roberts started the conversation

    Hi,

    I just purchased Amelia, I have a client who offers kitesurfing lessons with the following rates:

    1 person = 60/hr

    2 person = 90 /hr

    3 person = 135 /hr

    4 person =180/hr

    I was going to use the Appointment  system.

    How can i achieve this please using a Service? Thanks

  • Huw Roberts replied

    Hi can anyone help with this issue please? 

  • [deleted] replied

    Hi, Huw!

    Thank you for your purchase.

    1. I'm afraid, it's possible to set only one price for each Service or Event. The price can't be dynamically changed according to the number of attendees.

    Therefore, the best solution is to use different Services or Events for 1, 2, 3, and 4 persons and set a price for each of them separately.

    2. Regarding the difference between Services and Events:

    Appointments are being defined by the Service's duration, while an event has a predefined time and date set up.

    For example, if you configure your service so it lasts 1 hour, and assign an employee who works Mon - Fri from 09:00 - 17:00, that service's appointments will be available for booking on every hour, so:

    09:00 - 10:00

    10:00 - 11:00

    And so on.

    When you're configuring events, you're setting the time and the date when the event will take place.

    Multiple employees can host the event, but only one employee can be assigned to a service at a time.

    Also, the service is offered all the time (Mon - Fri at the same time, unless you configure your employee's working hours so he works only on specific days at specific times), while an event is held only on particular dates.

    One more thing: Google Calendar integration works only with Services at the moment (in case you plan to use it).

    And regarding our demo site: we used Events and Service as well, so you can see how both options can be applied.

    Please let us know if you have any other questions.

    Best Regards. 

  • Huw Roberts replied

    Thanks that makes sense.

    If a service was booked e.g for 1 person service on a certain date is that service still available to book for 2 persons service - e.g do i set the max and min capacity?

    e.g 

    1 person service = min capacity 1 max capacity 4 , Bringing anyone with you = no

    2 person service = min capacity 2 max capacity 4 , Bringing anyone with you = no

    3 person service = min capacity 3 max capacity 4 , Bringing anyone with you = no

    4 person service = min capacity 4 max capacity 4 , Bringing anyone with you = no

    Also I have been trying to change the language strings - i have edited the wp-content/plugins/ameliabooking/languages/en_US/wpamelia-en_US.po directly however it has had no affect (after clearing cache.) 

    I then edited wp-content/plugins/ameliabooking/src/Infrastructure/WP/Translations/FrontendStrings.php 

    which does work

    Is there an override for these files because my changes will be deleted when the system updates?

  • Huw Roberts replied

    UPDATE:

    I tried to setup 4 services.

    • 1 person service = min capacity 1 max capacity 4 , Bringing anyone with you = no
    • 2 person service = min capacity 2 max capacity 4 , Bringing anyone with you = no
    • 3 person service = min capacity 3 max capacity 4 , Bringing anyone with you = no
    • 4 person service = min capacity 4 max capacity 4 , Bringing anyone with you = no

    I booked a 1 person service (9am - 8pm) on the 29th April 2021 which worked fine

    I then tried to book a 2 person service on the same date/time however the service is no longer available (despite setting max capacity to 4 persons)

    How can I make the service available until a max 4 people have booked?

    Thanks

  • Huw Roberts replied

    Hi I need to get moving with this project.

    Can you please check my requests below.

    I need to have 

    • 1 appointment per day (9am-8pm) for 1 employee for 4 services
    • Once the appointment has 4 spaces booked it is blocked off
  • [deleted] replied

    Hi, Huw!

    1. I'm afraid, at the moment there's only one way to protect your modified translation from being overridden after an update - to save it on your local machine and then replace the file again. There is a synchronization option in Loco Translate, so, theoretically, you can try to synch the old file with the new one after the update, so you won't lose any strings related to new features. But we didn't test it yet, so I can't tell you how exactly it works.

    2. There's only one way to allow booking of the same time slot multiple times in Amelia: for that, you should enable the "Allow booking below minimum capacity" option in Amelia -> Settings -> Appointments. However, in this case, each of your Services will be available for booking by 1 person as well (since the pre-set minimum capacity will be overridden).

    You can suggest these capacity settings as a feature request here, or check if this request was already submitted and vote for it.

    Please let us know if you have any other questions.

    Best Regards.