I have implemented social share buttons using the 3rd party sharing code and went with ShareThis because it was recommended in one of the Miva docs.
It doesn't seem to be pulling the main product image for the og:image meta tags
Here is the code for the head tag on the PROD page:
Thanks in advance.
-Nick
It doesn't seem to be pulling the main product image for the og:image meta tags
Here is the code for the head tag on the PROD page:
Code:
<head> <mvt:if expr="NOT ISNULL l.settings:product:page_title"> <title>&mvt:product:page_title;</title> <mvt:elseif expr="NOT ISNULL l.settings:page:title"> <title>&mvt:page:title;</title> <mvt:else> <title>&mvt:product:name;: &mvt:store:name;</title> </mvt:if> <mvt:item name="head" param="head_tag" /> <mvt:item name="attributemachine" param="head" /> <mvt:item name="product_display_imagemachine" param="head" /> <script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=5ad7abdad0b9d300137e3b15&product=inline-share-buttons"></script> <mvt:assign name="g.socialURL" value="l.settings:product:link" /> <mvt:assign name="g.socialText" value="'Check out the deal on ' $ l.settings:product:name $ ' at ' $ g.store:name" /> <mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:product:id, 1, l.settings:imagetype)" /> <mvt:do name="l.success" file="g.Module_Library_DB" value="Image_Load_ID(l.settings:imagetype:image_id, l.settings:imagedata)" /> <mvt:assign name="g.socialImage" value="g.baseurl $ l.settings:imagedata:image" /> <meta property="og:title" content="&mvte:product:name;" /> <meta property="og:type" content="product" /> <meta property="og:image" content="&mvt:global:socialImage;" /> <meta property="og:url" content="&mvt:global:socialURL;" /> <meta property="og:site_name" content="&mvte:global:store:name;" /> <meta property="og:description" content="&mvte:global:socialText;" /> </head>
-Nick
Comment