Was missing wc_get_loop_prop check like the main archive

This commit is contained in:
Mike Jolley 2018-02-01 13:22:50 +00:00
parent 5bea7de93c
commit 00d16dce0e
1 changed files with 6 additions and 4 deletions

View File

@ -572,10 +572,12 @@ if ( ! function_exists( 'woocommerce_content' ) ) {
<?php woocommerce_product_loop_start(); ?>
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<?php wc_get_template_part( 'content', 'product' ); ?>
<?php endwhile; // end of the loop. ?>
<?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(); ?>