WooCommerce Integration

Paid Member Subscriptions - WooCommerce Integration

Paid Member Subscriptions integrates with WooCommerce allowing the admin to restrict product viewing & purchasing and also to offer special product prices to members.

Using Paid Member Subscriptions with WooCommerce

In order to use Paid Member Subscriptions with WooCommerce you’ll need to have the following plugins installed and activated on your site:

WooCommerce Integration Settings

After you activate WooCommerce and Paid Member Subscriptions you will notice a new tab in Paid Member Subscriptions -> Settings page called WooCommerce Integration.

Paid Member Subscriptons - WooCommerce Integration - Settings page

For your WooCommerce Products you will be able to set the following options:

Allow cumulative discounts

If you want to allow cumulative discounts, meaning to cumulate all the available discounts for the product, you will need to go to PMS -> Settings -> WooCommerce Integration and check “Allow cumulative discounts”.

By checking this option we will cumulate all discounts that apply to a specific product. By default we’re applying only the highest discount.

Paid Member Subscriptions - WooCommerce - WooCommerce Integration - Allow cumulative discounts

Exclude products on sale

We can exclude products on sale if we do not want to apply Membership or Product Discounts to those products. Go to PMS -> Settings -> WooCommerce Integration and check “Exclude products on sale”.

Paid Member Subscriptions - WooCommerce - WooCommerce Integration - Exclude products on sale

Product on Sale and also Discounted to Members

We can have products that are on sale and also have membership discounts attached. In our case we have the Headphones product that has the Regular price set to $45 and the Sale price set to $40.

Paid Member Subscriptions - WooCommerce - WooCommerce Integratoin - Product price

For this product we also have a 10% Membership Discount for all the Members that subscribed to the Gold subscription plan.

Note – By default the 10% Membership Discount is applied to the Sale Price and not to the Regular price. In our case the $40 Sale Prices will be reduced with 10%.

Paid Member Subscriptions - WooCommerce - WooCommerce Integration - Membership Discounts

View of Shop and product page for Logged Out Users and Non Members

This is how the logged out users as well as logged-in non-members (with no active subscriptions) will see the Shop page and this particular product. There won’t be any price changes for them.

Paid Member Subscriptions - WooCommerce - Product on sale - Shop page

Paid Member Subscriptions - WooCommerce - Product on sale

View of Shop and product page for Logged in Members

This is how the logged in members that subscribed to the Gold plan will see the Shop page and individual product page.

The product sale price has been reduced with a 10% membership discount, resulting in a discounted price for the member. You can also notice the “Member Discount” badge that highlights this price change.

Paid Member Subscriptions - WooCommerce - Product on sale and on discount - Shop page

Paid Member Subscriptions - WooCommerce - Product on sale and on discount

Product Discounted – Membership Required Custom Message

This message can be used as a call to action for non-members or members who don’t have the appropriate subscription plan, letting them know that a membership discount is available for this product and directing them to sign-up for the required subscription plan.

You can modify the default notification: “Want a discount? Become a member, sign up for a subscription plan.” displayed for users that don’t have the appropriate Subscription Plan for a discount, under PMS -> Settings -> WooCommerce Integration -> Product Messages -> Product Discounted – Membership Required.

This message is displayed below the “Add to Cart” buttons. Leave blank to disable.

Paid Member Subscriptions - WooCommerce - WooCommerce Integration - Settings - Product Messages

Paid Member Subscriptions - WooCommerce - Membership Discounts - Subscription Plan - Product page

Offer Discounted Product Prices to Members

Paid Member Subscriptions allows you to offer special discounted product prices to existing members.

You can set Product Discounts per Subscription Plan or Membership Discounts per Product.

Once you have setup discounted member prices for WooCommerce products or product categories, the prices in your shop will change automatically for logged in members. Members will see the special discounted prices based on their subscription plan, instead of the actual price.

Paid Member Subscriptions - WooCommerce - Membership Discounts - Subscription Plan - Shop page with discount

