Support » Plugin: YITH Automatic Role Changer for WooCommerce » Works for Gain but not for Switch

  • Resolved Zambu


    The plug-in works fine for me when I set a rule to GAIN Customer role (i.e. the user then has two roles, customer and subscriber).

    But when I delete that rule and try to set a new rule to SWITCH from subscriber to customer, then something breaks…I am not able to save the rule. Clicking “save rule” does nothing. Reloading the page does nothing. The rule does not get saved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Zambu


    Oooo, figured out a cheesy workaround:

    -Create the rule first based on GAIN, then click save rule.
    -Then open that rule and edit it to become a SWITCH rule, then click save rule.


    Thread Starter Zambu


    FYI, I am using your plug-in to accomplish a two-step goal.

    I want to give access to certain content ONLY to customers that have bought something from me. So, I use your plug-in to switch a “subscriber” to a “customer” once they have purchased something. (I only have three products, so I make three switch rules, one for each product…I wish there was a choice to select “All products” in the rule setting).

    Then I use another plug-in called User Access Manager to only allow people in the Customer GROUP to view POSTS (as opposed to pages). Admission into the Customer Group is automatic based on a user’s ROLE being “customer” (which they get automatically from your role changer once they buy something).

    So then I put all restricted content onto the site as POSTS rather than PAGES. Only Customer Group members (i.e. those with customer role) can view POSTS. Everyone can view PAGES.

    A little convoluted and hacky, I know, but it works!

    Plugin Author YITHEMES


    Hi @thomasw98!

    I’m glad the plugin is useful to you.
    Thank you for pointing out this problem to us. We have found the source of this issue. It will be fixed in the next version of the plugin.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Works for Gain but not for Switch’ is closed to new replies.