Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How the puck do you add a facebook like button?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-12-2012, 09:45 AM
 
Patty Patty is offline
 

Newbie
  
Join Date: Jun 2011
Posts: 6
 

Default 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.
Reply With Quote
  #2  
Old 01-12-2012, 10:21 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: How the fuck do you add a facebook like button?

please take a look at this http://help.qtmsoft.com/index.php?title=X-Cart:Socialize
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote
  #3  
Old 01-12-2012, 05:45 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: How the fuck do you add a facebook like button?

The socialized mod is not available on any XC version except 4.4.4. Few threads in here about this and how to do it - search the forum. This may help http://forum.x-cart.com/showthread.php?t=58280&highlight=facebook+like
There is no need for foul language
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 01-12-2012, 05:56 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: How the fuck do you add a facebook like button?

Quote:
There is no need for foul language

Agreed, was his/her first post as well !
__________________
xcartmods.co.uk
Reply With Quote
  #5  
Old 01-12-2012, 07:43 PM
  bigredseo's Avatar 
bigredseo bigredseo is offline
 

X-Man
  
Join Date: Oct 2002
Location: Omaha, NE, USA
Posts: 2,364
 

Default Re: How the fuck do you add a facebook like button?

Quote:
Originally Posted by cflsystems
There is no need for foul language
I thought it was a pretty odd way of asking for help myself. In fact, I had purposely skipped over this thread when I first saw it posted.

As the saying goes - You'll catch more flies with honey.
__________________
Conor Treacy - Big Red SEO - @bigredseo
Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding!
If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet.
Omaha SEO Office with National & Local SEO Services
Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance
Reply With Quote
  #6  
Old 01-12-2012, 10:42 PM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,121
 

Default Re: How the puck do you add a facebook like button?

Moved to X-Cart Customization > Storefront Design & Template Editing in v 4.4.x

Patty, I'll have to ban you next time for using this kind of language in the forum.
I changed thread title, too.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote

The following 4 users thank ambal for this useful post:
carpeperdiem (01-13-2012), gb2world (01-13-2012), photo (01-13-2012), qualiteam (01-15-2012)
  #7  
Old 01-14-2012, 04:49 AM
 
Patty Patty is offline
 

Newbie
  
Join Date: Jun 2011
Posts: 6
 

Default Re: How the puck do you add a facebook like button?

I do apologize for the use of profanity in the title of this thread.

In truth, we are more than one person working on one particular site and heavy workload plus pressing deadlines can sometimes be very frustrating.

Although this is no excuse for bad behavior.

Once again I apologize for any offense this thread might have caused and I thank you for your help.

Furthermore, future posts posted by me or people working with me will not include profanity or content that might be considered offensive.

Thank you
__________________
x-cart gold 4.4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:23 PM.

   

 
X-Cart forums © 2001-2020