Hi,
is it possible to use your integrated social API on product pages as well?
/linus
<?php
/**
* Single Product Price, including microdata for SEO
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post, $product, $gk_tpl;
?>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<?php
// variable for the social API HTML output
$social_api_output = gk_social_api(get_the_title(), get_the_ID());
?>
<?php if($social_api_output != '' ): ?>
<?php echo $social_api_output; ?>
<?php endif; ?>
<p itemprop="price" class="price"><?php echo __('<span class="price-text">' . __( 'Price: ', GKTPLNAME ) . '</span>', GKTPLNAME); ?><?php echo $product->get_price_html(); ?></p>
<meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" />
<link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" />
</div>