Do you want to control the content displayed if a user tries to access your product without the necessary permissions or without having purchased it yet? Thrive Apprentice comes with Access Restrictions that you can enable from within its dashboard.
If you are looking to control access restriction controls sitewide, please refer to our document about Login Access Restriction Rules in Thrive Apprentice.
In this article, we’ll see how you can enable Access Restriction Rules at the product level.
- Accessing the Product Level Access Restriction Rules
- Standard Contexts
- Purchase Protection
- Action Button Display
Accessing the Product Level Access Restriction Rules
To access the product level access restriction rules, open your WordPress admin area, navigate to Thrive Dashboard >> Thrive Apprentice and click on Products.
On the Products page, click on the product you want to add the accessing restriction rules to.
On the individual product page, click the Access Restriction Rules tab.
Note: The Access Restriction Rules you apply at product level by following the steps mentioned in this document will overwrite the rules you set globally through the Login and Access Restriction Settings in Thrive Apprentice.
Inside Access Restriction Rules you’ll find sections like the Standard Context and Purchase Protection. Each of these is explained in this article below.
You can use these to decide what should happen if a user tries to access your product without the necessary permissions.
Standard Context
The Standard Context block gives you two conditions that you can manage. They are:
- User not logged in
- Content is locked (drip feed protected)
User not logged in
This setting allows you to manage the action to be taken when someone tries to access the product without logging in to your website.
To update the action you want when a user is not logged in, click on default site browser.
When you click default site behavior, you’ll see a popup where you can select the rule behavior from the available dropdown field.
Clicking the dropdown field will give you the following options:
- Default site behavior: This will inherit the behaviour set in your global Thrive Apprentice settings.
- Display custom content: This will allow you to display a custom content page that you can view or edit using the available options.
- Redirect to login & registration page: Selecting this option will redirect the user to the login and registration page. You can also decide which would be the default state of the form shown to the users, as well as whether you want to redirect them to the content they were trying to access after successful login.
- Redirect to custom page: You can use this option if you want to redirect the user to a custom page. You can search an already existing page from your website, or create a new one directly from this pop-up.
Content is locked (drip feed protection)
This setting is applicable when if a user has access to a product but visits content that is not yet available according to the drip schedule conditions
To manage the rule behavior in such cases, click default site behavior.
When you click default site behavior, you’ll see a popup where you can select the rule behavior from the available dropdown field.
Clicking the dropdown field will give you the following options:
- Default site behavior: This will inherit the behaviour set in your global Thrive Apprentice settings.
- Display custom content: This will allow you to display a custom content page that you can view or edit using the available options.
- Redirect to custom page: You can use this option if you want to redirect the user to a custom page. You can search an already existing page from your website, or create a new one directly from this pop-up.
Purchase Protection
You can use the Purchase protection section to create tailored messages for when users try to access a product without having purchased it.
Under the Purchase Protection section, you’ll be able to manage the rule behavior for users who haven’t purchased the product yet.
To do so, click on default site behavior.
When you click default site behavior, you’ll see a popup where you can select the rule behavior from the available dropdown field.
Clicking the dropdown field will give you the following options:
- Default site behavior: This will inherit the behaviour set in your global Thrive Apprentice settings.
- Display custom content: This will allow you to display a custom content page that you can view or edit using the available options.
- Redirect to custom page: You can use this option if you want to redirect the user to a custom page. You can search an already existing page from your website, or create a new one directly from this pop-up.
+Add Rule
The Purchase Protection section also allows you to add your own custom rules that will be applied when a user tries to access the product without purchasing it.
To add a custom rule, click the +Add Rule button seen on the right in the Purchase Protection section.
When you click the button, you’ll see a popup where you can select the access rule you want to apply. On the popup, enter the rule title and select a condition from the dropdown.
The available conditions in the dropdown are as below:
- User has purchased another product: You can select this when the user has purchased another product from your website.
- User has the WordPress role: You can select this when you want to perform an action for users with a particular user role on your website.
User has purchased another product
When you select this condition in the dropdown, you’ll see a list of products so you can select the product which when purchased you want to apply the rule.
User has the WordPress role
When you select this condition, you’ll see a list of WordPress user roles. This is where you can select the user role which when applicable the rule will be applied.
Note: You can apply multiple conditions under one rule, but you cannot apply the same condition twice.
When you select multiple conditions, the rule will be applicable when both the conditions are fulfilled.
After you add the applicable conditions, click the Next button to move to the next step.
After you select the conditions and click Next, you’ll be taken to a screen where you can select what should happen if those conditions are fulfilled.
In the first dropdown, you’ll be able to select the rule you want to apply. The available rules are as listed below:
- Display custom content: This will allow you to display a custom content page that you can view or edit using the available options.
- Redirect to custom page: You can use this option if you want to redirect the user to a custom page. You can search an already existing page from your website, or create a new one directly from this pop-up.
When you select the rule, click the Save button. This will take you back to the Access Restriction Rules page and you’ll see the newly created rule under Purchase Protection.
Hovering over the newly added rule will display a dotted patch on the left that’ll help you re-position the rule under Purchase protection when you have multiple custom rules added. You will also see the Delete option that will let you delete the custom rule.
Action Button Display
The Action Button Display allows you to control which type of button is displayed to your customers when they have not yet purchased the product.
To select the action button to be displayed, click on display call to action button.
When you click that option, you’ll see a popup where you can select an option from the dropdown field. The options in the dropdown are as follows:
- Display call to action button: This will let you display a call-to-action button.
- Display buy button: This will let you display a buy button. When you select this option, you will be able to select the provider. The currently available options are Stripe and Custom payment.
We’ve just seen how you can manage access restriction rules at product level.
These access restriction rules that you apply at product level will overwrite the settings you set through the global Thrive Apprentice access restriction rules.
Next, do you want to add dynamic access restriction rules in Thrive Apprentice? Here’s a document that’ll help.