Add Product Discounts per Subscription Plan

In order to setup a Product Discount per Subscription Plan you will need first to go to PMS -> Subscription Plans and edit the appropriate Subscription Plan. In our example we are editing the Gold plan.

Paid Member Subscriptions - WooCommerce - Membership Discounts - Subscription Plan

Below the Subscription Plans Details meta box we have the Product Discounts meta box that we can use to create our own Product Discounts.

Paid Member Subscriptions - WooCommerce - Membership Discounts - Subscription Plan - Settings

All the Product Discounts added will be applied for users that purchased the subscription plan (in our case the Gold plan).

When adding a new discount you’ll need to fill in the following options:

  • Discount for – whether to apply to Products or Product Categories
  • Name – The product name(s) or the product category name (leave blank to apply to all products)
  • Type – Percent (%) or Fixed ($)
  • Amount – For Percent (%) add values from 0 – 100 (Free) and for Fixed ($) add values from 1 – the desired value*
  • Status – whether the discount is Active or Inactive
Notes

  • If we add “0” as a value inside the Amount section the Discount will be removed
  • If we add a value grater or equal to the price of the product, the product will be considered free to purchase

Paid Member Subscriptions - WooCommerce - Membership Discounts - Subscription Plan - Setting up a Discount

Below, you’ll notice the 10% discount applied to “Headphones” price for logged in Gold subscribers. Logged-out users and members without the Gold subscription won’t see any price changes.

Paid Member Subscriptions - WooCommerce - Membership Discounts - Subscription Plan - Product page with discount

Add Membership Discounts per Product

In order to setup individual discounts per product you will need to go to Products and Edit your product. In the Product details page you’ll notice a Membership Discounts meta box. In our example we are editing the Headphones product.

Paid Member Subscriptions - WooCommerce - Membership Discounts - Product - Setting up a Discount

The first option to select is regarding Discounts Behaviour:

  • Best price – This will calculate the best price for this product, based on all existing member discounts (set both per subscription plan and per product)
  • Apply only discounts set below for this product – This will ignore the global discounts set per subscription plan that apply to this product and take into consideration only the ones set below, per product
  • Exclude this product from all membership discounts – This will exclude this product from any membership discounts that may apply now or in the future

Paid Member Subscriptions - WooCommerce - Membership Discounts Settings - Product

When you are using the “Best price” behavior the member that subscribe will see the product discounted by the highest discount. If multiple discounts apply to this product, we’ll apply the highest one, which results in the lowest price.

All the Membership Discounts added will be applied for users that purchased the Subscription Plan and in our case the Gold plan.

Clicking on the “Add New Discount” button allows us to setup the following options:

  • Subscription Plan – The list of Subscription Plans setup in PMS -> Subscription Plans
  • Type – Percent (%) or Fixed ($)
  • Amount – For Percent (%) add values from 0 – 100 (Free) and for Fixed ($) add values from 1 – the desired value*
  • Status – Set the Membership Discount to be Active or Inactive
Notes

  • If we add “0” as a value inside the Amount section the Discount will be removed
  • If we add a value grater or equal to the price of the product, the product will be considered free to purchase

Paid Member Subscriptions - WooCommerce - Product Discounts - Subscription Plan - Setting up a Discount

In our example we added a 15% Membership Discount for the Gold Subscription Plan. Below you can see the price chance for Gold subscribers, on both Shop page and individual product page.

Paid Member Subscriptions - WooCommerce - Membership Discounts - Product - Shop page

Paid Member Subscriptions - WooCommerce - Membership Discounts - Product Discount - Product page with discount

Restrict Product Viewing

Restricting Product Viewing allows you to easily create members-only products, as well as allow only certain subscription plans to view certain products. This feature combined with restricting product purchase, offers you a ton of flexibility when it comes to presenting products to your members.

