Post by tjvisualdesign » Mon Feb 22, 2016 2:57 pm

Hi all,

Does anyone know how to implement ebay commerce ROI tracking in Opencart? I'm using 2.0.1.1

This is what the base code they give looks like. They say to put it in the post-checkout page under the <head> tag so I'm guessing I can just put it in the checkout success page up the top before the php tag?

---------------------------------------------------------------

<script type="text/javascript">
var _roi = _roi || [];

// Step 1: add base order details


_roi.push(['_setOrderId', '']); // unique customer order ID
_roi.push(['_setOrderAmount', '']); // order total without tax and shipping
_roi.push(['_setOrderNotes', '']); // notes on order, up to 50 characters

// Step 2: add every item in the order
// where your e-commerce engine loops through each item in the cart and prints out _addItem for each
// please note that the order of the values must be followed to ensure reporting accuracy

_roi.push(['_addItem',
'', // Merchant sku
'', // Product name
'', // Category id
'', // Category name
'', // Unit price
'' // Item quantity
]);

// Step 3: submit transaction to ECN ROI tracker

_roi.push(['_trackTrans']);
</script>
<script type="text/javascript" src="https://stat.dealtime.com/ROI/ROI2.js"></script>

-----------------------------------------------------------------------

I think this is right for this section? I found it on another forum, but they didn't have the top section.

_roi.push(['_addItem',
'$product['model']', // Merchant sku
'$product['name']', // Product name
'$product['category_id']', // Category id
'$product['category']', // Category name
'$product['price']', // Unit price
'$product['quantity']' // Item quantity


Any help would be greatly appreciated.

New member

Posts

Joined
Tue Jul 14, 2015 10:02 am
Who is online

Users browsing this forum: No registered users and 14 guests