Bonek092 Posted December 1, 2017 Share Posted December 1, 2017 I warmly welcome I have a problem with installing the conversion plugin from the nokaut.pl comparer to my store on the PrestaShop version 1.6.0.14. In the installation manual I have 2 HTML codes:First code: <script type="text/javascript"> // Nokaut.pl Conversion Tracker v2 (function () { var ns = document.createElement('script'), s = null, stamp = parseInt(new Date().getTime() / 86400, 10); ns.type = 'text/javascript'; ns.async = true; ns.src = ('https:' == document.location.protocol ? 'https://nokaut.link/js/' : 'http://nokaut.link/js/') + 'conversion.js?' + stamp; s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ns, s); })(); </script> The first code is to be placed in the HTML code of the store's main page and pages of individual products and categories. The script should be placed before the </ head> tag. I put the first code in the header.tpl file at the beginning of the file in the <head> </ head> section.Second code: <script type="text/javascript"> // Nokaut.pl Conversion Tracker v2 var _ntrack = _ntrack || []; _ntrack.push(['trackTransaction', 27340, '{kwota_transakcji}', '{identyfikator_transakcji}']); (function () { var ns = document.createElement('script'), s = null, stamp = parseInt(new Date().getTime() / 86400, 10); ns.type = 'text/javascript'; ns.async = true; ns.src = ('https:' == document.location.protocol ? 'https://nokaut.link/js/' : 'http://nokaut.link/js/') + 'conversion.js?' + stamp; s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ns, s); })(); </script> The second code is to be placed in the HTML code on the page that ends the order. For a given order, the script should be run only once, so it should not run again when refreshing the page ending the order or when entering another page related to the order. Scripts should be placed before the </ head> tag. In this case, I placed the second code in the order-confirmation.tpl file. In this file, however, there is no <head> section. After that, the end of the order completion process pops up a white page and nothing happens. How do you print the html code so that it can correctly retrieve transaction data and money and work correctly? Best wishes Jakub Bonecki 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