Groups WooCommerce

Groups WooCommerce is a WordPress plugin that allows to sell memberships with Groups and WooCommerce.

Selling 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. Memberships can be sold through normal products where membership is granted for an unlimited time through one-time payments, or through subscriptions where the memberships lasts as long as the subscription is active, based on recurring payments and an optional setup fee. If you want to charge a monthly subscription fee, the WooCommerce Subscriptions plugin is required, which adds a new subscription product type. Groups WooCommerce controls the memberships for the duration of the subscriptions.

WordPress and Plugin Requirements

To sell memberships with Groups and WooCommerce you need at least WordPress 4.6 and these plugins:

Groups (free) – provides the membership and access control capabilities
WooCommerce (free) – provides the e-commerce system
Groups WooCommerce – allows to sell group memberships through WooCommerce

Optionally, if you want to sell subscriptions with recurring payments, WooCommerce Subscriptions – adds subscription products and recurring payments to WooCommerce.


Comments

692 responses to “Groups WooCommerce”

  1. Hi devs,
    It would be very usefull to have hooks (actions and/or filters) to help insert custom code inside the product groups panel.
    Could you add this in your roadmap ?
    Thanks a lot.

    1. Hi Neo,

      Many thanks for the suggestion, yes we can take that into account. Could you please provide a brief outline of what you would like to insert so we can determine the most appropriate places for those hooks?

      Cheers

      1. For now I would like to insert another group selector for groups the customer will be subscribed to when the product subscription expires. The select would be after the expiration setting fields, so at the end of the panel, but it would be nice to have another hook at the beginning of the panel for different use cases.
        Thanks

        1. Thanks, you will find several actions added in the latest version 2.10.0 which is about to be released. Please check the changelog.txt for the new actions added. I hope that helps!

          Many thanks for working with our tools!

          1. I can’t find the update in my extension list.
            I still have the 2.9.0 version and no update is available, has it been published ?

            1. Sounds like you might need to renew your subscription, please check your active subscriptions and make sure that the one for Groups WooCommerce is up-to-date.

              1. my subscription is active until june 2025

                1. Ok that’s odd, please use https://woocommerce.com/my-account/contact-support/ to reach out to account support

              2. Ok, I have now updated the plugin, but the actions are not at the right place.
                They are outside the panel, so if we insert new options they break the panel template !
                Actions should be inside the panel, just after the div.panel opening tag and just before its closing tag.

                1. Ok I think I see what you mean now, with the actions that have been added, you can render the additional content you want server-side and move it inside the container via DOM manipulation by appending a simple inline script after your container:

                  let a = document.getElementById( 'woocommerce_groups' );
                  let b = document.getElementById( 'my_own_thing' );
                  a.appendChild( b );

                  1. I could use existing woocommerce actions for that. I needed new actions precisely to avoid this trick…

                    1. For now this would be the quickest way, actions that manipulate the content rendered inside the panel server-side would not have any other effect.

  2. I am trying to stop a customer purchasing a product is they are in a particular group.

    I found this code

    /**
    * @snippet Hide Add Cart If Already Purchased - WooCommerce
    * @how-to Get CustomizeWoo.com FREE
    * @author Rodolfo Melogli
    * @compatible WooCommerce 5
    * @donate $9 https://businessbloomer.com/bloomer-armada/
    */

    add_filter( 'woocommerce_is_purchasable', 'bbloomer_hide_add_cart_if_already_purchased', 9999, 2 );

    function bbloomer_hide_add_cart_if_already_purchased( $is_purchasable, $product ) {
    if ( wc_customer_bought_product( '', get_current_user_id(), $product->get_id() ) ) {
    $is_purchasable = false;
    }
    return $is_purchasable;
    }

    I need to quality the IF to if they bought the product AND are in a specific group called Member

    Can you help me?

    thanks

    1. Hi Anna,

      You could use the example as shown under Does the current user belong to the Foobar group? and make your return statement:

      return $is_purchaseable && !$is_a_member;

      Cheers!

  3. Kelsey Avatar

    Hi there!

    I am just inquiring about compatibility. Will this plugin work with other monthly or weekly subscription plugins or just Woo Commerce made ones?

    Cheers,
    Kelsey

    1. Hi Kelsey,

      Thanks for asking! It integrates with WooCommerce Subscriptions, we do not guarantee that it works with other subscription plugins.

      Cheers

      1. Hi Kento!

        I ended up purchasing a few of your plugins thru Woocommerce.
        Groups Woocommerce
        Groups Coupons
        Volume Discounts

        I was wondering, I am struggling getting the volume discounts to function (be shown on the product price in the shop page & product page). I followed the documentation properly. I was hoping to restrict the volume discounts using the groups coupon functionality. Is this possible?

        Cheers,
        Kelsey

        1. Hi Kelsey,

          Great to hear, thanks for using our tools!

          Regarding your questions:

          – getting the volume discounts to function (be shown on the product price in the shop page & product page)

          In the section Product and Page Display Options of the documentation the corresponding options are explained.

          – hoping to restrict the volume discounts using the groups coupon functionality. Is this possible?

          Yes and that’s a great combination when you want to offer volume discounts to group members. Both extensions integrate nicely together, so you can use the group-membership restrictions as described in the documentation of the Group Coupons extension together with volume discounts.

          If you need specific help with certain combinations, please make sure to submit a support request via the official WooCommerce extension support channel where our team will help you further.

          Cheers

          1. Hey Kento!

            I reread that documentation. And even with all of the options for visibility turned on, the coupon is not automatically applying. Is it best to reach out thru woocommerce then?

            Cheers,
            Kelsey

            1. Hi there Kelsey!

              The visibility options are independent from the automatic application. You’d have to make sure to enable “Apply automatically” under the Volume Discount tab. If you have that checked already and it does not apply automatically, it might be because the conditions are not fulfilled. In that case, I would recommend to reach out to our support team by creating a ticket, they’ll be able to review the coupons you are setting up and make appropriate recommendations.

              Cheers!

    2. Thanks

  4. Hi there… I’m looking for a way to sell access to BuddyPress groups and just wondering if this product could be configured to work with Buddypress? As a reasonably competent developer, I’d be happy to do some customisation to make this possible if you think it’s even remotely feasible? Or perhaps there would be a way to make it work with your own Groups plugin as an “intermediary” somehow.

    Any thoughts would be much appreciated. With many thanks in advance.
    Nik

    1. Hi Nik,

      Thanks for asking, I think it’s possible and would require little extra work. Here’s how I would approach it:

      Use Groups WooCommerce to sell group memberships, this also integrates with WooCommerce Subscriptions which I think would be recommendable for what you are trying to achieve.

      Take into account that BuddyPress groups and Groups’ groups are not related nor mapped in any specific way. I would simply set up the same groups in BuddyPress and in Groups, use the same names for clarity. Use Groups to protect access to the corresponding BuddyPress group pages by customizing the templates and using Groups’ API to restrict the content visibility. You can find examples here and the Groups Twenty Twenty provides an example of how you do content protection within templates with Groups.

      You would simply implement the protection in the template based on what BuddyPress group page is requested, ask Groups whether the current user belongs to the same group in Groups and show the content if he’s a member.

      The nice thing about this combination is that you get all the advanced access restriction capabilities from Groups, including shortcodes and blocks.

      I hope this gives you a good idea of how you could approach it.

      Cheers!

      1. Hi Kento

        Thank you so much for such a helpful response. As it happens, I’m currently testing a plugin which claims to be specifically designed to accept payments for access to Buddypress groups but if that doesn’t work out, I’ll definitely be coming back to re-read/re-assess your suggestions.

        Warm regards
        Nik

        1. Hi Nik,

          You’re very welcome. Feel free to comment on your experience if you’d like to share later on.

          Cheers

        2. Anesu Gozo Avatar
          Anesu Gozo

          What is the name of the plugin, please 🥺 share

  5. Hello – I can’t find a pre-Sales contact for asking questions, so I hope this will be an ok place to do it.

    Task Goals:

    My website is built with Avada and WooCommerce. Sales are managed with PayPal. I want to sell access to a product that is a (Vimeo) video. The video is embedded on a page on the website. The customer will pay for the video and then receive restricted access to a Page where the video can be streamed. Using Vimeo I can restrict playing of the video to my domain. Only people who have paid for the video can access the page where it is embedded.

    1. Can I use “Groups for WooCommerce” to achieve this?
    2. Are there plugins in addition to “Groups for WooCommerce” that I need to do this, for example “Groups PayPal”?
    3. If someone shares the URL to the restricted page, what happens if someone navigates to that URL?
    4. Do you have a free trial period that would allow me to try out the needed plugin(s) to see if it would support my needs?

    Thank you!

    1. Hi!

      Based on what you describe, it seems that you would have a suitable configuration along with Groups WooCommerce. You would not need Groups PayPal in addition as you’re already using WooCommerce. You might want to consider WooCommerce Subscriptions which integrates appropriately with Groups WooCommerce. Regarding URLs, even if shared, as long as the pages are protected by Groups, plain visitors or non-members won’t be able to see their content. There is no trial period per se, but the refund policy on WooCommerce.com gives you plenty of flexibility to evaluate the combination.

      Cheers

  6. We bought this and ran into an issue we hadn’t thought of: Sure, a person can basically buy access by having a user who’s assigned the group in question. But is there a way to let a customer buy multiples of the same subscription to forward to others? Like a dad for his family, one of a group of friends for all of them at once or a company for their employees?

    1. Hi,

      Good question, we’re taking this kind of scenario into account for enhancements, but you won’t be able to set up a super-account that would be able to manage sub-accounts with Groups yet. These would all have to be individual accounts for now.

      Cheers

  7. Hello,

    Is there any way to integrate MailChimp with this plugin? It’s possible with WooCommerce Memberships (https://docs.woocommerce.com/document/mailchimp-for-woocommerce-memberships/). So, I’m wondering if this is possible, being worked on, or even a planned future feature?

    I would have contacted you through WooCommerce support ticket system, but I can’t submit a ticket at the moment for some reason.

    Thanks for any information!

    1. Hi Kale,

      Thanks for your suggestion! We don’t have any immediate plans for this at the moment, but I think it would be great to have. I’ve added it to our features suggestions to take into account.

      Cheers

  8. Hello, when customer buy membership with Groups WooCommerce plugin, is it possible extend current membership? example: “customer membership ends march 2021 and he wants to buy new 12-month in November 2020 (Black Friday sales,) new membership will start limitedly in November – not extend current subscription, customer will lose 4 month of old subscription”

    1. Hi Jevgeni,

      The memberships are controlled automatically and can also be modified manually. If you have a look at the documentation page here you will find details under the heading “User Profiles” https://docs.woocommerce.com/document/groups-woocommerce/settings/#section-7

      Cheers

  9. I can use this too! Thanks!

    1. That’s great to hear Liz! I’m very glad that this helps.

  10. One more quick question. I am using one of my Woocommerce subscription products to function as a payment plan. I would like the customer to have unlimited access to the content rather than expire after the subscription expires. Is there a function I can add to disable this expiration action for this specific product?

    Thanks again! It looks like this plugin is going to work exactly as I need it!

    1. I’m adding a filter that you can use for that, I think that’s the easiest solution. I’ll follow up shortly when it’s done. Thanks for the suggestion!

      1. Done – I’ve created this little plugin Groups WooCommerce Keep Expired Subscriptions which will work with Groups WooCommerce version 1.12.1.

  11. This is a pre-purchase question. I would like to create this flow:

    1. Customer pays for product.
    2. Is added to group for that product
    3. Is asked to create a username and password to access the virtual product page (does this happen on the Woocommerce checkout page?)
    4. Once that is created, customer is redirected to product page to either login or access content.

    Is this flow possible? If so, what are the steps to enable it?

    Many thanks!

    1. Hi Alex,

      The way this works with WooCommerce is almost as you describe, simply the order is different: 3, 1, 2

      So the cusomer would add the product that grants access to a group to the cart, go to checkout where the customer creates the user account and then proceeds to make the payment. When the payment is confirmed, the user is added to the group(s).

      For #4 the process is a bit different as there won’t be an immediate redirect to the protected content.

      Documentation resources you will find interesting:
      http://docs.itthinx.com/document/groups/access-control/
      https://docs.woocommerce.com/document/groups-woocommerce/

      Cheers

      1. Thank you so much. I purchased the extension. I appreciate your help, Kento!

        1. That’s great Alex, thank you very much for supporting our work through that!

          1. Alex Mill Avatar
            Alex Mill

            Hi Kento,

            I’m wondering if there’s a way I can add a customer to 2 different groups upon purchase—each with their own duration. I know I can add the customer to 2 different groups, but the only option is to have the same duration. Is there a special function I can add that will achieve this?

            Thanks so much for your assistance!

            1. Hi Alex,

              Thanks for asking, the duration is common for all groups of a product so this isn’t possible.

              Cheers

              1. Hi Kento,

                Is it possible to add a customer to another group once it expires automatically? So remove from one group and add to another?

                Thank you!

                1. Hi Alex,

                  You could achieve that with a customized function that hooks on the groups_deleted_user_group action which is documented here http://docs.itthinx.com/document/groups/api/actions/ – you would have to implement adding the user to the desired group when the account is removed from the first group.

                  Cheers

  12. I have groups, groups404, and groups woocomerce one of my members recently got this: below, I was able to duplicate the below error but I have no idea if this is a theme update issue or a plugin problem any ideas

    Fatal error: Uncaught exception ‘Exception’ with message ‘Element must be mapped in system’ in /home/thrzerd9/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php:1426 Stack trace: #0 /home/thrzerd9/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1419): Vc_Shortcodes_Manager->getElementClass(‘vc_cta_button2’) #1 [internal function]: vc_do_shortcode(Array, ”, ‘vc_cta_button2’) #2 /home/thrzerd9/public_html/wp-includes/shortcodes.php(345): call_user_func(‘vc_do_shortcode’, Array, ”, ‘vc_cta_button2’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/thrzerd9/public_html/wp-includes/shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(vc_cta…’, ‘do_shortcode_ta…’, ‘[vc_cta_button2…’) #5 /home/thrzerd9/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(275): do_shortcode(‘[vc_cta_button2…’) #6 /home/thrzerd9/public_html/wp-content/themes/dt-the7/inc/shortcodes/vc_templates/vc_column.php(51): wpb_js_remove_wpautop(‘[vc_cta_button2…’ in /home/thrzerd9/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php on line 1426

    1. antonio Avatar
      antonio

      Hi Philip,
      According with this log, it seems a problem with the js_composer (Visual Composer) plugin, not with our plugin.
      Kind Regards,
      Antonio B.

  13. Gianmaria Avatar
    Gianmaria

    By the way, I also bought this plugin.
    I exported groups from a sitoweb.
    But if I try to import groups from the following error:

    Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/freechat/public_html/wp-content/plugins/groups/lib/admin/class-groups-admin-user-profile.php:106 Stack trace: #0 /home/freechat/public_html/wp-includes/class-wp-hook.php(298): Groups_Admin_User_Profile::user_register(1009) #1 /home/freechat/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #2 /home/freechat/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/freechat/public_html/wp-includes/user.php(1707): do_action(‘user_register’, 1009) #4 /home/freechat/public_html/wp-content/plugins/groups-import-export/lib/core/class-groups-user-import.php(401): wp_insert_user(Array) #5 /home/freechat/public_html/wp-content/plugins/groups-import-export/lib/core/class-groups-user-import.php(287): Groups_User_Import::insert_user(Array) #6 /home/freechat/public_html/wp-content/plugins/groups-import-export/lib/core/class-groups-user-import.php(78): Groups_User_Import::import_users(false) #7 /home/f in /home/freechat/public_html/wp-content/plugins/groups/lib/admin/class-groups-admin-user-profile.php on line 106

    1. antonio Avatar
      antonio

      Hi Gianmaria,
      Maybe there is a problem with the file to import. If you want, you can send me the file to antonio[at]itthinx[dot]com indicating this conversation, and I’ll have a look at this.
      For support questions, please open a topic on the forums.
      Kind Regards,
      Antonio B.

  14. Gianmaria delfino Avatar
    Gianmaria delfino

    But I have a question, do I have to transfer all users from a wordpres site to another? Can I also transfer all the groups and capabilities?
    Can you tell me how to do it?

    1. antonio Avatar
      antonio

      Hi Gianmaria,
      Please have a look at Groups Import Export plugin.
      Kind Regards,
      Antonio B.

  15. Hi Itthinx Team 🙂

    I send you several message about my problem but I’ve no answer since january…

    I do not use any more your plugin ” groups import export ” which I had bought since a few months because I did not any more succeed in making exports.

    I have just understood why, and maybe that it will allow me to use it and thus to renew…
    I use a plugin which manages fields author, this plugin it is WP Author Box Pro that I also bought : https://codecanyon.net/item/wp-author-box/6815678

    The problem it is because it generates fields for every user and I have thousands of users.
    Then when I open ” groups export ” and when I click “export” there is nothing, the page reloads but I can download nothing.
    On the other hand, if I delete approximately half of the fields ” wpautbox ” which you can see on my screenshot then I can again download the export.

    Then I tried to make “CRTL+A” for all them select and them delete but it creates an error of Javascript script.
    Impossible thus!

    I have to delete them one by one and to delete half I need more than one hour.
    Would you have a solution to remove these fields quickly? And so be able to use your plugin?

    see here : https://www.dropbox.com/s/mq0ip3xzsn1kbwz/Capture%20d%E2%80%99%C3%A9cran%202017-01-08%20%C3%A0%2013.50.31.png?dl=0

    Thank you in advance, beautiful day and best wishes ! 🙂
    STANE

    1. antonio Avatar

      Hi stane,
      Have you tried using CTRL to select multiple field ? Then with the Backspace key you can remove these fields.
      Kind Regards,
      Antonio B.

  16. Hello! I have used your plugin successfully for a while, then it stopped adding people to the appropriate group and I cannot figure out why. I am using a Simple Product (virtual). I’ve spent hours trying to find any reason for it to stop working and cannot.

    Would it be possible for you to look at the backend of my site and tell me if there is something I am doing wrong?

    Thanks,
    Liz

    1. antonio Avatar

      Hi Liz,
      Sure, you can send me dashboard admin access to antonio[at]itthinx[dot]com indicating this conversation, and I’ll have a look at your settings.
      Kind Regards,
      Antonio B.

  17. Hi,

    my problem is translation. All groups woocommerce text is displayed in english. How can I translate it into german?
    Regards Thomas

    1. Hi Thomas,

      There is a translation for German included (see the languages folder inside the plugin’s directory). Also a .pot file is included if needed. Can you please check if you see those files?

      Cheers

  18. ok maybe it could work, but I miss knowing how to create, for example, in 1000 password for a particular page on wordpres

    1. Hi,
      really I don’t know if there is any solution with multiple passwords.
      Kind regards,
      Antonio B.

  19. Gianmaria Delfino Avatar
    Gianmaria Delfino

    I’m sorry, I have another question.
    I would like to open a support ticket, but I can not recover my account.

    1. Hi Gianmaria,
      probably you have pruchased the plugin throw the Woocommerce website.
      Kind Regards,
      Antonio B.

  20. on our site there are some restricted areas, accessible only by activation. These areas have been created with the plugin https://wordpress.org/plugins/groups/ http://www.itthinx.com/plugins/groups-woocommerce/ and therefore currently if a customer buys a product on my site, is automatically recognized also for access to protected content. But if the customer buys the same product in the library, it is I who have to turn to manual mode. there is a way to load the activation password for protected areas?
    In this way I could enter the password in the product, and the customer enters the password and enables access to the private area. is there any way?

    hello, you could implement this solution for my site?

    1. Hi Gianmaria,
      there isn’t easy solution for that. As alternative you could create a page with the [groups_join] shortcode as content, and limit the access to this page using the WordPress password protect system. So if I have the password, I can access to this page, and see the join form to join to the group that has access to the product.

      Kind Regards,
      Antonio B.

  21. hello, you could implement this solution for my site?

    1. Hi Gianmaria,
      If you use Woocommerce and Groups, you can use this plugin.
      Kind Regards,
      Antonio B.

  22. on our site there are some restricted areas, accessible only by activation. These areas have been created with the plugin https://wordpress.org/plugins/groups/ http://www.itthinx.com/plugins/groups-woocommerce/ and therefore currently if a customer buys a product on my site, is automatically recognized also for access to protected content. But if the customer buys the same product in the library, it is I who have to turn to manual mode. there is a way to load the activation password for protected areas?
    In this way I could enter the password in the product, and the customer enters the password and enables access to the private area. is there any way?

    1. Hi Gianmaria,
      sorry, there isn’t an option to use passwords to enable access. You can use the Groups API if you need to create a custom solution.
      Kind Regards,
      Antonio B.

      1. Gianmaria Delfino Avatar
        Gianmaria Delfino

        hello, could you help me to make this change?
        of course fee.
        or suggest a programmer who could do this for me.

        1. Hi,
          I have just indicated a few steps that may help you.
          Cheers

  23. Hi,

    Just wondering is it possible to also display group name when I searching a customer by calling “json-search-customers” dropdown?

    Regards,

    1. Hi Jack,
      You could use the ‘woocommerce_json_search_found_customers’ filter using the Groups API.
      Thanks for the suggestion.
      Kind Regards,
      Antonio B.

      1. Hi Antonio,

        Thank you for your reply, I just added few lines but doesn’t seem to return any value please check my code below. Perhaps I put it at the wrong place. Could you please help me with some example?

        foreach ( $customers as $customer ) {
        // use id to check if user is VIP
        $is_a_member = false;
        require_once( ABSPATH . ‘wp-includes/pluggable.php’ );
        if ( $group = Groups_Group::read_by_name( ‘VIP1’ )||$group = Groups_Group::read_by_name( ‘VIP2’ ) ) {
        $is_a_member = Groups_User_Group::read( $customer->ID , $group->group_id );
        }

        // use id as key to return unique array
        $found_customers[$customer->ID] = array(
        ‘id’ => $customer->ID,
        ‘display_name’ => $customer->display_name,
        ‘first_name’ => $customer->first_name,
        ‘last_name’ => $customer->last_name,
        ‘dismember’ => $is_a_member,
        ‘user_email’ => sanitize_email( $customer->user_email ),
        );
        }

        1. Hi Jack,
          if you add this code in your functions.php theme file, this should work (really I have not tested the filter).
          Kind Regards,
          Antonio B.

  24. Just a gentle reminder that all WordPress headings in admin screens have changed from H2 to H1, H3 to H2, etc in version 4.3, back in July 2015. Please consider changing your heading structure so it’s semantically correct.

    For instance, in `lib/admin/class-groups-ws-user.php`, “Group Memberships” & “Groups” should be level H2 headings, not H3. “Edit Memberships” should be level H3 heqding, not H4. There may be other inconsistencies in that file and elsewhere, since I haven’t checked every single file.

    1. antonio Avatar

      Hi Ivan,
      We are working on it.
      Thanks for the suggestion !
      Kind Regards,
      Antonio B.

  25. Can I use WooCommerce Subscriptions and WooCommerce Groups together as follows:

    Customer signs up to take a course on a monthly payment plan (subscription) with a automatic monthly credit card charge.

    Payment 1 assigns customer to Group 1 with access to Section 1 of the course.

    Payment 2 assigns customer to Group 2 with access to Section 2 of the course
    etc

    So in order words, can I set up a Subscription where each payment results in a new group membership added to the customer?

    1. Hi Kath,
      You can not select Groups per payment, but you could create two subscriptions, one for each group.
      Kind Regards,
      Antonio B.

  26. Hi,

    I have a problem with the translation of the duration. My product is defined in french and translated in english. When I change the duration of the subscription the value is not updated in english ?? And the english translation is still in french ?

    http://123gochampion.com/produit/champion-livre-en-ligne/

    Thanks,

    David

    1. Hi David,
      This translation is not relating with Groups plugin. It’s a Woocommerce translation or Woocommerce Susbcription if you are using it.
      Maybe this string is not translated to english, so the system is using the french default system language. You should review the Woocommerce translations.
      Kind Regards,
      Antonio B.

  27. Thank you so much for your response! Is there a specific cron command that is supposed to run?
    We have the capability to create a cron job, but it requires a command.

    We love this plugin and all the capabilities and appreciate your help!

    1. Hi Lori,
      maybe this post can help you.
      Kind Regards,
      Antonio B.

  28. Hi, I set up a product and when the user purchases it, they get added to a group for one month. It is not removing the user from the group when it expires as it should. I’m looking at the date and times and reading the on screen guidance in the users, but it’s clearly past the time that is populated and the member is still in the group. Any suggestions?

    1. Hi Lori,

      This is likely due to cron not running on your site. Please use WP Crontrol to check it.

      Cheers

  29. Peace
    How do I limit the number of users that are connected
    simultaneously on the same user after he bought the parcel
    Thank you

    1. Hi,

      Please have a look at the Prevent Concurrent Logins plugin. It works in general and can’t be limited to groups, but it’s a solution you could use.

      Cheers

  30. We’re experiencing major issues with Groups Woocommerce and Subscriptions version 2.0. Every time we try to manually activate a subscription we’re seeing:

    Notice: Trying to get property of non-object in /home/bionictu/public_html/wp-content/plugins/groups-woocommerce/lib/core/class-groups-ws-handler.php on line 389

    Warning: Cannot modify header information – headers already sent by (output started at /home/bionictu/public_html/wp-content/plugins/groups-woocommerce/lib/core/class-groups-ws-handler.php:389) in /home/bionictu/public_html/wp-includes/pluggable.php on line 1207

    I also get this issue when I try to suspend a subscription:

    Notice: Trying to get property of non-object in /home/bionictu/public_html/wp-content/plugins/groups-woocommerce/lib/core/class-groups-ws-handler.php on line 585

    Warning: Cannot modify header information – headers already sent by (output started at /home/bionictu/public_html/wp-content/plugins/groups-woocommerce/lib/core/class-groups-ws-handler.php:585) in /home/bionictu/public_html/wp-includes/pluggable.php on line 1207

    All debugging has been turned off on our server, so I don’t know why these notices are appearing and breaking our workflow.

    1. Hi ken,
      please be sure the debug in your wp-config.php file is disabled.
      Relating to the warning, please give us your wordpress, woocommerce, woocommerce subscriptions, groups and groups woocommerce versions.
      Kind Regards,
      Antonio B.

  31. Hi

    The latest version of WooCommerce Subscriptions, version 2.0, is a major update – https://docs.woothemes.com/document/subscriptions/upgrade-instructions/. Will your Groups Woocommerce plugin work ok with it, has it been tested?

    Thanks

    Ciaran

    1. Hi Claran,
      yes, it should work fine with the last version. Remember tomake a full backup before update any plugin.
      Kind Regards,
      Antonio B.

  32. Hello, I seem to be having issues where using woocommerce subscriptions and woocommerce groups doesn’t appear to work properly.

    I have groups setup properly with capabilities and whatnot, and I have a subscription product setup (virtual + downloadable so that orders complete immediately after payment)… however, the subscriber is never added to the configured group… They are also not added when an admin manually confirms their order.

    I submitted a ticket on woothemes a few days ago and haven’t heard anything. I really need help and I don’t know who else to contact.

    Please advise.

    1. Hi Rob,
      if you set ‘Processing’ in Woocommerce->Groups, then user are added correctly?
      If you can, please enable wordpress debug and make a subscription purchase.
      To enable debugging, edit your wp-config.php file and replace the following line
      define('WP_DEBUG', false);
      with these lines
      define('WP_DEBUG', true);
      define('WP_DEBUG_LOG', true);

      Also, create a file named debug.log under wp-content folder.
      Kind Regards,
      Antonio B.

  33. Hi,
    I’m trying to restrict one product to users that are not part of group members
    Installed:
    Woocommerce
    Groups
    Groups for Woocommerce (licensed and activated)

    Have several users in group “Members”, and several users NOT part of Members.
    have 4 products, of which product “XYZ” has access restriction set to “Members”.

    Users that are not part of group members, can still see and order product XYZ.
    de-activated and re-activated plugins, no difference.
    what gives?

    Thx,
    Peter

    1. Hi Peter,

      You most probably need to clear the cache.

      Cheers

      1. Yea did that, at the “admin bar” .
        Still the same. the only thing that is restricted in that specific product is the “description” to users in members group. But they can go ahead and order it anyway.

        1. If they can order it then you you either have a conflict with another plugin or the access restrictions are not set up properly. Set the access restrictions on the product: try setting e.g. Distributor in the quick-create box under the Access Restrictions box and then update your product – try with another browser and make sure you’re logged out, you won’t be able to see the product if you don’t belong to the group and you also won’t be able to add it to the cart even though you know the URL used to add it to the cart.

          1. I see what the culprit is.
            I have added this code to functions.php, on a previous recommendation from your team.
            https://github.com/itthinx/groups-excerpts/blob/master/functions.php
            This code shows the visitors my site the title of all the posts in a “recent posts” widget, but when they click on it, they will get a message that they have to become a member.
            However with this code applied, a visitor can order an item that has been restricted access to group “members”. they won’t see the description of the products, but they are able to order the product.
            How can I adjust the code that it will restrict ordering products that are assigned restricted access to group “members” to members only?
            Thank you.
            Peter

            1. Hi Peter,
              you can not do it with this code.
              Maybe Woocommerce Role Purchasable can help you. But this plugin works with roles, not with groups.
              Kind Regards,
              Antonio B.

              1. Thanks for the reply, but the “Woocommerce role purchasable” won’t work for me, since you can not assign “roles” on a product by product bases.
                this is how I want it to work:
                A guest first purchases a “membership”, then they get placed in the “members” group. As part of the members group they now should have access to products with access restrictions set to members.
                It works fine without the “excerpts” code. But with the excerpts code applied, guests can purchase products with access restrictions set to members, without being part of the members group.

                If I remove the excerpts code, it works fine, but then I have the issue with my “recent posts” widget. so I’m stuck.

                1. See my related comment here please. As I’ve explained there, the “groups-excerpts” thing is not a correct solution as it effectively removes protection from posts. It should either be corrected, or the simpler solution is what I’ve indicated in the comment.

  34. Hi team,

    I’ve a stupid question :))

    If I use ” groups for woocommerce ” and ” subscriptions for woocommerce” and I create a product in woocommerce such as:
    – Purchase premium membership for 1 year = addition of the customer to the “premium group”
    – On 1 year later, the customer is removed by the “premium group”

    That all right it is easy.

    But now, let us imagine I create a special product for the faithful members in woocommerce such as:
    – Purchase of a membership in renewal = addition of the customer to the “premium group loyalty” + “premium group”
    – On 1 year later, the customer is removed by the “premium group” and by the “premium group loyalty”

    But I have one day a renewal customer who registers again with another email and who tells me: ” thin I had seen the premium offer loyalty you can add to me to this group, please ?”

    Then how be going to make ” groups for woocommerce ” if I add manually this customer to the group ” premium loyalty ” ?
    At the end of the year when its subscription will be ended, “groups for woocommerce ” goes only removed the member of the group connected to its purchase? Thus he is not going to remove him from the group ” premium loyalty ” in this case ?

    Yes ? I’ve understand ?

    If yes, then how can it be done to add a customer in a group manually but what it is removed from this group at the end of its subscription ?

    Thank you for your information and saddened if I am not clear my English is bad….

    MC

    1. Hi,

      Thanks for asking, it’s a valid question and there’s an answer and documentation to it. Please refer to this documentation page under the heading “Manual Assignments” you will see how a limited membership can be added manually.

      Cheers

  35. Hello,

    I’ve been using Groups WooCommerce for a while now – wonderful product! I was wondering if there was any way to export member information on any users who membership is about to expire (a query I can run that would compare their expiration date to an arbitrary datetime value)? I was mucking around in the DB, but couldn’t seem to find any date/datetime values or an “expiration” (or something equivalent) column. Could you please contact me with some insight into this?

    Again, wonderful plugin!

    1. Hi Duncan,
      if you are using Woocommerce Subscriptions, maybe this post can help you.
      Kind Regards,
      Antonio B.

      1. Hey Antonio,

        Thanks for the quick reply! Unfortunately, we are not using the subscription plugin. Is there any other way I can get the expiration date on a user’s membership to a group, or would I have to do this based on their order date (which would take this out of the realm of Groups and into WooCommerce)?

        Thanks again!

        1. Hi Ducan,
          then the data is stored in the database as ‘_groups_product_groups’ in the wp_usermeta table.
          In groups-woocommerce/lib/core/class-groups-ws-handler.php around line 139 you have an example how to use this usermeta.
          Kind Regards,
          Antonio B.

  36. Hi team and users,

    I used : Woocommerce 2.4.7 + Groups 1.7.2 + Groups Woocommerce 1.8.2 + Woocommerce Subscriptions 2.0.0

    I would like to say to you that “Groups woocomerce” doesn’t work with “subscription product” any more since its update (it only works with “simple product’)

    All the parameters are accessible but when a customer places order he is not any more added to the selected groups…

    I am going to make out a will with the old version but while waiting for it is necessary to be careful before making the update…

    🙁
    Bad news

    Have a good day !

    1. Hi Juliette,

      Please update the plugin to the latest version 1.9.0 where the compatibility issues are resolved.

      Cheers

      1. Hi Kento,

        Yes it’s works perfectly ! 🙂

        Happy

        1. Perfect, thanks 🙂

  37. This question has also been posted as ticket to WooCommerce:

    See http://www.awesomescreenshot.com/image/650880/da15af2833543907b736639b8d29dd9c

    As you can see, instead of the groups assignments for products purchased being organized clearly and in such as way where you begin typing the group names into the fields and then it prepopulates with the groups, each field (to add to groups and remove from groups upon purchase) are being listed in drop down fields.

    So something is wrong with the normal formatting of the Groups For WooCommerce configurations format.

    Is this a problem w

    1. Never mind. This issue was resolved when I updated WC Subscriptions, oddly enough.

      1. Hi Rob,

        Thanks for following up, please make sure to update Groups WooCommerce to 1.9.0, too as there are changes in Subscriptions 2.x which made it incompatible with the previous version.

        Cheers

        1. Kento,

          Yes I have already updated it.

  38. I dropped back to ver. 1.5.3. of Groups!!! That worked!

    My guess is that Groups 404 and Groups when both upgraded to latest version … Don’t communicate!?

    I am just happy it works for me again… 3 days in PAIN!! is over
    (Reinstall – deleting, activating, deactivating and all combos of what ever I could imagine to do… Change theme, deleting plugins…)
    Old version saved me!!!

    Enjoy

    Peter

    1. Really new versions should work fine together.
      Kind Regards,
      Antonio B.

      1. Your right – My mistake… I was a fluke – After 3 tests… The issue was back – So I upgraded again! 🙂

  39. Hi Antonio
    I got the Group
    The Group 404
    WooCommerce group pricing

    I’t worked —until the upgrade?
    Now I don’t get the WP registrer/login page when a product is “protected” – I get a normal 404 page?
    I been pulling out my hair … (no more left)
    any clues?

    Peter

    1. Hi Peter,
      please be sure your Groups 404 redirect is enabled.
      You can visit Settings->Permalinks and Save changes (no need to change anything).
      Kind Regards,
      Antonio B.

      1. Hi Antonio,

        What do you mean… Groups 404 is enabled and I tried login page or a page ID – and both. Is there any special settings?
        I tried to save the perma…

        No diff…
        I still get the normal page not found (404) and not the settings I did in Groups 404??
        I test with a browser (Chrome) where I am NOT logged in.
        The entire purpose is to redirect non-login users to create a login/profile
        and my plan is to give them an reason they can’t refuse on the login/create page??
        But how do I get them there?

        Kind regards

        Peter

        1. Hi Peter,
          it should work fine. Please send us dashbaord admin access to support at itthinx dot com and we’ll have a look at your settings (please indicate this conversation in the email).
          Kind Regards,
          Antonio B.

          1. Hi Antonio,

            Super… Thanks I appreciate your help (Email sent). Really look forward to hear what I missed… 🙂
            Have a GREAT Weekend

            Peter

            1. Thanks for the help… (You checked my settings) and I was missing the Woo Shop protection:
              http://www.itthinx.com/2013/02/12/how-to-hide-the-woocommerce-shop-page/
              That’s why it didn’t work…
              Thanks a million for your help!!
              If you ever come to Copenhagen… I’ll take you out for a beer 🙂

              1. Sounds great, I’m looking forward to that 🙂

                If you could spare a minute and rate the Groups plugin that would also be awesome! Good ratings help and motivate to make things even better 😉

  40. Kento,

    Do you have a plugin that creates dynamic pricing for woocommerce products based on group membership, that also shows the adjusted prices on the shop page and single product pages (instead of only in the cart)?

    1. Hi Robert,
      you can use Woocommerce Group Pricing plugin.
      Kind regards,
      Antonio B.

      1. Antonio,

        Hey thanks so much for referring me to WooCommerce Group Pricing plugin! It is exactly what I needed, and the only plugin I’ve seen so far that does pre-cart dynamic pricing based on group membership. I wonder if it will work in conjunction with the other Dynamic Pricing plugins that adjust pricing in the cart based on custom rules. I’m wondering if WooCommerce Group Pricing will set the new base price for the product per group, and then the Dynamic Pricing plugin will calculate further discounts in the cart based on custom rules.

        Have you tried that, or ever heard of it being done?

        1. Hi Robert,
          sorry, I have not tried that. You could send me your dynamic pricing plugin to have a look to info@eggemplo.com and continue this conversation in the eggemplo page.
          Thanks,
          Antonio B.

  41. Kento,

    Can we apply groups restriction to media files? I know we can restrict a page the media plays on, but can we restrict the actual media file’s url itself, so that just in case a file’s url (audio or pdf file) gets emailed from a member to a non member, the non member still cannot access it unless the member gives them their login info?

    1. Hi Rob,

      We’re using Groups File Access for these cases. Have a look at that one please, it’s a bit different than using the media section but is proving to be very useful in lots of deployments where you need to protect certain files.

      Cheers

      1. Kento,

        Groups File Access looks nice, but I’m not sure if that will do what I need. Can you please clarify. Here is what I am building:

        It is a a membership site using Groups for WC and WC Subscriptions. So files are only accessible through the to customers / group members. However, I’m wondering what happens if someone gets the direct link to an audio file without purchasing it. Will this plugin keep non-members from downloading a file even if they get the actual url of the file?

        1. Hi Rob,

          They won’t be able to access the file even if they know the URL. GFA protects access to the files themselves – I’d recommend to have a look at the Documentation so you get a clearer idea of how it works.

          Cheers

          1. Awesome. I’ll check it out.

      2. Kento,

        It appears my reply to your last reply is not longer here. I was asking if the Groups File Access plugin can be used lock the actual file url. In other words, if someone gets the actual file’s link, will the Groups File Access plugin block the person from viewing or downloading the file do not have access through Groups?

        Thanks,
        Rob

        1. It was in the moderation queue 😉

  42. An issue that I am seeing is that the option:

    Administrators override all access permissions derived from Groups capabilities.

    … no longer works with Woo Sensei.

    Last year when I was migrating my content to Woo Sensei, as the administrator I had access to all of the courses. For the past few months (I’m going to guess 6 months), as administrator I do not have access to my own Woo Sensei courses unless I manually generate a purchase from the WooCommerce back-end system.

    Given my previous comment (added just a few minutes ago) and the behavior described here, I believe there is a fundamental issue with Sensei content and Groups.

    Would you be kind enough to look into it?

    Regards,
    Doug

    1. Have you assigned your user account to the groups that are required to access the protected content? From what you describe, and taking into account that with the admin override in place you had, it seems that you don’t. You can simply use the main user management section and add yourself to the required groups (those that have the capabilities required to access the protected content).

      1. Yes, the admin has group access to every course.

        1. Could you provide admin access to have a look please? Staging site instead of production would be preferred if possible. Please forward credentials to support at itthinx dot com with a link to this conversation.

  43. First, my configuration:

    – Woo Sensei learning management courses are associated with WooCommerce Products.
    – Woo Sensei courses are protected by Groups.
    – Products purchased through WooCommerce add customers to the appropriate groups … granting access to the appropriate course(s) after purchase.

    What works:

    – When I perform a standard purchase – or generate a purchase manually on the back-end – everything works as expected.

    What doesn’t work:

    – When I manually add an existing user to a group, the user does not actually get access to the content.
    — The course is not listed in their list of available Sensei courses.
    — If I try to bypass Sensei and go directly to the slug, I see the Sensei page, but it tells me I have to purchase it.
    — Bottom line, I can’t grant access to course content by adding a Group permission to a user.

    Why this matters to me:
    – I have a relationship with a company whereby their members can gain access to one of my courses for free by filling out a form to verify their member status with the company.
    – I would like the submission of the form (using Gravity Forms) to grant access to the course straight away. While the Groups – Gravity Forms plugin allows me to add user to groups, it has no real affect in granting access to protected content in Sensei.

    I don’t know if the issue is on your side or on WooThemes’ side, but you have always been really responsive and probably have more to gain by making this work than does WooThemes.

    Can you look into the issue?

    Regards,
    Doug

    1. Hi Doug,

      Thanks for explaining, wouldn’t it be easier if you just created an order manually for the course? The restrictions and access grant should be applied automatically.

      Cheers

      1. It is not easier. The point of my query is to avoid having to manually create orders (under any circumstance).

        Case in point, I am supposed to be on vacation right now, but I have to continually check to see if a form was submitted, because I have to complete the process (by manually generating an order).

        If the assignment of groups worked as I would prefer (with woo Sensei) then I could automatically grant access and truly unplug my brain on vacation.

  44. HI, I manually added a user to a group and wanted to set their time limit but it’s not updating. It still says infinite.

    1. Also, can you tell me if there is a callback function for when a user is about to be removed from a group after the set time limit? I basically want to notify the user, so they can purchase another yearly plan.

      1. Hi Rachel,
        you can use the ‘groups_deleted_user_group’ action.
        Regards,
        Antonio B.

  45. group woocomerce expiration is not work after expire time not delete user from group
    please help

    1. antonio Avatar

      Hi pankaj,
      please be sure you have enable the option ‘Remove users from groups when…’ in Woocommerce->Groups.
      Regards,
      Antonio B.

      1. yes that is enable in woocomerce group but this plugin is work on another servers but not my server

        1. It doesn’t matter where it works as long as you can control how the server behaves. If you don’t see memberships expired, you most probably have an issue with cron not working on your site. Use WP Crontrol to check if it is working, and if it isn’t, you must undertake the necessary steps to make cron work on your site so the system can remove expired memberships when they are due.

          1. I am interested in the groups. If groups is set to default users to the “registered” group, but we sell a membership to a “Premiere” group, and when someone buys the “premiere” membership, we set the subscription to remove the user from “registered”, will, at the end of the subscription period, the customer be returned to the “registered” group and be removed from the “premiere” group.

            1. Hi Jeff,

              You would not want to remove anyone from the “Registered” group. You would base your access restrictions on the “Premium” group only and when the subscription ends, the membership with the “Premium” group would be revoked and thus access to protected content based on the “Premium” group would be denied.

              Cheers

  46. Hi kento,

    Is it possible to move a user from one group to another when the user buys something (complete an payment)
    I don’t sell memberships but just want to move a “Registered” to “Customer” so I can send a notification 🙂

    Best regards

    Peter

    1. antonio Avatar

      Hi Peter,
      with the Groups Woocommerce Integration you can do it (adding the ‘Customer’ group to the products edit page).
      Regards,
      Antonio B.

      1. Thx antonio
        I fixed it with your help …I imported all customers and did the manual edit from group Regis (Auto assigned) to the VIP
        Heck it was only 3000 … got late to bed thihihi LOL

        Peter

        1. antonio Avatar

          🙂 perfect

Leave a Reply

Your email address will not be published. Required fields are marked *

Share