• Resolved ZLC

    (@kindnessville)


    I have an online program that allows users 45 days to access the content but not from the date of purchase but rather from a certain day in the future (so adding a certain number of days access in the WooCommerce plugin won’t work). Is there a way to set the expiration date of a group universally?

    So an example: On February 15, I would like the group “Online Program” to be removed from all Users who have this group in their Groups field, just as if I had come by and deleted them manually.

    Is this possible? Thank you!

    • This topic was modified 7 years, 7 months ago by ZLC.

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

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

    (@proaktion)

    Hi,

    If this is still relevant for you, the Groups WooCommerce integration can help with that as it allows to schedule expiration – see the section on User Profiles on https://docs.woocommerce.com/document/groups-woocommerce/settings/#section-7

    Cheers

    Thread Starter ZLC

    (@kindnessville)

    Thank you, Kento. Unfortunately, when I enable this setting, I receive the following message under the table to edit memberships for the user:

    Fatal error: Uncaught Error: Call to undefined method WC_Subscriptions_Manager::get_users_subscriptions() in /home1/kindneu6/public_html/alexandermilljr/wp-content/plugins/groups-woocommerce/lib/views/class-groups-ws-subscriptions-table-renderer.php:106 Stack trace: #0 /home1/kindneu6/public_html/alexandermilljr/wp-content/plugins/groups-woocommerce/lib/admin/class-groups-ws-user.php(100): Groups_WS_Subscriptions_Table_Renderer::render(Array, NULL) #1 /home1/kindneu6/public_html/alexandermilljr/wp-content/plugins/groups-woocommerce/lib/admin/class-groups-ws-user.php(77): Groups_WS_User::show_subscriptions(Object(WP_User)) #2 /home1/kindneu6/public_html/alexandermilljr/wp-includes/class-wp-hook.php(286): Groups_WS_User::edit_user_profile(Object(WP_User)) #3 /home1/kindneu6/public_html/alexandermilljr/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /home1/kindneu6/public_html/alexandermilljr/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 /home1/kindneu6/public_html/alexandermilljr/wp-ad in /home1/kindneu6/public_html/alexandermilljr/wp-content/plugins/groups-woocommerce/lib/views/class-groups-ws-subscriptions-table-renderer.php on line 106

    This error line prevents me from seeing anything else on the Edit User page, including the button to “Save.”

    I wonder if there’s a fix for this.

    Thank you again!

    Screenshot: https://www.dropbox.com/s/gr7l5z3p19nfm7y/Screen%20Shot%202019-03-12%20at%2010.12.50%20AM.png?dl=0

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Schedule a date for group expiration’ is closed to new replies.