Integration For CubeCart

Contents

1 Instruction for CubeCart 3.xx and 4.xx
2 Instruction for CubeCart 5.xx

 

Instruction for CubeCart 3.xx and 4.xx

Step 1.

1. Open the file modules/gateway/Print_Order_Form/orderForm.inc.php

2. In the open file, locate the following line:

$print_order_form->parse(‘order_form’);

3. Insert before it:

//FeedPlatform Conversion Tracking Code    $order_products_id = ”;    if (is_array($order->orderInv)) {      foreach ($order->orderInv as $inv) {        $order_products_ids .= $inv[‘productId’] . ‘|’;      }      $order_products_ids = substr($order_products_ids, 0, -1);    }    $tracking_code = ‘<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $order_products_ids . ‘&order_total=’ . $order->orderSum[‘prod_total’] . ‘&order_id=’ . $order->orderSum[‘cart_order_id’] . ‘” />’;    $print_order_form->assign(‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’, $tracking_code);    //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 modules/gateway/Print_Order_Form/skin/print.tpl
2. In the open file, locate the following line:

<body>

3. Insert after it:

{$FEEDPLATFORM_CONVERSION_TRACKING_CODE}

4. Save and close the file.

 

Instruction for CubeCart 5.xx

Step 1.

1. Open the file modules/gateway/Print_Order_Form/gateway.class.php
2. In the open file, locate the following line:

$GLOBALS[‘smarty’]->display(‘print.tpl’);
Insert before it:

//FeedPlatform Conversion Tracking Code
$order_products_ids = ”;
$orderSummary = $order->getSummary($cart_order_id);
$basketProducts = unserialize($orderSummary[‘basket’]);
if (is_array($basketProducts[‘contents’])) {
foreach ($basketProducts[‘contents’] as $orderProduct) {
$order_products_ids .= $orderProduct[‘product_id’] . ‘|’;
}
$order_products_ids = substr($order_products_ids, 0, -1);
}
$tracking_code = ‘<img src=”http://track.feedplatform.com/conversion/&lt;ACCOUNT_ID&gt;/?products_ids=&#39; . $order_products_ids . &#39;&order_total=&#39; . $orderSummary[‘total’] . &#39;&order_id=&#39; . $orderSummary[‘cart_order_id’] . ‘” />’;
$GLOBALS[‘smarty’]->assign(‘FEEDPLATFORM_CONVERSION_TRACKING_CODE’, $tracking_code);
//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 modules/gateway/Print_Order_Form/orderForm.tpl
2. In the open file, locate the following line:

<body>

3. Insert after it:

{FEEDPLATFORM_CONVERSION_TRACKING_CODE}

4. Save and close the file.

Scroll to Top