Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Building in CDI Code into the confirmation page


ggriffit

Recommended Posts

Posted

Hello All,

 

I am helping a client of mine to use Commerce Data Interchange(CDI) from Channel Intelligence Inc. Bascially using the code below I need to pull the following information from the purchase to create a pixel top pass the information purchased to this company. Can someone help me get this information? I am not familar with this package to do this quickly as I have no idea how the code funtions.

 

The info I need is:

SKU #:

Quantity:

Price for Qty fo 1:

Model Number:

 

I need this for each item they purchased. It would be great to get it in the following format, but I can handle getting it this way if someone can help me get the data.

 

s=sku|quantity|Price|Model Number&s=sku|Quantity|Price|Model Number

 

Thanks In Advance For Any Help!

Grant

 

Here is the javascript I insert into the confirmation page.

 

<script language="JavaScript">

<!--

if (document.cookie.indexOf('srccode') > -1) {

var aValue; var nI = 0; var aCookies = document.cookie.split('; '); var sCPNCode = ''; var sSrcCode = '';

for (nI = 0; nI < aCookies.length; nI++) {

aValue = aCookies[nI].split('=');

if (aValue[0].toLowerCase() == 'srccode' && unescape(aValue[1]).toLowerCase().substring(0,3) == 'cii') {

sSrcCode = aValue[1];

}

if (aValue[0].toLowerCase() == 'cpncode') {

sCPNCode = aValue[1];

}

}

if (sSrcCode != '') {

document.write('<img src="https://secure.channelintelligence.com/links/pages/clkcmp.asp?v=11111&scrcode=' + unescape(sSrcCode) + '&cpncode=' + unescape(sCPNCode) + '&o=[[ Order ID ]]&s=[[ sku ]]|[[ quantity ]]|[[ price ]]|[[ model number ]]|[[ store id ]]&s=[[ sku ]]|[[ quantity ]]|[[ price ]]|[[ model number ]]" height="1" width="1" border="0" alt="">');

}

}

//-->

</script>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...