• Resolved nightfoxen

    (@nightfoxen)


    I am working on a setup with yith + woocommerce. and I would like to move away from yith into woocommerce subscription gateway plugin. can you tell me if this functionality exists within your code since YITH does not have it at all :)?


    Old message on yith forums
    In short:

    A user buys a subscription, the user roles are flushed, new role added. (Good).

    The roles are all flushed from the user account (Upon buying a new subscription) in our code.

    Now inside yith, when user roles are flushed and the new role added(subscription) the old order_id->subscription_id isnt cancelled, we would like the subscription to be cancelled when the corresponding user role is gone. we thought this would be a feature in your plugin?

    Any help is appreciated, im fairly new with this so im trying to understand.

    I have tried to code some of it myself.

    Gist:

    https://gist.github.com/xAirx/762f6ae2441d7bb79ade74bd641c8b47

    • This topic was modified 6 years, 3 months ago by nightfoxen.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooSubGate – Cancel subscription -> Delete corresponding user role. & reverse’ is closed to new replies.