New Zenner
- Join Date:
- Jun 2007
- Posts:
- 72
- Plugin Contributions:
- 0
adding product specific info into <head> tags on product pages for facebook
Hi,
I'm trying to add product specific code into my <head> tag so thumbnails show up when product pages are are shared on facebook. Based on following the instructions from facebook (http://wiki.developers.facebook.com/index.php/Connect/Implementing_Facebook_Share#Basic_Markup_for_Description_and_Thumbnails) and this related thread (
http://www.zen-cart.com/forum/showthread.php?t=137585
) I'm trying to add the following code to the page /includes/templates/gargyle/common/html_header.php but the URL gets chopped off before the product name.
<link rel="image_src" href="<?php echo "http://" . $_SERVER['HTTP_HOST'] . "/shop/" . $products_image_medium; ?>"/>
I guess that page doesn't know what $products_image_medium is. Does someone know how I need to edit html_header.php so that the $products_image_medium value can be populated in the header correctly, and that line will show up ONLY for product pages?
Appreciate any help...
thanks,
Don