Okay
  Public Ticket #2756262
PHP Hooks
Closed

Comments

  •  2
    Prachi Bapate started the conversation

    Hi there,

    I am exploring Amelia plugin currently. Do you have PHP hooks that would allow to access WP Amelia data?

    For example: When a Service gets added from Amelia plugin, I want to perform some actions, say insert records in some database tables. 

    Do you have a set of PHP action/filter hooks?

    Thanks in advance,

    -Prachee

  • [deleted] replied

    Hi Prachi,

    thank you for taking interest in Amelia!

    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.


  •  2
    Prachi Bapate replied

    Thanks a lot for your reply Ivana. I will check the JS hooks you mentioned.

  • Christian replied

    How sorry I am. Is it intentional that you propose so few integration possibilities ?This make Amelia useless for my clients

  • [deleted] replied

    Hi cvhenten,

    thank you for reaching out to us.

    If you have any questions regarding specific integrations, please open up a new ticket, we will be happy to advise you.

    Thank yousmile.png