Using Pro and Free tags in your code

We're getting the question pretty often.. "Are you maintaining Free and Pro development environments?" The answer is very short... No! Below we will show you how we maintain all components (Pro or Free) within one development environment. We have specific tags inside our code which is not visible for you as customer as you have downloaded built code. 

During the release build, the component builder is removing code for free and pro (depends on your build) versions. Below we will give you an example of a part of the script. 

Code Example

defined('_JEXEC') or die;

/* >>> [FREE] >>> */
// This is only available in the Pro version.
/* <<< [FREE] <<< */

/* >>> [PRO] >>> */

jimport('joomla.application.component.view');

class RDSubsViewCoupons extends JViewLegacy
{
function display($tpl = null)
{
$this->pagination = $this->get('Pagination');
$this->items = $this->get('List');

parent::display($tpl);
}

}
/* <<< [PRO] <<< */

OK, looks good! But what does this script? All parts between /* >>> [FREE] >>> */ and /* <<< [FREE] <<< */ will be removed automatically when building a PRO version of your extension. Also the Pro tags will be removed as you don't want to show them to your customers. This way only the PRO code will be kept in the script. In the example above it is removing a complete view, but you can use this anywhere in the script. 

When you create a Free version of your extension, then the builder is removing the Pro parts (everything between /* >>> [PRO] >>> */ and /* <<< [PRO] <<< */ in the script. This way you're able to maintain Free and Pro versions from one development environment. 

** Special Thanks to Peter van Westen from Regular Labs for helping me out with this awesome piece of code! **

Why Choose Us?

Latest Joomla! & PHP Versions!

We're always developing our components in the latest Joomla! and PHP environments! No need to be scared to run in troubles when your hosting company is updating their servers. We have probable tested it already ;)

100% Open Source

Our code is fully Open Source, so you can make changes to the code as much as you like! Making changes to the code? We can advise, but don't support your custom code. Using overides is the best thing to do!

Responsive Design

All extensions are as responsive as possible built on the shipped Joomla Bootstrap 2.x.x Library! We will soon make all our products compatible with Boostrap 3 to make sure it works on all Bootstrap versions.

Easy updating by the Joomla Updater

All components are being shipped with Joomla Update support, this means you don't have to upgrade manually anymore! The only thing you need to do is making sure you have entered a valid Download Key!

Quality Guaranteed

All our components are fully based on the Joomla API, this gives us flexibility so we can guarantee the quality of our products. When Joomla moves on, we're also moving on!

Service & Support

All our components are fully based on the Joomla API, this gives us flexibility so we can guarantee the quality of our products. When Joomla moves on, we're also moving on!