If you are trying to do a facebook like on any other pages besides the product page, that is what happens. The mod is set only for the product pages.
If you are trying to do a facebook like on any other pages besides the product page, that is what happens. The mod is set only for the product pages.
No, I installed it exactly per the instructions.
Not trying to customize or do anything unusual at all.
The "Like" button and text appear on the product pages only.
You sure you have replaced / merged the modules/metatags.php and the templates/common/tpl_html_header.php. Both go into your override template folders so be sure you have not just uploaded the folder in the package which of course is not named correctly.
I just downloaded a copy of includes/modules/CUSTOM/meta_tags.php and compared it with the same file in the add-on using WinMerge. No differences at all.
templates/common/tpl_html_header.php....?
I do not have this file, searched all files.
I do have:
includes/templates/CUSTOM/common/html_header.php
includes/templates/CUSTOM/common/tpl_header.php
Last edited by Serious; 4 Oct 2012 at 06:07 PM.
@ serious
I just used the dark --- actually it was to show on dark backgrounds is what I used...that just lets the link show up in the stores link color of choice
you are right there is no tpl_html_header.php, it was a mistyped thing...you have the two correct files.
Last edited by DarkAngel; 5 Oct 2012 at 03:39 AM.
Still ugly! Thanks DarkAngel
ok, I have some code that trust me I have no idea where it came from but...I remember once I was having an issue with FB changing their button and not liking the share/like thumbs up button...soooooo
this is the code I have for my link...which is worded a little different with my own FB button I did like...lol In red is where I added the color for the font of the text and the text I decided on...it changes the text of the wording to your choice, regardless of what your links are set to be for your store.
in the tpl_product_info_display.php I placed mine here so look for the first line in your file if you want it in the same place...go to my store to see where it is and what it looks like---my live store is not with colored text, otherwise put it where you want your link to appear. I also added the breaks to give it some space below and above it.
------------------------------beginning of code-----------------------------------
<!--eof Product Price block -->
<br><br>
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolb ar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:32px;) no-repeat top left; }</style><a href="http://www.facebook.com/share.php?u=<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];?>" onclick="return fbs_click()" target="_blank" class="fb_share_link"><img src=http://fantasiesrealm.com/images/facebook.gif width=25><font size=+2 color=#cc0000> Share on FaceBook: <strong><?php echo $products_name; ?></strong></a></font><br><br><br><br>
------------------------------end of code------------------------------------
hope it helps
I just confirmed that the like button in one of my original installations is showing META_TAG_TITLE instead of product title. I have no earthly idea how this has happened because this part is not Facebook but zen cart coding which has not changed. This is on a 1.3.9h cart by the way. Any of you using the original mod with no changes, please check to see if it is happening in your carts as well.
I'll bet you that it depends on the version of php you are using. I'm now on 5.3 so if you have a problem and it's on 5.3, please let me know.
well my test 1.5 store got deleted from the server but the one on my computer disappeared...lol
but
1.3.9h cart:
<title><?php echo META_TAG_TITLE; ?></title>
<meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>"/>
<meta property="og:title" content="<?php echo META_TAG_TITLE; ?>"/>
<meta property="og:site_name" content="<?php echo TITLE; ?>"/>
<meta property="og:image" content="<?php echo META_TAG_FBIMG; ?>"/>
<meta property="og:url" content="<?php echo $canonicalLink; ?>"/>
<meta property="og:type" content="product"/>
<meta property="fb:admins" content="my info"/>
That is how mine is written and I have no problems with facebook button what so ever....save the button change to my liking.