forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-product.php
33 lines (17 loc) · 1.09 KB
/
single-product.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php get_header('shop'); ?>
<?php do_action('woocommerce_before_main_content'); // <div id="container"><div id="content" role="main"> ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); global $_product; $_product = &new woocommerce_product( $post->ID ); ?>
<?php do_action('woocommerce_before_single_product', $post, $_product); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php do_action('woocommerce_before_single_product_summary', $post, $_product); ?>
<div class="summary">
<h1 class="product_title page-title"><?php the_title(); ?></h1>
<?php do_action( 'woocommerce_template_single_summary', $post, $_product ); ?>
</div>
<?php do_action('woocommerce_after_single_product_summary', $post, $_product); ?>
</div>
<?php do_action('woocommerce_after_single_product', $post, $_product); ?>
<?php endwhile; ?>
<?php do_action('woocommerce_after_main_content'); // </div></div> ?>
<!--mfunc do_action('woocommerce_sidebar') --><?php do_action('woocommerce_sidebar'); ?><!--/mfunc-->
<?php get_footer('shop'); ?>