dorahex Posted October 15, 2017 Share Posted October 15, 2017 Hello, I have a problem. Prestashop 1.7.2 In the OrderConfirmationControllerr.php file I finished writing the code: ..... $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/d/ti.php?trackerid=6522&valueCart=' . $order->total_paid . '&leadId=' . $order->id . ' width="0" height="0" alt=""" />'); // Conversion Tracking Code In the order-confrimation.tpl file I finished writing the code: {$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.net/d/tjs.php:http://inistrack.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/d/ti.php?trackerid=6522&valueCart={$order->total_paid}&leadId={$order->id}&cb=%%RANDOM_NUMBER%%' width='0' height='0' alt='' /></div></noscript>{/literal} I am attaching the screen. Perhaps does somebody of you know? I am calling for help :| Nice day Link to comment Share on other sites More sharing options...
dorahex Posted October 17, 2017 Author Share Posted October 17, 2017 Solved Link to comment Share on other sites More sharing options...
WineMark Posted February 21, 2020 Share Posted February 21, 2020 (edited) Hi dorahex, I finally found someone who knows how to get a tracking pixel in prestashop 1.7 I am using Prestashop 1.7.6.3 I have an issue making my pixel work. my pixel code from Belboon is: <img src="//janus.r.jakuli.com/ts/i*********/tsa?typ=i&trc=default&ctg=sale&sid=checkout&cid=!!convId!!&orv=!!ordValue!!&orc=EUR&cli=!!CLICKID!!" width="1" height="1" border="0" style="display:none;"> I don't know how to adjust my code to this: var OA_p = (location.protocol=='https:'?'https://inistrack.net/d/tjs.php:http://inistrack.net/d/tjs.php'); I don't need the random number like you, so I can skip var OA_r=Math.floor(Math.random()*999999); Looking forward to your help! best regards Mark Edited February 21, 2020 by WineMark (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now