Affiliates for all – Magento integration

Affiliates for all – Magento integration

Recently one of our clients needed and info on Affiliate module for Magento. When it comes to Magento, word “module” is loosely related. Sure, every module needs config files in order to report it’s “connection” to Magento core. Modules like this, Affiliates for all, are modules I consider loosely related to core. They are in one or another way connected to Magento but they are self standing, independent, applications.

Installation of Affiliate module is a trivial task. It mostly comes down to extracting downloaded archive file to a web accessible directory (to your server, hosting) and configuring the file. (For security reasons, try renaming the to, plus changing the /lib/bootstrap.php on line 23 to include After importing affiliates.sql into the database our installation is done.

To configure Magento part, one needs to copy required files form /carts directory of Affiliate module and then (turn off Cache) go to System > Configuration and set the required options. After that you can go back to your Affiliate For All application, upload some banners and set their url links to point to your Magento shop. When you test banner the links (click on one of them to get you to Magento store, then Magento store url should have a little GET variable in url like ?ref=someNum). Now when you do the entire checkout process, order info gets recorded to Affiliate For All application.

If you wish to play with Affiliate For All without installing it, you can check out the demo (just use “Admin” both for user and password).

You made it all the way down here so you must have enjoyed this post! You may also like:

How to connect Google Analytics 4 to Magento 2 Bojan Mareljic
Bojan Mareljic, | 35

How to connect Google Analytics 4 to Magento 2

3 best open-source eCommerce platforms in 2021 Zrinka Antolovic
Zrinka Antolovic, | 7

3 best open-source eCommerce platforms in 2021

Building Magento marketplace for Drazen Karacic-Soljic
Drazen Karacic-Soljic, | 11

Building Magento marketplace for


  1. hello there is anyone who is provide me free affiliate marketing module supportable in magento1.9.

  2. I am getting the following error when i access the affiliate page

    <?php /*

    Copyright (c) 2008 Metathinking Ltd.

    This file is part of Affiliates For All.

    Affiliates For All is free software: you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    Affiliates For All is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Affiliates For All. If not, see


    $logon_not_required = TRUE;
    require_once ‘../lib/bootstrap.php’;

    $template = new Template(‘index’);

    $welcome = __(‘Welcome’);
    $template->set(‘title’, “$affiliate_programme_name: $welcome”);


  3. Magento is a VERY “intense” shopping cart, but AWESOME because it has many features. Programming is not easy. PAP did not help me set Magento up. They don’t even help with the Magento integration. However, the PAP extension programmer will help to a point.

    It took me over 3 weeks to setup PAP because I needed to have it a certain way. Initial setup took less than 30 minutes.

  4. Thanks Sheba. I will consider PAP. Looks good. Can I ask about Magento? I need a shopping cart. Did you install it or did PAP help you? Is it easy. Thanks.

  5. Thanks Richard. I have been using Post Affiliate Pro which is a paid affiliate program and really like it. They have an awesome 24 x 7 support and it is working well for me. Magento also has a free integration extension which helped. Check Post Affiliate Pro out!

  6. Hi Sheba, I saw your comments at the Affiliatesforall forum. I think affiliatesforall is a deadend. I can’t even join the forum … get a system error. Looking at the dates of the posts it seems the forum has been abandoned. I doubt this software is supported anymore. Shame. I’m looking elsewhere. Let me know if you find a good affiliate system. Goodluck!

  7. Can anyone please tell me how to install this. I can’t find a step-by-step installation instructions.

    There are no carts, doc, public, jquery.ui.1.5.2 folders in my magento 1.6 install.


  8. Hi.
    i’m using magento v1.5.1.0 , affiliates-1.2.1 and getting same problem. order not record on affiliate panel. my setting are:

    magento installation are:
    affilates link::
    $affiliate_referrer_parameter = ‘ref’;
    $affiliate_data_parameter = ‘key’;
    $affiliate_cookie = ‘affilates’;
    $cookie_lifetime = 30 /* days */;
    $cookie_domain = ‘’;
    $currency = ‘$’;
    $currency_code = ‘USD’;
    $store_home = ‘’;
    $commission_percent = 10;
    $commission_fixed = ‘1.00’;
    $lifetime_revenue_share = TRUE;
    $session_cookie_name = ‘AfASESSIONID’;

    kindly tell me where i’m wrong

  9. Hi,
    i’m facing problem in import order in affiliate for all from magento, i check all is correct but i’m not sure about cookies variable. what i write in cookies..

  10. AFA is spawnning too many process and slowing down the server. I even got a violation notice from my vendor.

  11. Million thanks for
    [b]To configure Magento part, one needs to copy required files form /carts directory of Affiliate module and then (turn off Cache) go to System > Configuration and set the required options.[/b]

  12. HI There,

    I want to use the product attribute value to set the commission for Affiliate for all module. Can you suggest me how to make the commission dynamic.

    Darshana Sangwan

  13. Very helpful content. Thanks for that.
    I have an issue regrading the commission on a refereed customer’s order. I want to use two commissions. For first time commission of $25 and a future order commission of $12. Is that possible through the magento attributes, so that these values can be modified by admin.

    Thanks in advance.

  14. I found that all the documentation is in the documentation PDF on the AFA website.

    A couple of questions though…

    – I have two Websites installed in my Magento with two diferent Currencies… so whats the right way to set up affiliates/ for these variables:

    // The currency symbol and SWIFT code:
    $currency = ‘$’; //my otherone is also $
    $currency_code = ‘USD’;

    // This should be set to the base of your Magento installation:
    $store_home = ‘’; //my other websites is

    – Same question will go for $cookie_domain = ‘’; // since I have also

    Good stuff!!
    Thank you,

  15. Hello! While this sound amazing, is there a step by step tutorial available you can share?

    Thanks for all the good stuff!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.

Tell us about your project

Drop us a line. We'd love to know more about your project.