Prestashop “Affiliates For All” Modules Integration – AFA Installation

December 2nd, 2009 by Ardian Yuli Seytanto Leave a reply »

Prestashop - Affiliates for All Integration

Prestashop – Affiliates for All Integration

If you are running an e-commerce site, you almost certainly have affiliates and need affiliate management software. Affiliates for All is the new affiliate management system that everyone is talking about. We will explain Affiliates for All integration with Prestashop in this tutorial series. In this post we will cover how to setup Affiliates for All in your webserver in simple way. We take some part of this tutorial from Affiliates for All manual. Please refer to this manual if you want more detailed instruction.

#1 Download Affilates for All for free

[ ] affiliates-1.2.0.tar.gz 01-May-2009 21:08 4.2M

You can download Affiliates for All from here. If you have problems, you can also download from SourceForge project. The latest production version of Affiliates for All is 1.1.3.

#2 Extract Affiliates for All inside your Prestashop root

After you have downloaded affiliates-1.2.0.tar.gz, extract this zip files in your Prestashop installation root. So I got …/prestashop/affiliates-1.2.0/ folder in my webserver. For you comfort, rename affiliates-1.2.0 to aff for example.

#3 Create MySql database for Affiliates for All

Please read our previous tutorial how to setup mysql database for your web application. After this step, you should know where is your mysql server installed, whether it installed in localhost (same as your webserver) or in other server, mysql account user name, mysql account password, and off course your mysql database name. And the last step is import affiliates.sql to your new Affiliates for All database. This file is in aff directory.

#4 Configure Affiliates for All

Rename config.inc.sample to config.inc This is most important part to ensure you Affiliates for All work with Prestashop. We include some important configuration from my own to make this thing more clear.

$store_home = 'http://www.yourpresta.com/modules/affiliatesforall/affiliate_home.php';

This variable is the URL to your affiliate_home.php, modify this line according to your prestashop web.

$rpc_secret = '12345';

Make this variable unique, this is key to communicate between prestashop and Affiliates for All. You will use this variable in Prestashop Back Office.

$database_dsn = 'mysql:dbname=your-database-name;host=127.0.0.1';
$database_username = 'your-mysql-username';
$database_password = 'your-mysql-password';

You have to understand this configuration, this variable is needed by Affiliates for All to connect with MySql server. Host 127.0.0.1 is alias for localhost, if your web hosting provide different ip address for your mysql server, you have to change it accordingly.

After this step, you have complete Affiliates for All installation. You can access your AFA in http://yourprestashop.com/aff . Please notice that aff is actually affiliates-1.2.0 which have been renamed to aff.

Affiliates for All Welcome - Prestashop AFA

Affiliates for All Welcome - Prestashop AFA

Login with default administration account

username : Admin

password : Admin

Login with default user and password - Prestashop Affiliates For AllLogin with default user and password – Prestashop Affiliates For All

Successful Login - Prestashop Affiliates for AllSuccessful Login – Prestashop Affiliates for All

Your Affiliates for All is ready to use. In the next post we will cover Affiliates for All modules installation for Prestashop. Thanks for reading and for your comments.

This post is inspired by http://bloggsblog.com/2009/09/prestashopafa-integration-detailed-setup/

prestashop affiliates for all prestashop module affiliation prestashop affiliation install affiliates for all in prestashop prestashop affiliates for all
Bookmark and Share

This links go to same article

prestashop affiliateAffiliates for All prestashopaffiliate prestashopaffiliate for all prestashopprestashop affiliatesafa prestashopprestashop affiliate for allFatal error: Affiliates for All requires the following PHP settings: magic_quotes_gpc off magic_quotes_runtime off magic_quotes_sybase off in bootstrap php on line 88Prestashop affiliate moduleprestashop affiliate formlinks manager module for prestashopmagic_quotes_sybase prestashopmodule affiliation prestashopprestashop AFA module 1 3prestashop admin tab instal table in dbPOST Affiliate prestashopprestaqcart and affiliate software integrationprestashop access variable hookprestashop affiliate softwareprestashop seo url dont work on localhost

Related posts:

Prestashop “Affiliates For All” Modules Integration – Configuration Testing

Hello everyone, I’m sorry if I didn’t update this “Prestashop tips and trick” for a long time. My wife was pregnant and our doctor says that on ends of March my baby estimated to be born, so I have been in busy days since birth need a lot of moneys....

