Plugin developement

Overview

NOTE: DO NOT MAKE CHANGES IN THE Definition.class.php file if the plugin is active. Post Affiliate Pro is built on GwtPhp Framework which allows plugins to be connected to the application. All plugins need to be placed in plugins/ folder and written in PHP. You can find some plugin examples bellow. If you want to create new plugin you have to follow these steps: - create folder in plugins/ directory. e.g plugins/SysInfo/ - create file Definition.class.php in this new folder Format ...

Change default view in Affiliate panel

NOTE: There is no need to utilize this plugin anymore, since you can already change the default view of grids (which column shall be visible and which not) of affiliate panel directly in the merchant panel: http://support.qualityunit.com/356960-Change-default-view-in-affiliate-grids (http://support.qualityunit.com/356960-Change-default-view-in-affiliate-grids) This plugin changes default view of Commissions grid in affiliate panel. Default view of other grids can be changed same way too. If the...

Smarty plugin - Example

Post Affiliate Pro allows to create custom smarty plugins. The plugin will affect variable replacement in templates. This is very useful when you want to change default behaviour. During this tutorial we will make simple plugin, that will change the variable by replacing some string in it. In the example I will use variable '$sale_approve_link' from 'Merchant - new sale/lead' email template. Let's assume that our PAP is using 'https://' url. In default behaviour the variable will be filled with...

Example plugins

Here you can find some example plugins UserHooksPlugin This is example of plugin that can handle various affiliate actions like signup/profile update/save/delete. In default implementation, it writes log message into your Post Affiliate Pro logs about current action. Possible scenarios, you can cover with this plugin: * new user signup (successful or fail - two different possibilities) * new user creation through API * new user creation through application (merchant panel) *...