dorahex Posted October 15, 2017 Share Posted October 15, 2017 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 Link to comment Share on other sites More sharing options...
endriu107 Posted October 15, 2017 Share Posted October 15, 2017 Jeśli w product.tpl zastosujemy kod: {$product->name} zostanie zwrócona nazwa produktu, ale jeśli zrobimy to tak: {literal} {$product->name} {/literal} zostanie zwrócone {$product->name}. Link to comment Share on other sites More sharing options...
dorahex Posted October 15, 2017 Author Share Posted October 15, 2017 (edited) Problem rozwiązany. Edited October 17, 2017 by dorahex (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