Okay
  Public Ticket #2954509
Customer account
Closed

Comments

  •  2
    Anna Bućkowska started the conversation

    Hi,

    I wonder what is the best approach for the client (a mother) to book the same service for different children? For the time being, after the first booking the system does not differentiate between the client who is booking the service and the end customer. Which is also reflected in the message sent to the client to confirm a booking. 

    Would it be possible to distinguish a Word Press user from the end customer who is the real adressee of the booking? 

    Kind regards,

    Anna

  •  111
    Stanislav replied

    Hello Anna,

    Thank you for reaching out to us.

    Сould you provide me with more information and screenshots, regarding this issue. So I will be able to understand what do you mean and help you.

    If you need some further assistance, please don't hesitate to contact us.

    Have a nice day!

    Kind Regards, 

    Stanislav Snagovskiy
    [email protected]

    Rate my support

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

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

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

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

  •   Anna Bućkowska replied privately
  •  111
    Stanislav replied

    Dear Anna,

    Thanks for the clarification.

    Email verification is not possible with Amelia, but there's a workaround you can apply that will check the email. Here's what you need to do:

    Go to Amelia/Customize/Custom Fields, and create a "Text" custom field, with the "Required" check-box enabled and apply it to all services:

    1585090528.png

    Then go to Amelia/Notifications and click on "</>Show Email Placeholders" to see the ID of that custom field:

    7827962570.png

    Then, on the booking page, add a custom script:

    <script>
    window.afterConfirmBooking = function(appointment, bookable, provider, location) {  if (appointment.bookings[0].customer.email !== appointment.bookings[0].customFields[14].value) {    var alertElement = document.getElementsByClassName('el-alert__title')[0];    alertElement.innerHTML = 'Emails do not match';    var alertBlock = document.getElementsByClassName('am-payment-error')[0];    alertBlock.children[0].style.display = 'flex';    alertBlock.scrollIntoView({ behavior: 'smooth', block: 'start'});    throw "Abort";  }
    }
    </script>

    Just make sure to enter the correct Custom field ID in:

    customFields[14].value

    This will not allow the customer to proceed with the booking if the email in the email field and the email in the custom field do not match:

    9951593603.png

    I hope that helps!

    If you need some further assistance, please don't hesitate to contact us.

    Have a nice day!

    Kind Regards, 

    Stanislav Snagovskiy
    [email protected]

    Rate my support

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

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

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

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