Before to start it’s necessary identify which template you are using for Magento. To do that, open the root folder of your site by an FTP client and go into the folder web/app/design/frontend/
In this folder there are the templates installed. Usually are “base”, “default” and a third theme. The latter probably is yours.
For example, if your template is “custom”. You should go to the directory
Clearly instead of “custom” you should have the name of your template.
At this path you’ll find the file “success.phtml”, that’s the file the we were looking for. Open it with your text editor (no word/wordpad/openoffice).
The file success.phtml changes from template to template, but we can assume that we won’t generate issues adding our code to the bottom of the file. Paste the code below at the end of the file
<?php $orderObj = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); $_totalData =$orderObj->getData(); ?>
This code allows us to get the value of the two variables: the total order and the id of the order. Those variables should be used in our sales tracking code.
The variables are :
Total order : $_totalData[‘grand_total’]
Order ID : $this->getOrderId()
Right after the code added above we can add the Kelkoogroup script.
As you can see, Kelkoo Sales Tracking requires a few details of the order.