• Resolved dataroots

    (@dataroots)


    Hi Matt,

    First of all, thanks for creating and maintaining this wonderful plugin. It is a life saver!

    I am in the process of setting up a website that will use your plugin in combination with Woocommerce Subscriptions and Woocommerce Memberships. Setting up subscriptions and memberships in combination with your plugin works pretty well. The only issue we’re facing is when a customer cancels his subscription or membership. Canceling a subscription, does not set the initial Woocommerce order to the “cancelled” status, so after cancellation the customer will still have access to the post. Is there a way for the plugin to take the subscription status into consideration?

    Thanks so much!

    Noud

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    The plugin is not designed to do that, but you could probably knock that out fairly easily using either hooks when user cancels, or updating code on plugin that checks for product purchased.

    1.) You could look into the hook woocommerce_subscription_status_changed and the write a function to then remove the order

    2.) In the current plugin the function checkForProduct() is what looks to see if user purchased product. You could add more code in there to then look at the active memberships. using wc_memberships_get_user_memberships() and see if they have an active member and puchased product, if not then show paywall.

    Thread Starter dataroots

    (@dataroots)

    Hi Matt,

    thanks for your quick response and guide me into the right direction. I really appreciate it. Most likely it will be a function to automatically cancel the order after the user or admin cancels the subscription.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce subscriptions and memberships’ is closed to new replies.