Okay
  Public Ticket #2463352
Specific use case
Closed

Comments

  • Chenille started the conversation

    Hi there,

    Thanks for a great plugin, just a quick question:
    I was wondering if it was possible to pass data to Amelia from another page; ie specific use case is as follows:

    User hits a page with a simple 3 field form. This form lets them select a service, a start and end date and then hit submit.

    The form then passes the data from these 3 fields forwards, redirects them to a specific page. The data is passed to Amelia (it is input as if the user had filled out the typical Amelia view), and then the Amelia process follows as intended.

    I see that you have web hooks as an option but as far as I understand it, it seems like they are specifically for handling data AFTER it has already been input, which is not what I'm trying to do.

    I hope my description makes sense, please let me know if any further details required.

    Looking forward to hearing back, kind regards!

  •  2,572
    Aleksandar replied

    Hello Chenille

    Thank you for your purchase.

    I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.

    Unfortunately 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