Affiliates for all – Magento integration

Featured Image

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 config.inc file. (For security reasons, try renaming the config.inc to config.inc.php, plus changing the /lib/bootstrap.php on line 23 to include config.inc.php). 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).

11
Top

Enjoyed this post?

Subscribe to our RSS Feed, Follow us on Twitter and spread it to your friends!

Author

Branko is Inchoo's CTO with over 3 years of active / everyday full time Magento development.

Other posts from this author

Discussion 11 Comments

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

    Thanks for all the good stuff!
    David

  2. 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/config.inc.php 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 = ‘http://example.com'; //my other websites is http://example.com/intl

    - Same question will go for $cookie_domain = ‘example.com’; // since I have also example.com/intl

    Good stuff!!
    Thank you,
    David

  3. Daisy

    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.

  4. Darshana

    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.

    Thanks,
    Darshana Sangwan

  5. test

    the PW and UN ‘admin’ do not work.

  6. elek

    @test
    use Admin witch capital A.

  7. Ish

    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]

  8. basant

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

  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. 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: http://www.printoexpress.co.uk
    affilates link:: http://www.printoexpress.co.uk/affiliates
    $affiliate_referrer_parameter = ‘ref’;
    $affiliate_data_parameter = ‘key’;
    $affiliate_cookie = ‘affilates’;
    $cookie_lifetime = 30 /* days */;
    $cookie_domain = ‘printoexpress.co.uk’;
    $currency = ‘$’;
    $currency_code = ‘USD’;
    $store_home = ‘http://www.printoexpress.co.uk';
    $commission_percent = 10;
    $commission_fixed = ’1.00′;
    $lifetime_revenue_share = TRUE;
    $session_cookie_name = ‘AfASESSIONID’;
    date_default_timezone_set(‘Europe/London’);

    kindly tell me where i’m wrong

  11. Sheba

    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.

    Thanks.

Add Your Comment

Please wrap all source codes with [code][/code] tags.
Top