'; echo '
';
if ( ! empty( $product ) ) :
echo do_shortcode( '[add_to_cart id="' . $wp_query->post->ID . '"]' );
if ( function_exists( 'wccm_add_button' ) ) {
wccm_add_button();
}
if ( defined( 'YITH_WCQV' ) ) {
echo '' . __( 'Quick View', 'bfastmag' ) . '';
}
endif;
echo '
';
$rating_html = '';
if ( function_exists( 'method_exists' ) && ( function_exists( 'wc_get_rating_html' ) ) && method_exists( $product, 'get_average_rating' ) ) {
$shop_isle_avg = $product->get_average_rating();
if ( ! empty( $shop_isle_avg ) ) {
$rating_html = wc_get_rating_html( $shop_isle_avg );
}
} elseif ( function_exists( 'method_exists' ) && method_exists( $product, 'get_rating_html' ) && method_exists( $product, 'get_average_rating' ) ) {
$shop_isle_avg = $product->get_average_rating();
if ( ! empty( $shop_isle_avg ) ) {
$rating_html = $product->get_rating_html( $shop_isle_avg );
}
}
if ( ! empty( $rating_html ) && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) {
echo '';
}
if ( function_exists( 'method_exists' ) && method_exists( $product, 'is_on_sale' ) ) {
if ( $product->is_on_sale() ) {
if ( function_exists( 'woocommerce_show_product_sale_flash' ) ) {
woocommerce_show_product_sale_flash();
}
}
}
if ( function_exists( 'method_exists' ) && method_exists( $product, 'managing_stock' ) && method_exists( $product, 'is_in_stock' ) ) {
if ( ! $product->managing_stock() && ! $product->is_in_stock() ) {
echo '' . esc_html__( 'Out of Stock', 'bfastmag' ) . '';
}
}
$shop_isle_price = '';
if ( function_exists( 'method_exists' ) && method_exists( $product, 'get_price_html' ) ) {
$shop_isle_price = $product->get_price_html();
}
if ( ! empty( $shop_isle_price ) ) {
echo wp_kses_post( $shop_isle_price );
}
echo '
';
}
?>