Okay
  Public Ticket #2807255
MemberPress Integration
Closed

Comments

  • EY3 started the conversation

    I am interested in using Amelia for a new site offering fitness training workshops. I have a few questions before purchasing:

    - Can I link/associate each of the user types (manager, employee, customer) to a Wordpress user in different roles, who can login independently?

    - If yes, can I then use MemberPress to manage these roles and restrict various pages to these user types?

    - Is the codebase set up to use Wordpress hooks and filters so that I can make customisations, trigger various custom actions, use php to get a list of all customers associated with a certain employee, etc?

  • [deleted] replied

    Hi EY3

    Thank you for reaching out to us.

    Unfortunately, Amelia doesn't have any native integration with any Membership plugin.

    One of our customers told us he managed to do something with MemberPress, though, and I'll copy his comment here:

    I use memberpress as membership plugin. Memberpress has an addon to link my membership levels to any wordpress user role. So I have linked my levels to the Amelia Customer user role. So each time a member sign up, also assigns the member to Amelia Customer. During the first appointment, all fields are grayed out since Amelia recognizes them as existing customer! This is perfect for me.  You may want to share this technique with others that want similar solution (even with other membership plugin).

     You can also change the capabilities of user roles, by installing the User Role Editor plugin for WordPress.

    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.