Jump to content

problem pixel tracking order

Recommended Posts



Potrzebuję waszej pomocy.
Prestashop 1.7.2


W pliku OrderConfirmationController.php


            '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);
'<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
Idendyfikator : {$id_order}
kwota : {$total_paid}
<script type='text/javascript'>
var valueCart = '{literal}{$order->total_paid}{/literal}';
var leadId = '{literal}{$order->id}{/literal}';
<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 :).




Share this post

Link to post
Share on other sites

Jeśli w product.tpl zastosujemy kod:


zostanie zwrócona nazwa produktu, ale jeśli zrobimy to tak:


zostanie zwrócone {$product->name}.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More