tycoons Posted May 19, 2014 Share Posted May 19, 2014 salut à tous , je cherche à intégrée le tracking du pixel facbook sur ma boutique . J'ai parcouru le forum sans trouver mon bonheur. page order-confirmation.tpl si je dit pas de bétise on doit mettre sa: <!-- Facebook Conversion Code for convert --> <script type="text/javascript"> var fb_param = {}; fb_param.pixel_id = 'xxxxxxxxx'; fb_param.value = '0.01'; fb_param.currency = 'USD'; (function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref); })(); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=xxxxxxxx&value=0.01¤cy=USD" /></noscript> mais je ne sait pas trop ou! et aprés le reste on doit le mettre en théorie dans le header mais juste sur les page concerner dans le forum j'ai vu qu il posais sa dans le ordercotrollerconfirmation après le set template si quelque avait la patience de m' expliquer merci beaucoup pour votre aide Link to comment Share on other sites More sharing options...
tycoons Posted May 19, 2014 Author Share Posted May 19, 2014 yop la team personne pour un tuyau sur la manip Link to comment Share on other sites More sharing options...
tycoons Posted May 21, 2014 Author Share Posted May 21, 2014 Bon personne pour me donner un coup de main je reprend donc ce topic à l'aide du lien suivant: http://www.prestashop.com/forums/topic/250595-solved-affiliate-tracking-code/ donc j'ai fait la modif controllers/front/OrderConfirmationController.php en dessous de set template je rajoute sa: $order = new Order($this->id_order); $cart = new Cart($order->id_cart); $description=""; foreach ($cart->getProducts() AS $k=>$v){ $description.=$v['name']."X".$v['quantity']; } $description=urlencode($description); $this->context->smarty->assign(array( 'total_to_pay'=>$order->getOrdersTotalPaid(), 'description'=>$description )); et dans la page de mon themes orderconfirmation.tpl je mais le code fournis par fb <!-- Facebook Conversion Code for CHECKOUT --> <script type="text/javascript"> var fb_param = {}; fb_param.pixel_id = 'xxxxxxxxxxxxx'; fb_param.value = '0.01'; fb_param.currency = 'USD'; (function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref); })(); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook...38;currency=USD" /></noscript> je ne sais pas ce que j ai mal fait mais sa ne fonctionne pas svp un peu d'aide 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