Groups For WooCommerce:

Sell Memberships with Groups and WooCommerce

Groups WooCommerce grants memberships based on products. It automatically assigns a customer to one or more groups based on the products ordered.

This extension allows you to sell Unlimited Memberships and Time-limited Memberships, allowing your customers to access restricted resources during the duration of their group membership.