Integration For osCommerce

Step 1.

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

// load the after_process function from the payment modules     $payment_modules->after_process();

3. Insert after it:

//FeedPlatform Conversion Tracking Code
$_SESSION[‘order_id’] = $insert_id;
$_SESSION[‘order_total’] = $order->info[‘total’];
$order_products_id = “”;
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $order_products_ids .= ($i!=0 ? ‘|’ : “”) . $order->products[$i][‘id’];
}
$_SESSION[‘order_products_ids’] = $order_products_ids;
//End of FeedPlatform Conversion Tracking Code

4. Save and close the file.

Step 2.

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

    <!– header //–>    <?php require(DIR_WS_INCLUDES . ‘header.php’); ?>    <!– header_eof //–>

3. Insert after it:

<?php
echo ‘<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $_SESSION[‘order_products_ids’] .
‘&order_total=’ . $_SESSION[‘order_total’] . ‘&order_id=’ . $_SESSION[‘order_id’] . ‘” />’;
unset($_SESSION[‘order_products_ids’]);
unset($_SESSION[‘order_total’]);
unset($_SESSION[‘order_id’]);
?>

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

4. Save and close the file.

Scroll to Top