Cancelado

Need javascript tracking for Bing Cashback for my shop cart

Here is the Javascript code provided by Bing Cashback.

This goes on my order completed page.

This should take 5-mins for any experienced coder.

All you have to do is get it to loop for each item purchased (see code below).

<!– Begin cashback Tracking Pixel Code -->

<script type='text/javascript'>

<!--

var jf_merchant_id =

'WjZYb2NrMWJyNlRUxjQT09Cg';

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();

[url removed, login to view] = 'ITEM_PRODUCT_ID';

[url removed, login to view] = 'ITEM_PRICE';

[url removed, login to view] = ITEM_QUANTITY;

[url removed, login to view] (jf_item);

NEXT PURCHASED ITEM

//-->

</script>

<script type='text/javascript' src=

'[url removed, login to view]'>

</script>

<!-- End cashback Tracking Pixel Code -->

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

Here are the variables that my shopping cart uses. Replace the items above with the correct variables. For example, you would replace ORDER_NUMBER above with Order[0]

Order-specific information can be generated by JavaScript on the [url removed, login to view] page within Volusion. On this page, two JavaScript arrays will be intiialized that advanced users may need to be aware of. The arrays and their contents are as follow:

Order Array Contents:

* Order[0] = Order ID

OrderDetails Array Contents:

* OrderDetails[X][0] = Order ID

* OrderDetails[X][2] = Product Code

* OrderDetails[X][5] = Product Price

* OrderDetails[X][6] = Quantity

Note that in the above example, X refers to a line item number (beginning from zero). Note that there can be multiple OrderDetails arrays - one for each item contained within an order.

Here is the code I wrote. The JavaScript fires, but the variables are not rendered. What am I doing wrong?

Here are instructions about these variables for my shopping cart:
http://store.volusion.com/kb_results.asp?ID=339

<! Begin cashback Tracking Pixel Code -->
<script type='text/javascript'>
<!--
var jf_merchant_id =
'WjZYb2NrMWJyNlRUxjQT09Cg';
var jf_merchant_order_num = 'Order[0]';
var jf_purchased_items = new Array();
// adding cart items
for (var i=0; i < OrderDetails.length; i++)
{
// add cart item
var jf_item = new Object();
jf_item.mpi = 'OrderDetails[i][2]';
jf_item.price = 'OrderDetails[i][5]';
jf_item.quantity = OrderDetails[i][6];
jf_purchased_items.push (jf_item);
}
//-->
</script>
<script type='text/javascript' src=
'https://ssl.bing.com/cashback/javascripts/1x1tracking.js'>
</script>
<!-- End cashback Tracking Pixel Code -->

Habilidades: ASP, Comércio eletrônico, Javascript

Ver mais: bing cashback javascript, bing cart, volusion bing shopping, js for, javascripts price, javascript coder com, bing tracking javascript, javascript tracking code example, volusion order variables, volusion order array, asp javascript tracking code variables volusion, volusion orderfinished, bing cashback tracking code, script tracking order, bing tracking code, x js, tracking, tracking number, pixel and type, on line shop, need shop, need javascript coder, MPI, javascripts, javascript coder

Acerca do Empregador:
( 37 comentários ) Northville, United States

ID do Projeto: #534997

1 freelancer está ofertando em média $30 para este trabalho

janjerell

Please check PM

$30 USD in 0 dias
(4 Comentários)
2.8