Reserve services based on user role

For a custom project, I need to manage cost of services based on user role.

Here the case :

  1. A basic user can reserve only paid services
  2. A "VIP" role user has tokens that he can use for certain services or must pay for others

In my mind I thought of two solutions :

  1. Create a conditional cost based on role : € or "Tokens" (btw"Tokens" seems to be not available as supported currency).
  2. Create all services (1 free version, 1 paid version) and hide/show services bases on user's role. Finally, use Woocommerce integration for specific task after payment (remove used tokens on "tokens" user meta key).

 

Is either of these solutions feasible please?

If not, have you another way to manage my case please?

0

Comments

3 comments
Date Votes
  • Hello Nicolas,

    Please check our Bookly Customer Groups (Add-on): https://codecanyon.net/item/bookly-customer-groups-addon/21344290

    This add-on was designed specifically for organising clients into groups and setting unique limitations.

    0
  • Thanks for your feedback!

     

    Seems to be a good solution but in my case, I can't add role manualy, it should be automated.
    I use Woocommerce to let my customer choose which plan he wants to subscribe, so after payment, I need to change the user's role with the right plan's label (automaticly).

    With Woocommerce, I can set a specific PHP function after payment, my idea is to make an Bookly API call in same time to change the user's role.

    Is this the right way ? Can I use this API : https://wpintegrate.com/product/bookly-cred-rest-api-operations/ with the customer group plugin ?

    If I have to pay this customer group plugin and this API plugin, I need to be sure what I want to do is doable.

    0
  • Hello Nicolas,

    Please note that the mentioned plugin was not developed by our team. We are unaware of its quality and functionality, and we do not provide support for third-party integrations.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post