Integration For CS Cart

Step 1.

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

$order_info = fn_get_order_info($_REQUEST[‘order_id’]);

3. Insert after it:

//FeedPlatform Conversion Tracking Code
$order_products_id = ”;
if (is_array($order_info[‘items’])) {
foreach ($order_info[‘items’] as $item) {
$order_products_ids .= $item[‘item_id’] . ‘|’;
}
$order_products_ids = substr($order_products_ids, 0, -1);
}
$view->assign(‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’, ‘<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $order_products_ids . ‘&order_total=’ . $order_info[‘total’] . ‘&order_id=’ . $order_info[‘order_id’] . ‘” />’);
//End of FeedPlatform Conversion Tracking Code

4. 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 skins/basic/customer/views/checkout/complete.tpl or skins/[your_active_skin_directory]/customer/views/checkout/complete.tpl (if exist)

2. In the open file, insert the following line at the beginning of the file:

{php}
echo htmlspecialchars_decode($this->_tpl_vars[‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’]);
{/php}

3.Save and close the file.

Scroll to Top