Automation to add members to member role

Request:
We need to be able to automatically add a site member to a member role when a specific product is purchased. Currently, we can add a badge and label to a customer but we cannot add them to a member role.

Workaround:
None

Use Case:
Sometimes when a member purchases a product, they may gain access to previously restricted pages. Being able to automatically grant access would improve customer service and completely remove the waiting period they current experience to gain access to these pages.

Workaround: https://www.wix.com/velo/reference/wix-users-backend/badges-obj/introduction

Velo again :slight_smile:

For reference for anyone else trying to do this, the link to assign roles is https://www.wix.com/velo/reference/wix-users-backend/roles-obj/assignrole .

I don’t see a way to trigger the backend code for assigning a role when a store order goes through. Again, we would need to see the specific product(s) that was ordered and assign roles based on that.