woocommerce/templates/single-product.php

33 lines
1.0 KiB
PHP
Raw Normal View History

2011-08-09 15:16:18 +00:00
<?php get_header('shop'); ?>
2011-12-08 14:53:14 +00:00
<?php do_action('woocommerce_before_main_content'); ?>
2011-08-09 15:16:18 +00:00
2011-08-10 17:11:11 +00:00
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); global $_product; $_product = &new woocommerce_product( $post->ID ); ?>
2011-08-09 15:16:18 +00:00
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_before_single_product', $post, $_product); ?>
2011-08-09 15:16:18 +00:00
<div itemscope itemtype="http://schema.org/Product" id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
2011-08-09 15:16:18 +00:00
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_before_single_product_summary', $post, $_product); ?>
2011-08-09 15:16:18 +00:00
<div class="summary">
<h1 itemprop="name" class="product_title page-title"><?php the_title(); ?></h1>
2011-08-09 15:16:18 +00:00
2011-09-21 15:13:53 +00:00
<?php do_action( 'woocommerce_single_product_summary', $post, $_product ); ?>
2011-08-09 15:16:18 +00:00
</div>
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_after_single_product_summary', $post, $_product); ?>
2011-08-09 15:16:18 +00:00
</div>
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_after_single_product', $post, $_product); ?>
2011-08-09 15:16:18 +00:00
<?php endwhile; ?>
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_after_main_content'); // </div></div> ?>
2011-08-09 15:16:18 +00:00
<?php do_action('woocommerce_sidebar'); ?>
2011-08-09 15:16:18 +00:00
<?php get_footer('shop'); ?>