Jump to content

problem pixel tracking order


dorahex

Recommended Posts

Drodzy,

 

Potrzebuję waszej pomocy.
Prestashop 1.7.2

 

W pliku OrderConfirmationController.php

 

.....
  $this->context->smarty->assign(array(
            'HOOK_ORDER_CONFIRMATION' => $this->displayOrderConfirmation($order),
            'HOOK_PAYMENT_RETURN' => $this->displayPaymentReturn($order),
             'order' => $presentedOrder,
    'id_order' => $this->id_order,
            'total_paid' => $order->total_paid, 
            'register_form' => $register_form,
 
        ));
 
      //   Conversion Tracking Code
$order = new Order((int)($this->id_order));
$order_products = $order->getProductsDetail();
$order_products_ids = '';
if (is_array($order_products)) {
 foreach ($order_products as $product) {
 $order_products_ids .= $product['product_id'] . '|';
 }
 $order_products_ids = substr($order_products_ids, 0, -1);
}
self::$smarty->assign(
 'INISPLATFORM_CONVERSION_TRACKING_CODE',
 
 
'<img src="http://inistrack.net...6522&valueCart=' . $order->total_paid . 
 '&leadId=' . $order->id . ' width="0" height="0" alt=""" />'); 
// Conversion Tracking Code
 
 
Również dodałam w kod w pliku order-confirmation.tpl
 
{$INISPLATFORM_CONVERSION_TRACKING_CODE}
<br/>
Idendyfikator : {$id_order}
kwota : {$total_paid}
<br/>
 
<script type='text/javascript'>
var valueCart = '{literal}{$order->total_paid}{/literal}';
var leadId = '{literal}{$order->id}{/literal}';
</script>
<script type='text/javascript'>{literal}
var OA_p = (location.protocol=='https:'?'https://inistrack.ne...k.net/d/tjs.php');
var OA_r=Math.floor(Math.random()*999999);
document.write ("<" + "script language='JavaScript' ");
document.write ("type='text/javascript' src='"+OA_p);
document.write ("?trackerid=6522&append=0&r="+OA_r+"'><" + "\/script>");
</script><noscript><div id='m3_tracker_6522' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://inistrack.net...6522&valueCart={$order->total_paid}&leadId={$order->id}&cb=%%RANDOM_NUMBER%%' width='0' height='0' alt='' /></div></noscript>{/literal}
 
 
Tkwi jeden problem, ze nie przekazuje dwoch to co oznaczalam strzalka na czerwono. Załączam screeny
 
Czy może ktoś z was wie gdzie ja popełniłam błąd.
Byłabym wdzięczna za wsparcie :).
 
Pozdrawiam

 

post-742849-0-29913500-1508052783_thumb.jpg

post-742849-0-05579000-1508052793_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...