How to restrict / limit viewing of certain categories with Subscription Plans App in DJ-Classifieds

How to restrict / limit viewing of certain categories with Subscription Plans App in DJ-Classifieds

Sometimes you need to limit access for viewing certain categories for your users. With Subscription Plans App   you can create a plan that will allow users to view categories you selected only when their plan is active. This is another way you can charge your users! 

It would help if you had  Subscription Plans App  installed and enabled in DJ-Classifieds. 

Create Joomla Group

First, create New Joomla Group by going to Users -> Groups -> Add New Group


Give your Group Title (1), and select Group Parent to " Registered " (2) (in certain situations you can use different groups, but for this tutorial we'll stay with "Registered") and click " Save & Close "(3)


Create Joomla Access Level

Now create a Joomla Access Level that will allow users that are in it to access the category. For the convenience of this tutorial I've created Access Level " DJCF-Restricted " in Joomla.

To set up a new Access Level in Joomla, do the following:

In Joomla backend go to Users -> Access Levels -> Add Access Level


Give your Level Title (1), and select User Groups Having Viewing Access to " DJCF-Restricted " (2) and click " Save & Close "(3)


Create (or edit) DJ-Classifieds Category

Now navigate to Components -> DJ-Classifieds -> Categories -> New or if you're editing the category open it. 

Give your category a name and set all needed settings. I've named the category " Restricted " (this is our demo category that we'll be restricting access to) for convenience of this tutorial.
Now open " Access Restrictions " (1) tab: 


and click Save (2) (it's needed when you're creating a new category).

Once the category is saved, go back to the " Access Restrictions " tab and set as explained:


  1. Set Viewing Access Restrictions to the Access Level we've created ( DJCF-Restricted in my case)
  2. Set Viewing advert details Access Restrictions to the same Access Level
  3. Select " Restricted " in Adding Access Restrictions and in the multi-select box choose DJCF-Restricted
  4. Click Save & Close

Subscription Plans settings

We need to create the subscription plan that will allow for viewing and adding the adverts to the category " Restricted. "

Go to Components -> DJ-Classifieds -> Subscription Plans -> New


Here in " New " and " Params " tabs, you need to set all needed settings. You can learn more about subscription plans settings here .

The most important part here is selecting the group we've created in Assign to group  setting.

This way after user purchases this plan he'll be automatically assigned to this Joomla User Group.

Checking the front end of your site

Things to check:

  1. Check if the category " Restricted " is not visible for non-registered users - should NOT be visible
  2. Check if the category " Restricted " is not visible for regular registered users (those without the Subscription Plan we have created earlier) - should NOT visible
  3. Check if the regular user can't see the category when submitting new advert - they should NOT see it

If you've set all up correctly the category should not be visible for non-registered and regular registered user.

Make a test with a new Subscription Plan

Now make a test if the plan was set correctly.

Go to your Subscription Plans page on your website's front end and purchase the Plan we've just created


After the successful payment the plan is activated (you can manually accept the payment in DJ-Classifieds Payment section)


Now you should see the category on categories lit, and add adverts to this category.

Once the subscription from the Subscription Plan ends the user will be automatically unattached from the DJCF-Restricted user group and won't see the category "Restricted" until the plan is activated again.

You need to configure Cron job on your server so the user will be un-attached from the Joomla User Group when his Subscription Plan expires! See more about the  cron task in DJ-Classifieds .

This is how Subscription Plans App for DJ-Classifieds works. 

    Please note that a new version of the knowledge base is available at

      • Related Articles

      • Subscription Plans DJ-Classifieds App

        Subscription Plans App provides you with the option to give your users a way to purchase packages of a pre-configured set of adverts. This way, they do not need to pay per advert each time, have the credit of ads to use during predefined time. ...
      • How to use DJ-Classifieds Subscription Plans User Plugin

        This plugin allows assigning Subscription Plan from Subscription Plans App for DJ-Classifieds to any Joomla User Group. Once set and enabled users from particular User Group will get a free subscription plan. You can also decide if the plan will be ...
      • Coupons DJ-Classifieds App

        The Coupons App basically ads the discount coupons functionality to DJ-Classifieds. Below you’ll find steps to install and enable this functionality as well as a description of all possible options you can get with it. Installation Just install the ...
      • Multicategories DJ-Classifieds App

        With Multi categories  App for DJ-Classifieds , it's possible to submit one advert to more than one category. The administrator can decide the maximum number of categories the advert can be submitted to. In this tutorial, I'll explain how the Multi ...
      • Copy adverts with DJ-Classifieds subscriptions plans support

        The DJ-Classifieds user can have the possibility to copy a single advert  To make it work it is required to enable the "Allows the user to copy advert" option available in the DJ-Classifieds general settings in the "Global" tab. After enabling it, ...