Let’s say we have already setup 3 Subscription Plans: Free, Silver and Gold. The Gold plan is the higher plan, since the subscriptions are hierarchical, and the Silver and Free plans are downgrades of the main plan.

Paid Member Subscriptons - WooCommerce Integration - Subscription Plans

After we setup the Subscription Plans we need to setup our WooCommerce Products visibility. In our case we have 4 products: Dress, Shoes, Wireless Mouse and Headphones which are added in 2 categories: Clothing and Electronics.

Paid Member Subscriptons - WooCommerce Integration - WooCommerce Products

When you edit a product, you will notice a new meta box called Content Restriction. Under the Display Options section you will be able to setup the restriction for product viewing.

Paid Member Subscriptons - WooCommerce Integration - Content Restriction

Inside the Display Options section we can set the following options:

  • Type of Restriction
    • Settings Default – It will use the default settings setup in PMS -> Settings -> Content Restriction
    • Message – It will display the default message setup in PMS -> Settings -> Content Restriction or you can display a custom message for this product by checking the “Enable Custom Message” checkbox
    • Redirect – It will redirect the user to the default link setup in PMS -> Settings -> Content Restriction or you can use a custom redirect URL for this product by checking the “Enable Custom Redirect URL” checkbox*
  • Display For
    • Logged In Users – Checking only “Logged In Users” will show the product to all logged in users, regardless of Subscription Plan
    • Subscription Plans set in PMS -> Subscription Plans – Checking any Subscription Plan will show this product only to users that are subscribed to those particular plans

Notes

  • The “Enable Custom Redirect URL” meta box is displayed only when the Redirect option is selected inside “Type of Restriction”
  • The restrictions are not applied to the Admin role. Admins will be able to see the restricted products without having the appropriate Subscription Plan

Display product only to logged in users

To display a product to all logged in users, regardless of Subscription Plan, you will need to check only the “Logged In Users” option.

Paid Member Subscriptions - WooCommerce Integration - Logged In Users

View of product page for Logged Out Users

This is how the logged out user will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Product Viewing - Logged Out Users

View of product page for Logged In Users

This is how the logged in user will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Product Viewing - Logged In Users

Display product only to members that subscribed

To display a product to all members that subscribed to a specific Subscription Plan you will need to check the “Logged In Users” option and also the Subscription Plan that the restriction will be based on.

Note – Checking multiple Subscription Plans, for example Gold and Silver, will display the product to Gold, Silver or Gold and Silver members

Paid Member Subscriptions - WooCommerce Integration - Logged In Member

View of product page for Logged Out Users and Non Members

This is how the logged out user will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Product Viewing - Logged Out Users

View of product page for Logged In Users and Non Members

This is how the logged in user that didn’t subscribe will see the product.

View of product page for Members

This is how the logged in member that subscribed will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Product Viewing - Logged In Users

Restrict Product Purchasing

Besides product viewing, you can also restrict product purchasing. This way you can allow only certain subscription plans to purchase specific products.

When you edit a product, you will notice a new meta box called Content Restriction. Under the Purchase Options section you will be able to setup the restriction for product purchasing.

Paid Member Subscriptons - WooCommerce Integration - Purchase Options

Inside the Purchase Options section you can set the “Who can purchase?” option to:

  • Logged In Users – Checking only “Logged In Users” will allow the product to be purchased by all logged in users, regardless of Subscription Plan
  • Subscription Plans set in PMS -> Subscription Plans – Checking any Subscription Plan will allow the product to be purchased only by users that subscribed to those particular plans

Notes

  • The product purchase restrictions are not applied to the Admin role. Admins will be able to purchase the restricted products without having the appropriate Subscription Plan
  • You can simultaneously use the restrict product viewing option and also the restrict product purchasing option

Allow product to be purchased only by the logged in users

To allow a product to be purchased only by the logged in users, regardless of Subscription Plan, you will need to check only the “Logged In Users” option.

Paid Member Subscriptons - WooCommerce Integration - Purchase Options - Logged In Users

