Example #1
0
	<?php 
if (wc_product_sku_enabled() && ($product->get_sku() || $product->is_type('variable'))) {
    ?>

		<span class="sku_wrapper"><?php 
    _e('SKU:', 'woocommerce');
    ?>
 <span class="sku"><?php 
    echo ($sku = $product->get_sku()) ? $sku : __('N/A', 'woocommerce');
    ?>
</span></span>

	<?php 
}
?>

	<?php 
echo wc_get_product_category_list(', ', '<span class="posted_in">' . _n('Category:', 'Categories:', count($product->get_category_ids()), 'woocommerce') . ' ', '</span>');
?>

	<?php 
echo wc_get_product_tag_list(', ', '<span class="tagged_as">' . _n('Tag:', 'Tags:', count($product->get_tag_ids()), 'woocommerce') . ' ', '</span>');
?>

	<?php 
do_action('woocommerce_product_meta_end');
?>

</div>
 /**
  * Returns the product tags.
  *
  * @deprecated 2.7.0
  * @param string $sep (default: ', ').
  * @param string $before (default: '').
  * @param string $after (default: '').
  * @return array
  */
 public function get_tags($sep = ', ', $before = '', $after = '')
 {
     wc_deprecated_function('WC_Product::get_tags', '2.7', 'wc_get_product_tag_list');
     return wc_get_product_tag_list($this->get_id(), $sep, $before, $after);
 }