<div class="resp-slider-container">
	<div class="slider responsive">
		<?php 										
		while($list->have_posts()): $list->the_post();
		global $product, $post;
		$class = ( $product->get_price_html() ) ? '' : 'item-nonprice';
	?>
		<div class="item <?php echo esc_attr( $class )?> product">
			<div class="item-wrap">									
				<?php do_action( 'woocommerce_before_shop_loop_item_title' ); ?>
				<div class="item-content">
					<?php emarket_template_loop_product_title(); ?>
					<?php emarket_custom_template_loop_price(); ?>
					<?php $total_sales = get_post_meta( $post->ID, 'total_sales', true ); ?>
					<div class="stock-sold"><span><?php echo $total_sales; ?><?php echo esc_html__(' Sold','emarket');?></span></div>
				</div>								
			</div>
		</div>
		<?php endwhile; wp_reset_postdata();?>
	</div>
	<a class="view-all" href="<?php echo esc_url( $viewall ); ?>"><?php echo esc_html__('View More','emarket'); ?></a>
</div>