How the puck do you add a facebook like button?
I╢m trying to add a facebook like button to my products pages, but I can't find the template where you add the facebook code.
(<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=322282411138899";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>)
I managed to find product_details.tpl where I have added:
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
But the facebook script code apperantly have to go in somewhere else, I guess in a template where you find the <html><body> tags...
But where?? I╢m frustrated... to fix small simple things in your xcart shop is a nightmare with all these templates!
Please help me!!
__________________
x-cart gold 4.4.2
Last edited by ambal : 01-12-2012 at 10:43 PM.
|