Okay
  Public Ticket #2857901
Payment Methods
Closed

Comments

  •  2
    Candice started the conversation

    Hi there.

    It is possible to force the payment method to woocommerce when creating appointments on the backend or when staff create from their panel? Currently, the payment method defaults to "onsite when making appointments on the backend.

    I need woocommerce orders to be generated so I can send invoices to customers even if an admin/employee makes an appointment on behalf of a customer.

  • [deleted] replied

    Hi Candice,

    thank you for reaching out to ussmile.png

    I'm afraid that it's only possible for the frontend booking to trigger the WooCommerce cart and payment at the moment.

    I'll kindly ask you to add it as a feature suggestion on this page. Features are pushed up on our "to-do" list when there are a lot of customers requesting those features, so having your vote as a customer can be beneficial to this feature being developed sooner.


  •  2
    Candice replied

    Thanks, Ivana. Will do so. 

    In the meantime, is there any way for the appointment data to integrate with an accounting system like Xero? It's important for my business's accounting records to match what is in Amelia without having to enter data manually which is what I was hoping to achieve with the Woocommerce payment option in the backend. 

  • [deleted] replied

    Hi Candice!

    You can try using our JS hooks for this purpose; we don't have normal hooks (action and filters) at the moment, but we do have 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.