gtul Posted February 9, 2021 Share Posted February 9, 2021 (edited) Bonjour, Je dois ajouter cet script sur le header de mon site entre les balises <head> et </head>. Pouvez-vous me dire où je trouve le fichier en question pour l'inserer? <script type="text/javascript"> (function() { window.sib = { equeue: [], client_key: "5v1dhwe48dhihsdgstdl6zzky" }; /* OPTIONAL: email to identify request*/ // window.sib.email_id = '[email protected]'; /* OPTIONAL: to hide the chat on your script uncomment this line (0 = chat hidden; 1 = display chat) */ // window.sib.display_chat = 0; // window.sib.display_logo = 0; /* OPTIONAL: to overwrite the default welcome message uncomment this line*/ // window.sib.custom_welcome_message = 'Hello, how can we help you?'; /* OPTIONAL: to overwrite the default offline message uncomment this line*/ // window.sib.custom_offline_message = 'We are currently offline. In order to answer you, please indicate your email in your messages.'; window.sendinblue = {}; for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) { (function(k) { window.sendinblue[k] = function(){ var arg = Array.prototype.slice.call(arguments); (window.sib[k] || function() { var t = {}; t[k] = arg; window.sib.equeue.push(t);})(arg[0], arg[1], arg[2]);};})(j[i]);}var n = document.createElement("script"),i = document.getElementsByTagName("script")[0]; n.type = "text/javascript", n.id = "sendinblue-js", n.async = !0, n.src = "https://sibautomation.com/sa.js?key=" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page(); })(); </script> Edited February 9, 2021 by gtul (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted February 10, 2021 Share Posted February 10, 2021 Bonjour, Si vous avez Prestashop 1.7, le fichier est: \themes\[VOTRE THÈME]\templates\_partials\head.tpl pour ps1.6 est \themes\[VOTRE THÈME]\header.tpl N'oubliez pas de placer le script entre {literal} et {/literal}: {literal}<script type = "text / javascript"> ........ </script>{/ literal} Cordialement, Leo. Mentionnant que ce message a été traduit à l'aide d'un traducteur en ligne 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