## Managing Affiliate Programs

Affiliate programs are the ideal way to make your website more profitable. Your website visitors can register as your affiliate online, obtain the linking code (URL that redirects to your online store) to be placed to their websites and start generating sales for you. In this case, a new Marketing Campaign is added automatically, and you can count hits and orders placed by your affiliates websites visitors. Your affiliate program participants will also automatically get the customer accounts with access to the Parallels Business Automation - Standard Control Panel.

The Parallels Business Automation - Standard Messenger is pre-configured to send the notification about new marketing campaign both to your account administrator e-mail and to your affiliates (with the affiliate linking code and URL to the Parallels Business Automation - Standard Control Panel).

The PHP store spipped with Parallels Business Automation - Standard provides the pre-defined website page template for the automated affiliates sign-up page. By default, this page is hidden. To show it at your website, you need to edit the site header file.

In a few words, to set up the afiliates signup page for your website:

1. Configure the Affiliates page: Open the `/var/opt/hspc-frontend/affiliates.php` file and add a campaign title, campaign info, and a feedback text.
2. Show the Affiliates page at your website: Edit the `/var/opt/hspc-frontend/templates/header.inc` file.

Now, each step in details.

To configure the Affiliates page:

1. On your Management Node, open the `/var/opt/hspc-frontend/affiliates.php` file. Edit the config section of the file, replace the %text% with an actual content.
2. `$campaign_title` - The title that will be displayed at the top of the Affiliates page. In addition, this title will be used to name all the marketing campaigns created online under the Marketing Director > Marketing Manager > Campaigns. This title is like a tag for you to understand that a campaign has been created online. Later you can change campaign titles.
3. `$campaign_info` - Additional information about affiliates signup conditions, for example the conditions of affiliate partnership like Pay-Per-Sale, Payout Amount, Additional Payout Amount, Initial Desposit, Payout Threshold, Payout Duration.
4. `$campaign_redirect_to` - By default, this variable is assigned the expression used for a linking code generation, and your Management node URL is used as a basis for a linking code. If your store is at your Management Node, leave the default value. If your store is installed at a separate server, then explicitly specify your store URL as this variable value.
5. `$campaign_feedback_text` - the message that will be displayed at the store page after an affiliate fills the Affiliate application form and submits it (for example, acknowledgement).

To show the Affiliates page at your website:

1. On your Management Node, open the the `/var/opt/hspc-frontend/templates/header.inc` file.
2. Edit the Top menu section. If the Affiliates reference is commented, then discomment it, if the Affiliates link is absent, add it: `<a href="./affiliates.php" class="top_menu_items">Affiliates</a>`

Please send us your feedback on this help page