WooCommerce Integration

Support Request

If you need help with restrict, submit a support request, and we will get back to you shortly.

Submit a Support Request

Restrict WordPress plugin features integration with WooCommerce allowing you to use WooCommerce specific criteria to restrict the content. Surely, this can only work if the customer that is purchasing something through WooCommerce on your website is registered user. So, to make sure that is the case, you should navigate to WooCommerce Settings -> Accounts & Privacy tab and make sure that an option Allow customers to place orders without an account is unchecked as that will prevent customers from being able to purchase the product if they do not have an account. For convenience purposes, you can enable Allow customers to create an account during checkout and make it easier for them to create an account as part of the checkout process.

Here are all the options available with Restrict and WooCommerce installed on your website.


Custom messages

If you have WooCommerce installed on your website, you will notice that there is another tab within Restrict settings named WooCommerce.

In this area, you will be able to set the custom messages that will be displayed to the visitors that are attempting to view the content which is restricted based on WooCommerce based criteria.

  • Any product – this message will be displayed to the user who haven’t purchased any products while trying to view the content that requires at least one WooCommerce product purchased.
  • Specific product – a message that will be displayed to the user that haven’t purchased a specific product required to access the content. You can use [rsc_woo_product] placeholder to display the title of the required product within the message. Also, you can use a placeholder [rsc_woo_product_links] to display the title of the required product along with the URL that will lead the user to the product page so they can purchase a product required to view the restricted content.
  • Specific product (limited time) – a message that will be displayed to the customer that purchased a product that is set with specific time expiration and that time has now expired.


Page/post content restriction

When restricting the content of the whole page or post, you will notice that the Content Available To dropdown menu now contains another item named WooCommerce Users.


If you select this criteria, two additional options will appear:

  • Any product – user must purchase any WooCommerce product to be able to access the content of this page or post
  • Specific product – content will be visible to the user who purchased a specific WooCommerce product (you will need to select the exact product below this option). Within this option, you can also select whether the content will be available indefinitely or you can limit the time during which the content will be available after customer has purchased this product. If Limited time after purchase is selected, you will be able to set the number of days, hours and minutes. To find out more about the use case of time-limited content restriction, please visit this page.


Restrict part of the content

When WooCommerce is installed and activated on the same website where you’re running Restrict, an additional area, named WooCommerce Users  will be available in the Shortcodes tab of Restrict.

Within this area, you will be able to select WooCommerce related criteria to generate the shortcode. For example, you can require user to purchase any WooCommerce product or specific product(s) in order to access certain content. More details about using shortcodes can be found here.

Additionally, if needed, you can also add a custom message by using a protected_message argument as part of the shortcode. For example, your shortcode can look something like this:

[rsc_restrict_content allowed_to=”woo” woo_options=”anything” protected_message=”YOUR MESSAGE HERE”]Your content here[/rsc_restrict_content]


Category restriction

When creating new or editing existing post category, you will be able to select WooCommerce Users to restrict a whole category using WooCommerce specific criteria:


Widget restriction

You can also restrict visibility of certain widget based on WooCommerce criteria. To do so, when creating new or editing existing widget you should select WooCommerce Users from the dropdown menu as displayed below:

This will be available for each widget on every available widget area of your website so you can control which WooCommerce users can see which widget.


Menu item restriction

Much like restricting widgets, you can restrict each menu item as well. While adding new or editing existing menu item, you can select WooCommerce Users from the dropdown menu and then select WooCommerce specific criteria required for the menu item to be displayed.