Zen Cart Logo

Facebook share?

Views: 4,322

Results 1 to 17 of 17
15 Dec 2010, 4:17 PM
#2
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

Yeah, go to includes/templates/YOURTEMPLATE/tpl_product_info_display.php....find the text that says '<!--eof Tell a Friend button -->' and paste directly after....

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; display:none; overflow:hidden; width:450px; height:40px" onload="this.style.display = 'block';"></iframe>
16 Dec 2010, 10:33 AM
#3
provida avatar

provida

Zen Follower

Join Date:
Jan 2010
Posts:
116
Plugin Contributions:
0

Re: Facebook share?

Hello,

Thanks for your input but it did not work for me, not sure i was directed to the right place? Anyone with a solution? HELP:smile:

16 Dec 2010, 11:02 AM
#4
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

Sorry, the file would be in...

includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php

YOURTEMPLATE being the name of the template your site is using.

16 Dec 2010, 11:21 AM
#5
provida avatar

provida

Zen Follower

Join Date:
Jan 2010
Posts:
116
Plugin Contributions:
0

Re: Facebook share?

Thanks again! I pasted the code supplied by you but with no success :( what am i missing out?

16 Dec 2010, 11:24 AM
#6
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

Well Ive just done a view source of your page, and I cannot see the code.

..so try pasting the code in includes/templates/template_default/templates/tpl_product_info_display.php

16 Dec 2010, 11:26 AM
#7
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

I see it working now. If you look at the code I pasted and change the 'dark' to 'light' it will show up better.

16 Dec 2010, 11:51 AM
#8
provida avatar

provida

Zen Follower

Join Date:
Jan 2010
Posts:
116
Plugin Contributions:
0

Re: Facebook share?

Your help was highly appretiated!!! Thank you so much:smile: In addition i would like to add "follow us on facebook" where by a click, our fan page on face will open up in a new window?

16 Dec 2010, 11:57 AM
#9
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

Test this code below and paste it where you want

<a target="_blank" href="http://www.facebook.com/YOURFACEBOOKPAGE"><img src="http://www.spiritdesignerwear.co.uk/static/images/find_us_on_facebook.png" border="0"></a>

Ive linked to an image I found on another site (spritdesignerwear) -
You are best off saving this image and saving it in your shop/images folder, and use the code...

<a target="_blank" href="http://www.facebook.com/YOURFACEBOOKPAGE"><img src="http://www.provida.oslo.no/Shop/images/find_us_on_facebook.png" border="0"></a>

Remember to change YOURFACEBOOKPAGE to your relevant page.

16 Dec 2010, 11:59 AM
#10
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

I would personally put that inside a sidebox rather than on every product page.

16 Dec 2010, 12:12 PM
#11
provida avatar

provida

Zen Follower

Join Date:
Jan 2010
Posts:
116
Plugin Contributions:
0

Re: Facebook share?

Got it working, but the only problem is my facebook page is PROVIDA but Provida AG shows instead of mine! Is there a way around this?

16 Dec 2010, 12:13 PM
#12
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

Can you go to your facebook page and copy and paste here the link to your page.

16 Dec 2010, 12:30 PM
#14
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Facebook share?

Paste that whole link in place of where i wrote 'http://www.facebook.com/YOURFACEBOOKPAGE'

16 Dec 2010, 12:47 PM
#15
provida avatar

provida

Zen Follower

Join Date:
Jan 2010
Posts:
116
Plugin Contributions:
0

Re: Facebook share?

Thanks djent got it all working, ya the best:D Have a great day :smile:

19 Jan 2011, 8:32 PM
#16
graniteman44 avatar

graniteman44

Zen Follower

Join Date:
Dec 2007
Location:
Michigan
Posts:
160
Plugin Contributions:
0

Re: Facebook share?

I had installed the Facebook icon and link to my Facebook page using script from Facebook. The funny thing is that it didn't work until today after I changed my "COMMON" folder name to "common" using lower case letters. The problem I have is that the logo is really large and I can't remember where I had installed the code so I can adjust it. Anyone know how I can find where the code is?

17 Nov 2011, 1:36 PM
#17
wakeleymb avatar

wakeleymb

New Zenner

Join Date:
Sep 2011
Location:
Sydney, Australia
Posts:
48
Plugin Contributions:
0

Re: Facebook share?

GraniteMan44:

I had installed the Facebook icon and link to my Facebook page using script from Facebook. The funny thing is that it didn't work until today after I changed my "COMMON" folder name to "common" using lower case letters. The problem I have is that the logo is really large and I can't remember where I had installed the code so I can adjust it. Anyone know how I can find where the code is?

Go to tools - developers toolkit and search for the code