Gym Membership Activities

Scenario ↑ Back to top

You have a martial arts dojo facility that trains samurais. The dojo requires membership, and there are several activities at the dojo including a meditation activity. The activity is only available to those who have an active membership and must be booked in advance.

Products Used ↑ Back to top

Setup and Configuration ↑ Back to top

Create a Group ↑ Back to top

We’ll need to first create a group used for those that subscribe to your product. Those subscribed to your product will be added to the group and given access to additional products that are otherwise hidden from the public.

  1. In the sidebar of your WordPress Admin, click on Groups > Capabilities.
  2. Click on the New Capability button on the top.
  3. Under Capability type dojo_membership, then press Add.
  4. Next in the sidebar of your WordPress Admin, click on Groups > Options.
  5. Under Capabilities, enter the name of the Capability you added previously. In this case, it was dojo_membership. Scroll below and press save once you’ve added this. No other changes are needed on this page.
  6. In the sidebar of your WordPress Admin, click on Groups > Groups.
  7. Click on the Add Group button on top.
  8. Fill out the Name field. I called mine Dojo Membership.
  9. Click on Capabilities and add the newly created capability. Then click Add.

You’re set! You’ve created a group that we’re going to assign users to.

Create a Subscription ↑ Back to top

We need to set up a Subscription Product to sell to our customers and assign it to a new group we created earlier.

  1. In the sidebar of your WordPress Admin click on Products > Add Product.
  2. Give your product a name like Dojo Membership.
  3. We’ll now want to set up the Product Data. The type will be Simple Subscription and I’ve set the price to be $75 per month.
  4. Select the Groups tab then select on the Add to Groups field box. You should have the option now to choose the selected group you created earlier. Add the group and press Publish for your product.

Whenever someone purchases this product, it will automatically add them to the Dojo Membership group. If a user cancels, it will automatically remove them from that group. Only active subscribers will be in the group.

Create a Bookable Product ↑ Back to top

Now we want users to be able to book activities based on the membership they purchased previously. We want to ensure however that only active members of the subscription have access to view this product.

  1. In the sidebar of your WordPress Admin click on Products > Add Product.
  2. Give your product a name like Meditation Activity.
  3. Setup the Product Data to be a Bookable Product.
  4. We’ll set up some basic rules for the bookable product. The event is free, fixed block of 1 day, and only available on Saturday and Sunday.
  5. Next we want to setup the Access Restriction box for groups. Click on the field for Enforce read access. Select the new group that we created earlier.

Publish the book and you’re set! Only those that have access to that group will be able to view this product. The product is also hidden from your shop pages.

Questions and Feedback ↑ Back to top

Have a question before you buy? Please fill out this pre-sales form.

Already purchased and need some assistance? Get in touch with a Happiness Engineer via the Help Desk.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top