Okay
  Public Ticket #2773140
Stripe and markerplace
Closed

Comments

  •  1
    Javier started the conversation

    Hi there!

    We are looking for the feature of perform a marketplace with Amelia. 

    I've read this: https://tmsplugins.ticksy.com/ticket/2741491/ and it's quite clear that for now it's not in implemented, but I have a question, There are any kind of hooks or something that we (as web developer) can try to use to customise Amelia to work in this way?

    Thanks a lot!! ^_^

  • [deleted] replied

    Hi Javier!

    Thank you for taking time to contact us, and for taking interest in Amelia!smile.png

    Yes, unfortunately, it's not yet planned; however, you can always suggest it or vote for it here; 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!

    We currently have WebHooks; we also have API Routes for the Amelia app, but most of them are protected depends on of the permissions that is set in WordPress Accounts. You can check those API Routes in this file ../wp-content/plugins/ameliabooking/src/Infrastructure/Routes/Routes.php

    At the moment we have some JavaScript hooks that are triggered depending 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 the public version of the 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 extract the js and customize it.

    Hope that will help.

  •  1
    Javier replied

    Thanks Ivana for the explanation, it has been very useful!

    Best!

    Javier.