Support » Plugin: Groups for MemberMouse » Count of group memberships

  • Resolved samomillerdavis

    (@samomillerdavis)


    Hello,

    Is there a shortcode or a way to get the count of Group members? or count of Group Memberships?

    We want to be able to create a custom report for displaying the total of people by their different group membership types, for example, a Dual membership has 2 members, but we have 200 Dual memberships (meaning 100 memberships, each of 2 people). Is there a way to get the “200” number to display via short code, or within some sort of reporting?

    Thank you,
    -SD

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Mintun

    (@mintunmedia)

    Hi there! It sounds like you want this information on the back end? Or the front end? This functionality is not built directly into Groups… but you could have a developer query the wp_group_sets_members table and count the number of members (rows) which would be the number of total members in groups. In your case, there should be 200 rows in that table. Then they could display this information in the backend wherever you see fit or output the data into a shortcode to print to the front end.

    Hope that helps!
    Matt

    Thread Starter samomillerdavis

    (@samomillerdavis)

    Thank you Matt! This worked.

    I wanted to check with you- how do we find out the id for this: [MM_Form_Field type=”custom-hidden” id=”1″]?

    My thank you page keeps telling me the id is invalid. Do we specify the product id that we want the groups associated with here?

    Thank you,
    -Samo

    Plugin Author Matt Mintun

    (@mintunmedia)

    Great question! Head over to the Groups plugin and then click the Getting Started tab:
    /wp-admin/admin.php?page=groupsformm&type=docs

    #1 will tell you what shortcode to add to your checkout page.

    I noticed you mentioned “my thank you page…”, the tag in #1 does not go on your thank you page, it is only used on the checkout page in between the [MM_Form] [/MM_Form] tags.

    The Shortcode to add to your thank you page is:
    [MM_Group_SignUp_Link]

    This shortcode displays the signup link that your Group Leader must use to send to a team member so they can sign up underneath them. I recommend wrapping this shortcode in between a CORE MemberMouse shortcode so that it’s only displayed for your GROUP products. This also means I recommend using specific products only for group purchases so you can do this successfully. The 1|2|3|4 below are your product IDs and this is basically saying “If the current order is for Product ID 1 OR 2 OR 3 OR 4, then show the Group Sign up Link”:

    [MM_Order_Decision productId=(1|2|3|4)] 
    [MM_Group_SignUp_Link]
    [/MM_Order_Decision]

    Hope that helps!
    Matt

    • This reply was modified 1 year, 8 months ago by Matt Mintun.
    Thread Starter samomillerdavis

    (@samomillerdavis)

    Thank you Matt!

    I have the shortcode on my checkout page: [MM_Form_Field type=”custom-hidden” id=”1″], and it creating an error: Invalid custom field ID of ‘1’ passed to SmartTag MM_Form_Field.

    I am in the “test” payment environment for MemberMouse. Is this going to show up when we turn it on?

    Additionally, the Signup link doesn’t show up on the Thank you page, I am guessing because of the error on the Checkout page?

    Sorry for all the questions.

    Thank you!
    -Samo

    Plugin Author Matt Mintun

    (@mintunmedia)

    Hey Samo, email me directly, sounds like something else is going on here. hello@mintunmedia.com. I’ll get you taken cared of!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Count of group memberships’ is closed to new replies.