Okay
  Public Ticket #2892978
Auth0 Integration
Closed

Comments

  •  1
    Abhijeet Deshpande started the conversation

    Hi Support,

    I just purchased Amelia and am eager to get started. I use Login by Auth0 plugin to offload the WordPress authentication workflow to Auth0

    When I work with WooCommerce, there's this small snippet on Github that helps to create a new user account on Auth0 whenever a new customer signs up on the website. It uses a WooCommerce hook 'woocommerce_created_customer'

    Could you please help provide a similar snippet for Amelia - so when a new customer signs up on Amelia, it can create the user account on Auth0? Would be really grateful for your help here please.

    Kind regards,

  • [deleted] replied

    Hi Abhijeet,

    thank you for reaching out to ussmile.png

    I'm afraid that we don't have an integration with Auth0, so this is not possible at the moment.

    Perhaps it can be done with some custom work, but our developers are very busy at the moment, working on some priority tasks and fixing bugs and issues with our plugins, so they won't be having the time for custom work in near future.

    But we can recommend this service for customization: https://wpkraken.io/?tms-plugins (by this link they would know you come from us) - they do develop such custom solutions, could you please send your inquiry to them?

    I'll kindly ask you to add it as an integration 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.

  •  1
    Abhijeet Deshpande replied

    Thank you for your reply. Appreciate all the awesome work the Devs are upto to make Amelia the best and most complete booking plugin out there. 

    Perhaps, I can try it myself if you could please advise the appropriate hook for Amelia.

    E.g. for WooCommerce it is 

    woocommerce_created_customer

    It is used like this

    add_action( 'woocommerce_created_customer', 'example_woocommerce_created_customer', 10, 2 );

    Could you please suggest the corresponding hook for Amelia?

    Hope it should be a quick one to answer.

    Kind regards 

    Abhijeet Deshpande 

  • [deleted] replied

    Hi Abhijeet,

    thank you for contacting back, and for such kind feedbacksmile.png

    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,572
    Aleksandar replied

    Hey Abhijeet

    We're checking this with our developers and we'll get back to you as soon as possible.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Abhijeet Deshpande replied

    Thanks Aleksandar

    Look forward to your advise please.

    Kind regards,

  • [deleted] replied

    Hi Abhijeet,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    I have reminded the team, so I am awaiting the response still; will make sure to message you back as soon as they reply. Thank you for your patience.


  •  2,572
    Aleksandar replied

    Sorry for the delay, Abhijeet, we've been having some issues with the update and our developers' time is wrapped around that.

    It's almost ready now, and I just reminded our dev team to check this out again.

    I'll get back to you as soon as I have any news, I just wanted to follow up and inform you that we haven't forgotten about this.

    Sorry for the delay once again.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2,572
    Aleksandar replied

    Hello again Abhijeet.

    Our developers wanted to ask if you're using WooCommerce with Amelia? If you are, this WooCommerce hook should suffice, so if you configure it so a WP user is created when the order is created, Amelia will be linked to the same user. If you're not using WooCommerce with Amelia, we can only add the hook after the WP user is created by Amelia.

    We have this hook "AmeliaBookingAddedBeforeNotify" which is being triggered after booking, and it contains the user info (there's an external ID in there, so the ID of a WP user, but it doesn't say if it's a newly created WP user).

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Abhijeet Deshpande replied

    Hi Aleksandar,

    Thank you for your support on this. Really appreciate it.

    prefer not want to use WooCommerce - it is a relatively heavy plugin on the server resources. So, if I can manage creating an Auth0 User Account for new Amelia customers (and sometime in 2022, be able to add Tax/GST during checkout), I may not need to install WooCommerce for this current project. But its helpful to know that I can make it work using WooCommerce, if the need be.

    About the hook "AmeliaBookingAddedBeforeNotify": I am not sure yet. In the payload structure, besides the Auth0 connection ID, I need to pass the new client ID, new user's email, and new user's password. Any document reference for the hook "AmeliaBookingAddedBeforeNotify" that I look up please?

    Again, really appreciate your support on this, Aleksandar.

    Kind regards,

    Abhijeet Deshpande 

  •  2,572
    Aleksandar replied

    Hello Abhijeet

    Unfortunately, we don't have any documentation for the hook. The payload contains the entire booking, and in it, there's customer info:

    booking.customer

    We've added this hook to our next update, so when the WP user is created (when a customer books an appointment, and "Automatically create Amelia Customer User" is enabled in Amelia Settings/Roles/Customer), it will contain the customer's data as well.

    The new update should roll out on Monday.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Abhijeet Deshpande replied

    Thank you Aleksandar. 

    For now, I have decided to use WooCommerce with Amelia and am considering to register custom endpoint for Amelia Customer Panel on WooCommerce My Account Dashboard - that way I can continue to use the familiar Woo-Auth0 integration approach (edit: please see question 2 below). 

    If you do not mind, I have two related questions - 

    Question 1

    When using Amelia with WooCommerce, should I enable the option "Automatically create Amelia Customer User" in Amelia Settings/Roles/Customer? 

    OR 

    When using Amelia with WooCommerce, does WooCommerce create a Customer Account with a standard Woo Customer role and I should  not enable the Amelia option "Automatically create Amelia Customer User" in Amelia Settings/Roles/Customer)?

    EDIT | Question 2 | WooCommerce Endpoint for Amelia Customer Panel 

    I tested Amelia Customer Panel (with a shortcode) as a WooCommerce endpoint under My Account Dashboard so I could use the familiar Woo-Auth0 integration approach. Here the Require Password for Login option for Amelia Customer Panel is disabled. But, Amelia still shows the "Send Access Link" screen on the frontend - please see the screengrab. How can I make Amelia Customer Panel display without any authentication in this scenario?

    Appreciate your guidance please. 

    Kind regards,

  •  2,572
    Aleksandar replied

    Hello Abhijeet

    1. In order to allow existing WordPress users to log both into WordPress (or WooCommerce, or some membership plugin) and Amelia using the same credentials, customers and employees in Amelia need to have "Amelia Customer" or "Amelia Employee" user role assigned to them. If there's a WordPress user created, but they don't yet have anything purchased through Amelia, you need to enable "Automatically create Amelia Customer user" in Amelia Settings/Roles/Customer, and then - after they log into their WordPress user, once they land on Amelia's booking page, their details will already be populated, and once they purchase the appointment, they'll be able to visit the Amelia Customer Panel without logging in (since they're already logged in as a WordPress user). 

    Please take a look at our video about this: https://youtu.be/nm7f7RDSYow

    2. If you configure the plugin as described under #1, as soon as the customer logs into WooCommerce, they'll automatically be logged into the panel as well, so this "Send access link" will not appear.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Abhijeet Deshpande replied

    Thank you Aleksandar. 

    That video was really helpful to put things in perspective.

    Kind regards,

  •  2,572
    Aleksandar replied

    You're welcome, Abhijeet

    Glad I could be of assistance.

    If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables