woocommerce/templates/single-product/price.php

18 lines
462 B
PHP
Raw Normal View History

2011-12-11 01:08:33 +00:00
<?php
/**
* Single Product Price, including microdata for SEO
2012-08-14 18:05:45 +00:00
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
2011-12-11 01:08:33 +00:00
*/
global $post, $product;
2011-12-11 01:08:33 +00:00
?>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
2012-08-14 18:05:45 +00:00
<p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>
2012-08-14 18:05:45 +00:00
<link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" />
2012-08-14 18:05:45 +00:00
</div>