Okay
  Public Ticket #2404948
User REgistrations
Closed

Comments

  •  5
    Aidan Hayes started the conversation

    Hello

    I have a learndash course plugin for online courses. When a user creates a new account to register for a new course they are then unable to login to Amelia after making a successfull booking.

    So a brand new user comes to my website:

    They have not existing Amelia Customer , No Learndash account an no wordpress user exists.

    1. They Enrol in new learndash course and are prompted to register = success

    2. Wordpress user account is automatially created

    3. If that User then decides to make a booking via amelia this is successfull and an amelia customer is created. But when cheking the properties it is not associated to any wordpress account

    4. So when the user then goes to my customer portal and login to amelia so they can see their booking, the login fails http://www.thechangemovement.com.au/customer/


    You can test this by enrolling into my free course 

    http://www.thechangemovement.com.au/courses/free-mini-classcrushing-stress-the-overthinking-mind


    And then make a booking here (payment is set to onsite)

    http://www.thechangemovement.com.au/holographic-kinetics/


    And then try to loginto Amelia here

    http://www.thechangemovement.com.au/customer/

    Regards

    thanks

    Aidan

  • [deleted] replied

    Hello Aidan, 

    Apologies for replying late, we are not working on weekends. 

    Amelia customers can access the back-end of WordPress if they have a WP user with the Amelia customer role, so if the option Automatically create Amelia Customer user  is enabled in Amelia -> Settings -> Roles settings -> Customer when they book a WP user with Amelia customer will be created and connected to this customer in Amelia. 

    In your case, this is a connection between Amelia and that other plugin's in your WP, and the users have a user role of that plugin, I assume? There isn't a possibility to integrate data of that plugin with Amelia's data, unfortunately, but could you try adding both that user role and Amelia customer user role to the same user in WP using a plugin for that purpose like User role editor?

    In Amelia, when someone is logged in to WordPress their information will be filled in in the Amelia booking form and they will be connected to this WP user, but this is only for the default WP user roles. If that plugin has their own user roles or adds some permissions/access,  blocks access to the back-end of WP, the cause of the issue may be coming from there.

  •  5
    Danny Mayer replied

    I have a website setup similar to Aiden in which members need to login to have access to their dashboard which contains LearnDash courses. By default the user is registered as a "subscriber". I just changed one of my subscriber level accounts to a "amelia customer" and it still shows a form stating "Enter your account email address and we will send you access link to your inbox." Although Require password for login is disabled.

    Is there a way to by pass this message and just show the content within this shortcode [ameliacustomerpanel] when a wp user is already logged in?

  •  3
    maraja replied

    I have a similar problem. I use woocommerce to register and login users because I need to sell many services in addition to appointments and I have added a new endpoint to woocommerce menu that should open the wpamelia customer panel. If an user (registered on site with woocommerce client role and manually assigned to Amelia Customer role) logs in woocommerce dashboard he can see his orders, change his addresses and account details, etc... but he cannot see wpamelia customer panel because it is prevented by a form that requires user and password although the user is already logged in. Also if I insert again the user's login credentials in wpamelia access form they do not work, and "Incorrect email or password" message is displaying. It is possible to show amelia customer panel content (even without booked appointments) when a wp user is already logged in?

  •  5
    Danny Mayer replied

    What Maraja is describing is exactly what's needed. The ability to show the customer panel content when any user is logged in, regardless if they have any scheduled appointments. 

  •  5
    Aidan Hayes replied

    Hi Marija

    Thanks for the tip with user role editor plug in.  I set it to also make the default registered account an amelia customer. Now if I register a new account via WP admin this works but a registered user account from learndash does not get assigned the amelia customer role. It ignores the role editor plug in. When I log in with a brand new registered user created from learndash, I do not see the Amelia login form in the customer portal. When I make a booking the info is pre filled out.

    But if I log out from learndash before making the amelia booking I cannot log into the amelia login. My amelia log in is only displayed when i am logged out of wp or learndash. The problem is if user sees the amelia login in and they have not created an account they try to log in with the learnsash registered account.


    So like Maraja indicated we need  to show amelia customer panel content (even without booked appointments) when a wp user is already logged in so it does not ask to log in.

    Thanks

  • [deleted] replied

    Hello Aidan,

    You are welcome. 

    The user roles are probably conflicting between that plugin, learndash, and Amelia. Both user roles give some access/permissions and restrict something else in WordPress so they may be blocking the access/permissions of the other plugin's user roles. Unfortunately issues like conflicts with third party plugins or themes are always possible due to the nature of WP and I can forward this to our developers but we can guarantee that the conflict can be fixed because we don't know the cause of it or the nature of that other plugin. 

    Hello to allsmile.png 

    So, regarding showing the customer panel even if customers don't have appointments in Amelia is not possible unfortunately, because the content of the Customer panel is shown for Customers in Amelia, and if someone don't have any booked appointments in Amelia they are not created as Customers there and no information can be shown about them since there are any. Amelia Customer Panel show information about Amelia Customers not WordPress users. The only reason Customer panel is connected to a WP User is for the login credentials, and if this WP user is connected to a Customer in Amelia to show them their appointments/events in the panel. 

    Danny, if this option Require password for login is disabled, then customers can access the panel only via a link for the Customer panel that is sent in Amelia notifications. When customers click on the link and access the panel a cookie is created and using it they can access the panel (without password). 

    Maraja, if you are trying this 

     Also if I insert again the user's login credentials in wpamelia access form they do not work, and "Incorrect email or password" message is displaying.

    for a user that don't have appointments in Amelia, this is not possible unfortunately, for the reason I explained above.


  •  8
    Kodi Fletcher replied

    It would be really great if there could be a way for wordpress users who are logged in also can see their customer portal.

  • [deleted] replied

    Hello Kodi, 

    They can but only if they book an appointment while logged in to WordPress, so if a WP user books an appointment in Amelia while logged in to WP, that WP user will be connected to the Amelia customer created at that time and then they can access the Customer panel and WP with the same login.

     There isn't a possibility to connect Amelia customer to WP users using email address or some other info from their WP user profile, unfortunately. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help.