Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <meta property="og:image" content="https://itsthyme.com/skin/frontend/base/default/images/catalog/product/placeholder/image.jpg"/>
- <reference name="head">
- </reference>
- <block type="core/template" name="social.code" template="page/html/social-code.phtml"/>
- <?php
- if (Mage::registry('current_product')) {
- $product = Mage::registry('current_product');
- $product = Mage::getModel('catalog/product')->load($product->getId());
- } //load product information
- ?>
- <?php if ($product) : ?>
- //echo product image URL below
- <meta property="og:image" content="<?php echo $this->helper('catalog/image')->init($product, 'image')->resize(600,315); ?>" />
- <!-- Other tags can go here, e.g. title, type, url -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement