Live search Cashback order tracking

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Opeyemi
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Fri Feb 22, 2008 12:07 pm
Location: Blue Bell, PA
Contact:

Live search Cashback order tracking

Post by Opeyemi » Fri Jan 09, 2009 11:10 am

I am trying to create Live Search cashback tracking. This is the spec of javascript that I have to create from the customer order confirmation page.

<script type='text/javascript'>
<!--
var jf_merchant_id = ' YOUR_CUSTOM_MERCHANT_ID ';
var jf_merchant_order_num = ' ORDER_NUMBER ';
var jf_purchased_items = new Array();
// adding cart items
FOR EACH PURCHASED ITEM...
// add cart item
var jf_item = new Object();
jf_item.mpi = ' ITEM_PRODUCT_ID ';
jf_item.price = ' ITEM_PRICE ';
jf_item.quantity = ITEM_QUANTITY ;
jf_purchased_items.push(jf_item);
NEXT PURCHASED ITEM
//-->
</script>
<script type='text/javascript'
src="https://xxxxxxxxxx/tracking.js">
</script>

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Live search Cashback order tracking

Post by mazhar » Fri Jan 09, 2009 11:14 am

You have to provide some server side code that will build the javascript dynamically. ConLib/GoogleAnalyticsWidget.ascx is a good sample for this work.

Post Reply