Exporting Woocommerce Subscriptions ‘next_payment_date’

Client of mine has a fitness club with a membership site setup with WooCommerce Subscriptions. She was looking for an easy way to get a list of active members, emails and when their current subscription was up. We have Groups, Groups WooCommerce, Groups Restrict Categories and this at our disposal now.

Looking through the code, it’d be nice for a WooCommerce Subscriptions check thrown in to grab user info such as:
next_payment_date
last_payment_date
trial_expiry_date
end_date
start_date
renewal_order_count

I found reference to these variables in “plugins/woocommerce-subscriptions/classes/class-wc-subscriptions-list-table.php” after finding the ‘next_payment_date’ in the my-account page.

If I played with it long enough I might be able to figure it out, but my php skills are amateur at best.

Just getting the info onto a page (restricted with Groups Restrict Categories of course!) is all I need, so if you guys have some quick suggestions, It’d be appreciated. It would just be nice to export into spreadsheet format like she asked for initially but anything’s better than flying blind like she has been doing for god knows how long…

One Response to Exporting Woocommerce Subscriptions ‘next_payment_date’

  1. antonio May 30, 2015 at 8:03 am #

    Hi Raymond,
    I have not tried it, but this plugin seems to do it.
    Regards,
    Antonio B.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share