Prestashop Module Affiliates for All Installation

This tutorial require you to understand Affiliate for All (AFA) installation, please read our previous post about Prestashop “Affiliates For All” Modules Integration – AFA Installation. In this tutorial we will explain about Prestashop Modules Affiliates for All installation. Here are the steps : #1 Download, Upload and Install Prestashop Modules...

Setup Mysql Database – #2 DIY PrestaShop Installation Tutorial Series

This is part #2 from our PrestaShop Installation Tutorial Series. You can read our previous post Uploading PrestaShop files – DIY PrestaShop Installation Tutorial Series in Site5 web hosting. This step is merely same in other web hosting, please try it although with different screenshot. #1. Manage MySql Database #2...

Uploading PrestaShop files – DIY PrestaShop Installation Tutorial Series in Site5 web hosting

This is primary post for my PrestaShop Installation Tutorial Series. In this tutorial i’ll using SSH access from Site5 web hosting company to cut my PrestaShop upload time. If you dont have any account in this great web hosting, you can buy there or leave respond if you want same...

Always connected with our Prestashop Info. We don't send spam. Email address:

20 comments

  1. Joseph says:

    Hi,
    I installed it following all the instructions at http://bloggsblog.com/2009/09/prestashopafa-integration-detailed-setup/ but its not tracking the sales or orders, do you have any idea how this works?

    • Ardian Yuli Seytanto says:

      Hello Joseph,
      We have checked this integration in our localhost system, and everything is good after a lot of time we tried and got errors. This tutorial is just the first part of our AFA Integration Tutorial series. We will publish next posts in a few days, including tutorial how to test this integration.
      Thanks.

  2. Joseph says:

    Hey Ardian,
    i have made dummy orders and shipped them too but no luck. I realize that, the tables in my mysql db aren’t being populated after orders are made.

    ps_affiliatesforall 0
    ps_affiliatesforall_carts 0
    Both showing zero records…
    Will be waiting for your posts in the next days. Really need the affiliate system to work.

    Thanks a lot.

  3. sheza says:

    url untuk affiliate membernya yg ini ya mas (?):
    localhost/ps125/modules/affiliatesforall/affiliate_home.php?ref=1

    duh, panjang amit .. :d

  4. Yann says:

    Hi,
    when i configure, i have got a problem:

    Fatal error: Affiliates for All requires the following PHP settings: magic_quotes_gpc off, magic_quotes_runtime off, magic_quotes_sybase off in /homez.18/produitso/www/beta2/affiliation_bretagne/lib/bootstrap.php on line 88

    $database_dsn = ‘mysql:dbname=your-database-name;host=http://www.mydomain.com’; ==> ??????

    thx a lot

  5. Igoy says:

    Thanks atas tutorialnya, setelah saya coba sesuai step2 diatas, ternyata saya menemui eror :
    “Fatal error: Affiliates for All requires the following PHP settings: magic_quotes_gpc off, magic_quotes_runtime off, magic_quotes_sybase off in /home/xxx/public_html/aff/lib/bootstrap.php on line 88″

    saya sudah cek php.ini di server saya (saya pake vps) dgn lokasi : /usr/local/cpanel/3rdparty/etc/php.ini
    hasilnya : magic_quotes_gpc off, magic_quotes_runtime off, magic_quotes_sybase off sudah terseting dalam keadaan “OFF”
    Kok masih eror ya? mohon pencerahannya. thanks

    • Ardian Yuli Seytanto says:

      Dulu waktu saya pindah laptop juga error seperti itu, ternyata php.ini nya belum diseting. Kemudian setelah update php.ini semua jalan dengan baik. Coba buat file phpinfo di folder /public_html/aff untuk mengetahui seting php untuk folder web tersebut. Siapa tahu jadi berbeda.

  6. If you didn’t fix seccussful yu can try this method : Unpack the content of this AFA PrestaShop Module to your modules directory. Go to your modules tab in the back office and click on install. You should find the module under the tools heading. If you follow this you will be install it.

  7. i have made dummy orders and shipped them too but no luck. I realize that, the tables in my mysql db aren’t being populated after orders are made. That I have the same problems.

  8. Sulistianto says:

    Subhanallaah, ternyata ada ya modul seperti ini di prestashop. Baru tahu saya, selama ini masih pake versi 1.1 sih :D

    terima kasih mas atas infonya :)

Leave a Reply