Remove badge from user when subscription is cancelled.

I am needing an automatic way to remove a badge from a user when they cancel their payment plan.

I desperately need this as well. Tried using the removeMembers( ) function for the badges but the Velo reference doesn’t provide an example, so I tried making it work with myself with the limited Javascript I know and it wouldn’t make it work. What strikes me as odd is that WiX has an automation for assigning a badge to a member on pricing plan purchase, and has another automation category for on pricing plan cancellation, but it doesn’t have an option in the automations for removing a specific badge at all. What gives WiX? This seems like a no-brainer and should seemingly be an easy thing for you to add to the automations!

You do not remove BADGE from USER, instead you remove USER from BADGE.

https://www.wix.com/velo/reference/wix-members-backend/badges/removemembers

Yes, I realize that. But it still does not work, do you have an example? Regardless, my point was that this is something simple which should be an option in automations under On Pricing Plan Canceled, especially considering you can add a member to a badge On Pricing Plan Purchase. So again, it makes no sense why WiX hasn’t added this to automations and instead requires you to understand Java and build backend code as a work-around to make this happen, which, even if it did work, is not something everyone can easily do.

I have played around with roles, badges, logins and all that stuff a long while ago.
But this site still exists, to make some testings…

https://russian-dima.wixsite.com/login-system/vnbadgemgm

There you will be able to use an example Login-System which uses BADGES and ROLES, fully custom-coded.

More informations about it you maybe will find in one of my numerous posts about my old little LOGIN-SYSTEM-PROJECT…

  1. https://community.wix.com/velo/forum/coding-with-velo/interval-problem

  2. https://community.wix.com/velo/forum/coding-with-velo/generating-an-self-extracting-running-installer-possible-in-js

  3. https://community.wix.com/velo/forum/coding-with-velo/how-to-differ-between-wrong-password-wrong-email