Beiträge

Integrate affiliate tracking codes in Prestashop

Hi,

I’ve opened now my first online shop and quickly the question came up… how to find customer. Or who could help me with it.
Quickly I found one possible answer… affiliate marketing. It’s anyway my preferred method from all I know and for which my wallet is big enough. Everything else is not economical or just to expensive… most both.

So, I started a campaign at my favorite affiliate network. And then the big question… how to integrate the tracking code in my Presta shop system? :o
That is not so easy, because there are variables to send.

Luckily we have the internet. :) And I found the answer in a forum. Here the quote summary of PaoloPinkel:

 

1.) Add this to the init.php:


@session_start();
if(Tools::getValue('belboon')){
  $_SESSION['belboonSession'] = Tools::getValue('belboon');
}

2.) And this to the order-confirmation.php:


$smarty->assign('belboon',$order->getTotalProductsWithTaxes());
$smarty->assign('belboonSession',$_SESSION['belboonSession']);

3.) The code from Belboon has to be added into the order-confirmation.tpl. In this sniped you need to replace NETTOWARENWERT (sorry, don’t know what is written in the english version ‚Net value‘?) with {$belboon}, ORDERCODE with {$id_order} and xxxx,yyyy with {$belboonSession}.

That’s it. If you have to transfer VAT then you have to reduce it from getTotalProductsWithTaxes() somehow. Else they pay to much commission.

(Quote from http://www.homepage-community.de/…)

PaoloPinkel is using the affiliate network Belboon. I use a different network. But the concept is the same. You just need to customize the variables.

Thank you to PaoloPinkel and Chris.

Best wishes
Gordon

Affiliate Tracking Code in PrestaShop einbinden

Hallo zusammen,

da ich jetzt meinen ersten eigenen Online-Shop eröffnet habe bin ich auch schnell auf die Frage gestoßen wie die Kunden zu mir finden. Oder wer mir dabei helfen kann.
Schnell war eine Antwort gefunden… Affiliate Marketing. Das gefällt mir im Moment eh am besten von den Marketingmethoden die ich so kenne und wofür mein Geldbeutel reicht. Alles andere ist entweder unwirtschaftlich oder schlicht zu teuer… meist beides.

Also habe ich bei beim Affiliatenetzwerk meines Vertrauens eine neue Kampagne gestartet und dann die große Frage… wie kriege ich den Tracking-Code in meinen Presta Shop System? :-o
Das ist gar nicht so einfach da ja auch noch variablen übergeben werden müssen.

Zum Glück gibt es ja das Internet :-) Und so wurde ich in einem Forum fündig. Hier das Zitat der Zusammenfassung von PaoloPinkel

 

1.) In die init.php gehört folgendes:


@session_start();
if(Tools::getValue('belboon')){
  $_SESSION['belboonSession'] = Tools::getValue('belboon');
}

2.) In die order-confirmation.php gehört:


$smarty->assign('belboon',$order->getTotalProductsWithTaxes());
$smarty->assign('belboonSession',$_SESSION['belboonSession']);

3.) In die order-confirmation.tpl, gehört der von Belboon vorgegebene Code. In diesem Code-Schnipsel ersetzt man NETTOWARENWERT durch {$belboon}, ORDERCODE durch {$id_order} und xxxx,yyyy durch {$belboonSession}.

Das war’s. Wer Umsatzsteuer abführt, muß von getTotalProductsWithTaxes() irgendwie noch die Steuern abziehen, sonst zahlt er zu viel Provision.

(Zitat von http://www.homepage-community.de/…)

PaoloPinkel hat sich bei Belboon angmeldet. Ich nutze ein anders Netzwerk. Ist aber das gleiche Prinzip. Man muss nur die Variablen anpassen.

Danke an PaoloPinkel und Chris.

Viele Grüße
Gordon