Okay
  Public Ticket #2726803
Hooks and Filters?
Closed

Comments

  • Leo started the conversation

    Does Amelia Appointments and Events plugin offer Hooks and Plugins for developers? I am trying to have a developer auto submit a booking with preconfigured information from a script, like ( if button pressed -> book item for date and time )

    Thanks for your time!
    Leo

  • [deleted] replied

    Hi Leo,

    thank you for contacting us!

    I apologize for the later reply as we don't work on weekends.

    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.

  • Christian replied

    Once again, I think it is a bad strategy as it makes Amelia useless with other plugins (without zapier).
    you are limiting the spreading of Amelia this way

  • [deleted] replied

    Hi,

    thank you for contactingsmile.png

    If you make a suggestion here, users will be able to vote for it and it can be considered in the future. 

    We have a lot of feature requests,  the most requested features are in the top of the list and we really try to implement as many new features in each update.