Okay
  Public Ticket #2280338
passing data to Amelia using url parameters
Closed

Comments

  • Ameer Baird started the conversation

    Hello,


    Is it possible to populate the name, email, and phone number for an amelia booking using data passed from a another form using url parameters? i want to capture lead info and then have them schedule the appointment but I don't want them to need to re-fill the same info again. 

  •  2,498
    Aleksandar replied

    Hello Ameer

    You can connect your customers to existing WordPress user roles, if they have the "Amelia Employee" user role. Also, if you enabled this:

    6373432297.png

    in Roles settings/Customer, all new customers will be added to wp_amelia_users table in the database, and won't have to refill their data when booking an appointment. All the data will already be pre-filled when they are logged into WordPress.

    Unfortunately, there's no way of connecting another form to the booking form with plugin's built-in features, and that would have to be done as a custom solution, which isn't included in provided support for the plugin.

    We don't have hooks (action and filters) at the moment. What we have is a few JS hooks that is triggered depends on the view:

    window.beforeAddToCalendarLoaded()
    window.beforeBookingLoaded()
    window.beforeSearchLoaded()
    window.beforeSearchFiltered()
    window.afterSearchFiltered()
    window.beforeConfirmedBooking()
    window.beforeCatalogLoaded()
    window.afterSelectCatalogCategory(object_category)
    window.beforeCatalogCategoryLoaded(object_category)
    window.beforeCatalogServiceLoaded(object_category, object_service)
    window.afterSearchActivateService(object_appointment, object_serviceActive)
    window.afterSearchGoToSecondStep(object_appointment, object_serviceActive)
    window.afterBookingSelectDateAndTime(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.afterBookingSelectService(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.beforeConfirmBookingLoaded(object_appointment, object_service, object_provider, object_location)
    window.afterConfirmBooking(object_appointment, object_service, object_provider, object_location)

    JS files are modified (minimized) in public version of plugin (in our development environment is accessible), but unfortunately I can not send you our source code because that is the policy of our company.

    All those files that have extension .vue are compressed and minimized in JS files that is very hard and not recommended modifying. So in order to add some other features you can unminify the js and customize it.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    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