View of product page for Logged Out Users

This is how the logged out user will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Purchase - Logged Out Users

View of product page for Logged In Users

This is how the logged in user will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Product Viewing - Logged In Users

Allow product to be purchased only by the members that subscribed

To allow a product to be purchased by the members that subscribed to a specific Subscription Plan you will need to check the “Logged In Users” option and also the subscription plan(s) that will be able to purchase this product. The remaining subscriptions will be restricted from purchasing it.

Paid Member Subscriptons - WooCommerce Integration - Purchase Options - Logged In Members

View of product page for Logged Out Users and Non Members

This is how the logged out users or members without the Gold subscription plan will see the product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Purchase - Logged Out Users

View of product page for Members

Gold Members will see the “Add to cart” button and will be able to purchase this product.

Paid Member Subscriptions - WooCommerce Integration - Restrict Product Viewing - Logged In Users

Restrict Access to WooCommerce Shop Page

In order to restrict the access to the WooCommerce Shop page simply go to Pages -> All Pages, Edit the Shop page and scroll down until you see the Content Restriction meta box.

Paid Member Subscriptions - WooCommerce - Shop Page

Inside the Display Options section we can set the following options:

  • Type of Restriction
    • Settings Default – It will use the default settings setup in PMS -> Settings -> Content Restriction
    • Message – It will display the default message setup in PMS -> Settings -> Content Restriction or you can display a custom message for this product by checking the “Enable Custom Message” checkbox
    • Redirect – It will redirect the user to the default link setup in PMS -> Settings -> Content Restriction or you can use a custom redirect URL for this product by checking the “Enable Custom Redirect URL” checkbox*
  • Display For
    • Logged In Users – Checking only “Logged In Users” will show the Shop page to all logged in users, regardless of Subscription Plan
    • Subscription Plans set in PMS -> Subscription Plans – Checking any Subscription Plan will show the Shop page only to users that are subscribed to those particular plans

Notes

  • The “Enable Custom Redirect URL” meta box is displayed only when the Redirect option is selected inside “Type of Restriction”
  • The restrictions are not applied to the Admin role. Admins will be able to see the Shop page without having the appropriate Subscription Plan

Display the Shop page only to logged in users

To display the Shop page only to logged in users, regardless of Subscription Plan, you will need to check only the “Logged In Users” option.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction Logged In Users

View of Shop page for Logged Out Users

This is how the logged out user will see the Shop page.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction Logged Out Users

View of Shop page for Logged In Users

This is how the logged in user will see the Shop page.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction Logged In User

Display the Shop page only to members that subscribed

To display the Shop page to all members that subscribed to a specific Subscription Plan you will need to check the “Logged In Users” option and also the Subscription Plan that the restriction will be based on.

Note – Checking multiple Subscription Plans, for example Gold and Silver, will display the Shop page to Gold, Silver or Gold and Silver members

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction Logged In Member

View of Shop page for Logged Out Users and Non Members

This is how the logged out user or members with a different membership level than Gold will see the Shop page.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction Logged Out Users

View of Shop page for Members

Logged in, Gold members will be able to see the Shop page, without any restrictions.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction Logged In User

Restricted products inside the Shop page

As you noticed by now, using Paid Member Subscriptions we can restrict the product viewing and also product purchasing. In the screenshot below, we restricted product viewing for the “Wireless Mouse” product.

Shop page when a product viewing is restricted

You only see just the product title, without any details about price, description or thumbnail image. Also the “Add to cart” button is replaced by a “Read more” button.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction - Product Viewing

Shop page when a product is visible, but purchase restricted

When a member can view a product, but is not allowed to purchase it, he will be able to see all product details, just that the “Add to cart” button will be replaced with a “Read more” button. This way he won’t be able to purchase the product.

Paid Member Subscriptions - WooCommerce - Shop Page - Content Restrction - Purchase Restriction