<?php
/**
   * The template for woocommerce.
   *
   *
   * @package   bpm128 WordPress Theme
   * @copyright Copyright (C) 2016, OrdaSoft
   * @license    http://www.gnu.org/licenses/gpl-2.0.html  GNU General Public License v2 or later
   * @author      AUTHOR <www.ordasoft.com>
   * bpm128 is distributed under the terms of the GNU GPL
*/
get_header('main');
?>
<div id="page" class="site-page">
    <div id="content-shop" class="site-content">
          <?php 
          
          //woocommerce_content(); 
              //below content of woocommerce_content( from  woocommerce/includes/wc-template-functions.php 
              if ( is_singular( 'product' ) ) {

      while ( have_posts() ) :
        the_post();
        wc_get_template_part( 'content', 'single-product' );
      endwhile;

    } else {
      ?>

      <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>

        <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>

      <?php endif; ?>

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

      <?php if ( woocommerce_product_loop() ) : ?>

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

        <?php woocommerce_product_loop_start(); ?>

        <?php if ( wc_get_loop_prop( 'total' ) ) : ?>
          <?php while ( have_posts() ) : ?>
            <?php the_post(); ?>
            <?php wc_get_template_part( 'content', 'product' ); ?>
          <?php endwhile; ?>
        <?php endif; ?>

        <?php woocommerce_product_loop_end(); ?>

        
<?php do_action( 'woocommerce_archive_description' ); ?>
        <?php
      else :
        do_action( 'woocommerce_no_products_found' );
      endif;
    }

          ?>



    </div>
</div><!-- #main -->
<?php get_footer(); ?>