5ummer5 Posted January 5, 2011 Share Posted January 5, 2011 Hi,I have incorporated google chat into a website so they talk to customers. I have coded it so that it will open in a thickbox window. I have found this to be the best way for it to display in a consistent format across all web browsers.The issue I am having is that it will only work on the product pages where there are already other thickbox elements (images etc) I have noticed that PS only loads the thickbox.js etc for particular pages. Without manually editing the header.tpl is there any other way I can set it to automatically include these files on all pages?Any help will be much appreciated! I hope to have this up and running tomorrow. :-)Many thanks Link to comment Share on other sites More sharing options...
5ummer5 Posted January 5, 2011 Author Share Posted January 5, 2011 I have given up and just added the files into the header.tpl. This is how I did it if anyone needs to know in future. I included the code below in the header.tpl <link href="{$base_dir}css/thickbox.css" rel="stylesheet" type="text/css" media="all" /> *<*script type="text/javascript" src="{$base_dir}js/jquery/thickbox-modified.js" */script>* I also had to add the code below in the head of the header.tpl [removed] // <![CDATA[ ThickboxI18nImage = 'Image'; ThickboxI18nOf = 'of'; ThickboxI18nClose = 'Close'; ThickboxI18nOrEscKey = 'or Esc key'; ThickboxI18nNext = 'Next >'; ThickboxI18nPrev = '< Prev'; tb_pathToImage = '{path to images for thickbox}/loadingAnimation.gif'; //]]> [removed] Then I got it working. For more info you can see here http://www.prestashop.com/forums/viewthread/85130/. This is the post that pointed me in the right direction! Thanks zwacklmann. 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