• Resolved aiosa

    (@aiosa)


    Hello,

    we are using woocommerce that triggers the pms subscription. Although the interaction works well, we also need to perform custom actions on event hooks. The problem is that activation through woocommerce does not include proper data in the hook, and the action thus fails. Other events seem to be fine.

    We are listening to pms_member_subscription_insert, pms_member_subscription_update, pms_member_subscription_delete, pms_abandon_member_subscription_successful. Actions fired from within the plugin (expiration…) work well, hovewer, wordpress activation just does not include proper data.

    (
    [expiration_date] => 2023-03-03 14:08:11
    [billing_next_payment] =>
    [status] => active
    )

    This and the subscription ID is basically all I can get. Trying to access the subscription object via pms_get_member_subscription returns almost empty object (equals to the third argument in update hook).

    I would need to know which plan the subscription includes, this data is missing. Looks like a bug IMHO, the plan must be known at this point.

    Thank you for any help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @aiosa,

    Thank you for letting us know.

    We will investigate this and come back with an answer.

    Best regards,

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @aiosa,

    I’ve created a task regarding this and forwarded it to our development team so that they can investigate this, once I have an answer from them I will come back with a message.

    Best regards,

    Thread Starter aiosa

    (@aiosa)

    Just a follow-up with more info:

    we are using WooCommerce Subscriptions that manage the subscription and the monthly renewal routine, WooCommerce Product Bundles and WooCommerce All Products For Subscriptions that enable subscription bunling. WC Subscriptions orchestrate PMS according to the subscription state, because user roles are not controllable by woocommerce. It works when the user is created along with the order, but when an existing user crates a new order, the data is missing there. But the data is there in the plan after we view it so I guess the action hook is fired before the data gets propagated to PMS.

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @aiosa,

    We just want to let you know that with the latest version of Paid Member Subscriptions 2.8.8, all the needed information regarding the subscription plan is accessible when using the PMS hooks.

    Best regards,

    Thread Starter aiosa

    (@aiosa)

    Thank you for the fix!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Events with woocommerce integration’ is closed to new replies.