Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header('shop'); ?>
- <?php get_sidebar('shop'); ?>
- <?php // if (function_exists('jigoshop_breadcrumb')) jigoshop_breadcrumb(); ?>
- <?php if ( have_posts() ) while ( have_posts() ) : the_post();
- global $_product;
- $_product = &new jigoshop_product( $post->ID );
- if (!$_product->is_visible() && $post->post_parent > 0) : wp_safe_redirect(get_permalink($post->post_parent)); exit; endif;
- if (!$_product->is_visible()) : wp_safe_redirect(home_url()); exit; endif;
- jigoshop::show_messages();
- ?>
- <div id="product-page">
- <?php if ($_product->is_on_sale()) echo '<span class="sale_msg">Sale!</span>'; ?>
- <?php jigoshop_get_template( 'product/images.php' ); ?>
- <div class="summary">
- <h1 class="product_title entry-title"><?php the_title(); ?></h1>
- <div class="description">
- <?php jigoshop_get_template( 'product/description.php' ); ?>
- </div>
- <p class="price"><?php echo $_product->get_price_html(); ?></p>
- <?php
- if ( $_product->is_type('simple') ) jigoshop_get_template( 'product/simple/add-to-cart.php' );
- elseif ( $_product->is_type('downloadable') ) jigoshop_get_template( 'product/downloadable/add-to-cart.php' );
- elseif ( $_product->is_type('grouped') ) jigoshop_get_template( 'product/grouped/add-to-cart.php' );
- elseif ( $_product->is_type('virtual') ) jigoshop_get_template( 'product/virtual/add-to-cart.php' );
- ?>
- <div class="category"><?php echo $_product->get_categories( ', ', '< Back to ', ''); ?></div>
- </div>
- <?php do_action('after_product'); ?>
- <?php //jigoshop_get_template( 'product/related.php' ); ?>
- <div id="nextprev">
- <div id="next"><? next_post('%', 'next', 'no');?></div>
- <div id="prev"><? previous_post('%', 'last', 'no');?></div>
- </div>
- </div>
- <?php endwhile; ?>
- <?php get_footer('shop'); ?>
Add Comment
Please, Sign In to add comment