View Single Post
  #4  
Old 02-05-2012, 10:54 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Facebook like button on home page

Can you verify that head.tpl is being displayed? Try putting some simple text like "hello world" in the tpl. Can you see that showing up?

Where in the page does facebook want you to put the JS? Does it need to be between the <head> and </head> tags, or just in the body of the page?

Wen you include JS in a Smarty template, sometimes you need to wrap the script in {literal} and {/literal} tags. Since Smarty and JS both use "{" they tend to conflict with each other. View the source of the complied page, and see if the JS is being delivered to the browser in its entirety, or if parts are being stripped by Smarty.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote