have_posts() ) : $products->the_post(); global $product; do_action( 'woocommerce_before_shop_loop_item' ); ?>
get_sale_price() >0 ){ ?>
Sale
get_image('shop_thumbnail',array('class' => 'product-mainpic')); ?> get_image('shop_thumbnail',array('class' => 'product-secondpic')); ?>
sale_price >0) {echo wc_price($product->sale_price); }else{ echo wc_price($product->price); } ?> sale_price >0 ){ $percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 ); ?> regular_price) ; ?> textdomain ), $percentage . '%' ); ?>