Okay
  Public Ticket #2905385
Booking date
Closed

Comments

  •  6
    João started the conversation

    Hi,


    Is there a way to get the day at which the appointment was made?

    I need to get, for example, all appointments made in day 29 October (different from all appointments with start date in 29 october).


    Thanks

    João

  • [deleted] replied

    Hi João

    Thank you for reaching out to us.

    Amelia is primarily a booking system so information that are not crucial for the business are not being directly recorded in the plugin.

    If you know your way around the database you can try to locate this information from the tables. There are around 47 tables with wp_amelia_ prefix. Please note that wp_ is the default database prefix, but on your end it could be anything, so look for your_prefix_amelia_ tables.

  •  6
    João replied

    Hi Blaženka,


    Thanks for the quick reply!

    I have a billing software that is external to Wordpress/WooCommerce, and I need to know when an appointment is booked so I can tell my billing system that an invoice needs to be generated.  I used to rely on notifications, but as the business gets bigger is harder to use notifications as a practical system to identify new appointments.  All of this just to give some context and say that this is crucial for my business.

    I've looked in database and can't find this information.  Can you point me to it?


    Thanks in advance,

    João

  • [deleted] replied

    Hi João,

    thank you for contacting backsmile.png

    This information is usually sent externally via hooks; 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.