Contents |
When you develop a module or plug-in it must belong to a product. Since you would be releasing your module or plug-in publicly it needs to be part of your unique product. Everything you create within the AdminCP requires that it be part of a product. All the menus, phrases, settings etc... that is provided with the script when you first install it is part of our product, which has the unique ID phpfox. If you add menus or settings for example to your product and once you export your product it will be included in an XML file. From there you can release this as your product for others to install on their site.
Follow the guide below to create your first product. When creating your product add the values we added as we plan on using our sample product throughout this manual.
Log into your AdminCP and navigate to:
Extensions >> Product >> Create New Product
Next we need to fill out the form.
This is the unique product ID you must create. It can have alphanumeric characters and the underscore (_). It must be lowercase. If you plan to release your product publicly it is vital you create a unique ID for your product. If you were to create a product ID that another developer has created this will cause problems for the person installing both products. In order to create a unique ID we ask that you use your company or developer alias as a prefix. For example our product name is phpfox. We also include another product phpfox_installer, which is used during the install or upgrade of the script. As you can see we used phpfox as the prefix.
For this field add the following product ID:
phpfox_sample
Here you can add the title of your product, which will be displayed when listing all the products.
Add the following:
phpFox Sample Product
Short description about your product.
Add the following:
This is a sample product
Current version of your product.
Add the following:
1.0
URL of your website. Usually the company URL or developers home page can be added here.
Add the following:
http://www.phpfox.com/
URL of where the phpFox2 should check if a new version of your product has been released.
Add the following:
http://www.phpfox.com/version.php
Whether the product is active or inactive. Select:
Yes
Submit the form. Now you have created your first product!