WordPress Invitation Code - Use Case - How to Sell an Invitation Code for Accessing a Specific Content On Your Site


Use Case – How to sell an invitation code for accessing a specific content on your site

Back to User Guides

Note: This guide requires:

Video Use-Case


Introduction

This WordPress Invitation Code plugin allows you to create and sell a series of personalized temporary access codes. Each code grants limited access to a selected page only. When creating codes, you assign them to a URL or a file. It will automatically be locked and when accessing it, visitors will be prompted to input the code.

Use Case Front-End

Paybox for purchasing the invitation code - WordPress Register with Invitation Code
Paybox for purchasing the invitation code
WooCommerce cart - Portal WordPress Plugin Private Content Per User
WooCommerce cart
WooCommerce checkout page - Members Plugin Restrict Content
WooCommerce checkout page
Email notification with purchased invitation code - Invitation Code Registration for WordPress
Email notification with purchased invitation code

Use Case Assumptions

In this example we will consider how to set the price for invitation codes and sell them for accessing a specific content on your site. We consider that you have already bought the WordPress Invitation Code plugin, but not installed it yet. 

It follows:

Installing the Plugin

The process is the same for all CM plugins and add-ons.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin  → Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Learn more: Getting Started - Plugin Overview


Installing Payment Plugin (WooCommerce)

WordPress Invitation Code plugin requires WooCommerce for work.

How It Works

  • Payment requires WooCommerce. EDD is not compatible.
  • Add a price to an individual code
  • Add a payment box anywhere on your site so users can pay (done via shortcode)
  • After payment, users receive the code by email

Head to Admin Dashboard → Plugins → Installed Plugins and click Add New

Installing new plugin - WordPress Content Restriction
Installing new plugin

Search for WooCommerce and install it and activate it.

Installing new plugin - Private Content WordPress Plugin
Installing WooCommerce plugin

Configure the Payment Plugin

Don't forget to configure the payment plugin! This way you can connect it to payment providers such as PayPal or credit card companies.

Important

Be sure that your payment plugin has the correct Checkout and Cart pages set up. They are used by the plugin.

Setting up the WooCommerce checkout and cart pages - Restrict Content Plugin
Setting up the WooCommerce checkout and cart pages
External Resources

Initial Setup

Before starting, WordPress Invitation Code plugin has to be properly set up.

If you still haven't configured:

  • General settings for codes.
  • Notifications - email notifications for admins and users.
  • Labels - configure/translate messages that the user will see in front-end.

Also, we consider that you've already have existing posts that you need to restrict with the codes. If not, learn more How to restrict two separate pages on your site with a different invitation code for each of them.


Setting the Price

First thing you need to do, to sell the invitation code is to set the price for invitation code. Make sure, that you enabled payment feature in setting. For that you need to navigate to Invitation Code Content Access  Settings  General tab.

Navigation to the plugin settings - WordPress Register with Invitation Code
Navigation to the plugin settings

Find  Enable Payment feature and choose Yes.

Enabling the payment feature - Portal WordPress Plugin Private Content Per User
Enabling the payment feature

When the option is enabled, the Payment section appears in Add Invitation Code. There are two options, how you can set the price - with automatic creation of the WooCommerce product for invitation code or in a manual way. You need to choose it in Invitation Code Content Access → Settings → General tab.

Enabling autocreation of WooCommerce products - Members Plugin Restrict Content
Enabling autocreation of WooCommerce products

We will consider both options. Let's start with the first one.

Auto creation of the WooCommerce products for invitation codes with price

Create the invitation code or edit the existing one and go to Payment section. 

Payment settings for the invitation code - WordPress Invitation Code
Payment settings for the invitation code

When you set the price while creating the invitation code a new associated to the code WooCommerce product appears in the list.

WooCommerce product associated with the invitation code - Invitation Code Registration for WordPress
WooCommerce product associated with the invitation code

Once you publish this code, you can find a special shortcode for this invitation code under the price:

Shortcode for displaying the paybox - WordPress Content Restriction
Shortcode for displaying the paybox

You use this shortcode to show the payment in the Front-end. The shortcode is [cmicca_paybox id=""], including the code invitation code id.

Using the shortcode for the paybox - Private Content WordPress Plugin
Using the shortcode for the paybox

Tip: how to find code ID

You can find id for every invitation code in the list.

Invitation codes IDs - Restrict Content Plugin
Invitation codes IDs

This is how the result looks like in front-end.

Use Case Front-End

Paybox for purchasing the invitation code - WordPress Register with Invitation Code
Paybox for purchasing the invitation code
WooCommerce cart - Portal WordPress Plugin Private Content Per User
WooCommerce cart
WooCommerce checkout page - Members Plugin Restrict Content
WooCommerce checkout page

That is how you can set the price for the invitation code and sell it. Let's consider another option, with a manual way of creating the products.

Manual creation of the WooCommerce products for invitation codes with price

First you need go to Invitation Code Content Access → Settings → General tab and disable Auto create/update WooCommerce products for invitation codes with price.

Disabling autocreation of WooCommerce products - WordPress Invitation Code
Disabling autocreation of WooCommerce products

Next, to set the price for the invitation code you need to manually create the WooCommerce product.

Then you need to get the WooCommerce product's ID. You can find it in WooCommerce → Products → All Products, by hovering to the product - the ID of it would appear under the title:

WooCommerce products IDs - Invitation Code Registration for WordPress
WooCommerce products IDs

Now you can start creating or editing the invitation code. Navigate to Add Invitation Code. Put WooCommerce product's ID to the relevant field in Payment section. And again, once you published it you can find a special shortcode for this invitation code under the price. 

Also, can enable Show Quantity input feature that allows customer to enter the number of invitation codes to order.

Associating the WooCommerce product with the invitation code - WordPress Content Restriction
Associating the WooCommerce product with the invitation code

Let's see the result after using the shortcode for showing the payment in the Front-end.

Use Case Front-End

Paybox for purchasing the invitation code - Private Content WordPress Plugin
Paybox for purchasing the invitation code
WooCommerce cart - Restrict Content Plugin
WooCommerce cart
WooCommerce cart - WordPress Register with Invitation Code
WooCommerce checkout page
Email notification with purchased invitation code - Portal WordPress Plugin Private Content Per User
Email notification with purchased invitation code

More information about the WordPress Invitation Code Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.