Integration For Prestashop

Step 1.

1. Open the file controllers/OrderConfirmationController.php
2. In the open file, locate the following line:

public function process()
{
parent::process();
Insert after it:
//FeedPlatform Conversion Tracking Code
$order = new Order((int)($this->id_order));
$order_products = $order->getProductsDetail();
$order_products_ids = ”;
if (is_array($order_products)) {
foreach ($order_products as $product) {
$order_products_ids .= $product[‘product_id’] . ‘|’;
}
$order_products_ids = substr($order_products_ids, 0, -1);
}
self::$smarty->assign(
‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’,
‘<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $order_products_ids .
‘&order_total=’ . $order->total_paid . ‘&order_id=’ . $order->id . ‘” />’);
//FeedPlatform Conversion Tracking Code

3. Save and close the file.

Important: Please replace <ACCOUNT_ID> with actual Account ID. You can find Account ID at Edit Campaign -> Traffic Tracking -> Conversion Tracking.

Step 2.

1. Open the file themes/[your_active_skin_directory]/order-confirmation.tpl
2. In the open file, insert the following line at the beginning of the file:

{$FEEDPLATFORM_CONVERSION_TRACKING_CODE}

3. Save and close the file.
4. Clear cache on the store.

Scroll to Top