Integration For X-Cart

Contents

1 Instructions for X-Cart 4.4
2 Instructions for X-Cart 4.3 or lower versions

 

Instructions for X-Cart 4.4

Step 1.

1. Open the file include/checkout_init.php
2. In the open file, locate the following line:

$smarty->assign(‘orders’, $orders);

3. Insert before it:

$order_products_ids = ”;foreach ($orders[0][‘products’] as $product) {$order_products_ids .= $product[‘productid’] . ‘|’;}$order_products_ids = substr($order_products_ids, 0, -1);$smarty->assign(‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’,'<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $order_products_ids .’&order_total=’ . $orders[0][‘order’][‘total’] . ‘&order_id=’ . $orders[0][‘order’][‘orderid’] . ‘” />’)

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 skin/common_files/customer/main/order_message.tpl or skin/[your_active_skin_directory]/customer/main/order_message.tpl (if exist)

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.

 

Instructions for X-Cart 4.3 or lower versions

Step 1.

1. Open the file cart.php
2. In the open file, locate the following line:

$smarty->assign(“orders”, $orders);

3. Insert before it:

$order_products_ids = ”;
foreach ($orders[0][‘products’] as $product) {
$order_products_ids .= $product[‘productid’] . ‘|’;
}
$order_products_ids = substr($order_products_ids, 0, -1);
$smarty->assign(
‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’,
‘<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $order_products_ids .
‘&order_total=’ . $orders[0][‘order’][‘total’] . ‘&order_id=’ . $orders[0][‘order’][‘orderid’] . ‘” />’)

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 skin1/customer/main/order_message.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.

Scroll to Top