Integration For osCMax

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.

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 checkout_success.php
2. In the open file, locate the following line:

<!– header //–>
<?php require(DIR_WS_INCLUDES . ‘header.php’); ?>
<!– header_eof //–>
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’]);
?>

3. Save and close the file.

Scroll to Top