Hi,

I am being assigned to add pixel tracking codes for Commission Junction and have made a dynamic codes tracking using variables given on http://www.zen-cart.com/content.php?...filiates-Tools

Now, the tracking works great on vllusion.com/estore (Canadian online store zencart 1.5.*, PSI gateway). You can run a test by going to: http://vllusion.com/estore/index.php...index&cPath=19 ... we use "Mini Test" product to run some test.

The result of the tracking on that store as follow:
<!-- BEGIN CJ TRACING CODE -->


<div>
<iframe frameborder='0' height='1' name='cj_conversion' scrolling='no'
src='https://www.emjcd.com/tags/c?containerTagId=xxxx&ITEM1=109&AMT1=0.0000&QTY1=2&CID=xxxxxxxx&OID=147&TYPE=xxx xxxxx&CURRENCY=CAD&DISCOUNT=0&COUPON=0'
width='1'>
</iframe>
</div>
<!-- END CJ TRACING CODE -->


The codes are:
PHP Code:
<!-- BEGIN CJ TRACING CODE -->



<?php



        
/* variables */

        
$oid        $order_summary['order_number'];

        
$currency   $order_summary['currency_code'];

        
$coupon     = isset($order_summary['coupon_code'])?$order_summary['coupon_code']:"0";

        
$discount   $order_summary['credits_applied'];          



        
$itemsStr "";

        
$i 1;

        foreach (
$notificationsArray as $num => $product) {

            
$itemsStr .= "&ITEM".$i."=".$product['products_id']."&AMT".$i."=".$product['products_price']."&QTY".$i."=".$product['products_quantity'];

            
$i++;

        }



        echo 
"

        <div>

        <iframe frameborder='0' height='1' name='cj_conversion' scrolling='no' 

           src='https://www.emjcd.com/tags/c?containerTagId=xxxx"
.$itemsStr."&CID=xxxxxxx&OID=".$oid."&TYPE=xxxxxxx&CURRENCY=".$currency."&DISCOUNT=".$discount."&COUPON=".$coupon."' 

           width='1'>

        </iframe>

        </div>

        "


 
?>

<!-- END CJ TRACING CODE -->

now, my issue is that ..... the tracking codes are not giving the same thing when I placed it for vllusion.com/estoreusa (the USA cart store) ... I am really feeling stuck in a loop right now because it does not matter what I did the tracking codes do not work on the estore usa ..... same zencart version .... please help =(

http://vllusion.com/estoreusa/index....index&cPath=15
We use "vllusion test" as product

And the result of the tracking as follow:
<!-- BEGIN CJ TRACING CODE -->


<div>
<iframe frameborder='0' height='1' name='cj_conversion' scrolling='no'
src='https://www.emjcd.com/tags/c?containerTagId=xxxx&ITEM1=84&AMT1=&QTY1=&ITEM2=84&AMT2=0.0000&QTY2=1&CID=xxxxx xxx&OID=39&TYPE=xxxxxxxx&CURRENCY=USD&DISCOUNT=&COUPON=0' width='1'>
</iframe>
</div>
<!-- END CJ TRACING CODE -->

The problems:
1. the quantity was only 1 but it keeps appearing item1, item2, etc ... which looks like there are 2 products purchased but there was only 1.

2. AMT1=&QTY1= , it keeps giving blank values

The codes for the estoreusa after small tweaks (the difference are: used $zv_orders_id variables and force the currency to USD)
PHP Code:
<!-- BEGIN CJ TRACING CODE -->
 
<?php
 
        
/* variables */
        
$oid        $zv_orders_id
        
$currency   $order_summary['currency_code'];
        
$coupon     = isset($order_summary['coupon_code'])?$order_summary['coupon_code']:"0";
        
$discount   $order_summary['credits_applied'];         
 
        
$itemsStr "";
        
$i 1;
        foreach (
$notificationsArray as $num => $product) {
            
$itemsStr .= "&ITEM".$i."=".$product['products_id']."&AMT".$i."=".$product['products_price']."&QTY".$i."=".$product['products_quantity'];
            
$i++;
        }
 
        echo 
"
        <div>
        <iframe frameborder='0' height='1' name='cj_conversion' scrolling='no'
        src='https://www.emjcd.com/tags/c?containerTagId=xxxx"
.$itemsStr."&CID=xxxxxxx&OID=".$oid."&TYPE=xxxxxxx&CURRENCY=USD&DISCOUNT=".$discount."&COUPON=".$coupon."' width='1'>
        </iframe>
        </div>
        "
;
 
?>
<!-- END CJ TRACING CODE -->