Okay
  Public Ticket #3556653
Can't complete booking as Amelia tries to assign an unavailable employee for a selected time slot
Closed

Comments

  •  6
    Yamato started the conversation

    Hi Amelia team, let me report a bug as Amelia 7.3 might have the following issue with Step-by-Step Booking Form 2.0.

    Given multiple employees are set for a different date.

    1. Open the Step-by-Step Booking Form 2.0. The employee dropdown box is hidden.
    2. First, on the calendar screen, select Jan 8th at 10:00 which is only available for "Employee X (ID: 1)".
    3. Changing my mind, go back to the calendar, and then select Jan 9th at 10:00 which is only available for "Employee Y (ID:2)".
    4. When I try to complete the booking, the "Time slot is unavailable" error occurs because Amelia tries to assign "Employee X (ID: 1)", not "Employee Y (ID:2)".

    Expectation: Complete booking with "Employee Y (ID: 2)"

    After having this issue, I have been receiving multiple calls from our customers that they can't book the slot they desire. I hope this issue is resolved as soon as possible.

    Thank you!

    Attached files:  timeslot issue.png

  •  6
    Yamato replied

    Since this issue is very critical for our booking experience, I tried a temporary workaround as follows.

    File: stepForm.fe59bb9b.js
    I modified the following code from:

    if(!a.providerId&&a.date&&a.time)
    

    to:

    if(a.date&&a.time)
    

    to let Amelia reassign a proper "providerId" for the selected timeslot.

    I'm not pretty sure if this workaround affects other features as the JavaScript code has been minified and obfuscated. But so far, it works for me. 

    I appreciate it if you could review my fix and consider future updates based on my findings. Thank you!

  •  1,573
    Uroš replied

    Hello Yamato,

    Thank you for sharing the solution for that with us here.

    I will have this checked with our developers and let you know if this will cause any other issues with the Amelia plugin.

    I appreciate your patience.

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables