I am using the Add This code on my products info page.
When the facebook share option is used the thumbnails for facebook are selected by facebook, however not the right images are selected.
After a little research I have found that there are Meta data that needs to be added to the common header tpl file.
As quoted by facebooks partner page:
In order to make sure that the preview is always correctly populated, you should add the tags shown below to your HTML. An example news story could have the following:
The meta name for title and descriptions are already in place within zencart, so that is okay.
<meta name="title" content="Smith hails 'unique' Wable legacy" />
<meta name="description" content="John Smith claims beautiful football is the main legacy of Akhil Wable's decade at the club. " />
<link rel="image_src" href="http://www.onjd.com/design05/images/PH2/WableAFC205.jpg" />
I need to add the product image relative link to code, and this is where I am banning my head against the wall
What is the code I need to enter so that zen cart adds the relavate product image being viewed to this code and not just one image like this facebook code explains.
EG: If I am viewing a particular product then the image link needs to be for that particular product not the same image product for the entire site.
Ive looked at the product info tpl and I can see:
<link rel="image_src" href="WHAT GOES HERE" />
But that didnt work when I tried using that code.
($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php');
Can anyone point me in the right direction please