';
$output .= "\n\t" . '
';
if ( ! empty( $attachment_ids ) && count( $attachment_ids ) > 1 && 'carousel' == $ult_design_single03['product_img_disp'] ) {
$uniqid = uniqid();
$output .= '
';
$product_img = wp_get_attachment_image_src( get_post_thumbnail_id( $ult_design_single03['product_id'] ), $image_size );
$src = $product_img[0];
$output .= '
';
foreach ( $attachment_ids as $attachment_id ) {
$product_img = wp_get_attachment_image_src( $attachment_id, $image_size );
$output .= '
';
}
$output .= '
';
} else {
$product_img = wp_get_attachment_image_src( get_post_thumbnail_id( $ult_design_single03['product_id'] ), $image_size );
$src = $product_img[0];
$output .= '
';
}
if ( '' !== $on_sale ) {
$output .= "\n" . '
' . $on_sale . '
';
}
if ( 'OutOfStock' == $stock ) {
$output .= "\n" . '
' . __( 'Out Of Stock!', 'woocomposer' ) . '';
}
$output .= '
';
$output .= "\n\t" . '
';
$output .= '
';
$output .= "\n\t\t" . '' . $product_title . '
';
$output .= '';
if ( in_array( 'category', $elemets ) ) {
$output .= '
';
if ( '' !== $categories ) {
$output .= $categories;
$output .= $tags;
}
$output .= '
';
}
$output .= "\n\t\t" . '
' . $price . '
';
$output .= '
';/*Class Start wcmp-style3-cart-block*/
$output .= '
';
if ( in_array( 'reviews', $elemets ) ) {
$output .= "\n" . '
' . $rating . '
';
}
if ( in_array( 'quick', $elemets ) ) {
$output .= '
';
}
$output .= '
';/*Class End wcmp-style3-cart-block*/
if ( in_array( 'description', $elemets ) ) {
$output .= "\n\t\t" . '
' . $product_desc . '
';
}
if ( in_array( 'quick', $elemets ) ) {
$query = new WP_Query(
array(
'post_type' => 'product',
'post__in' => array( $ult_design_single03['product_id'] ),
)
);
if ( $query->have_posts() ) :
while ( $query->have_posts() ) :
$query->the_post();
$output .= '
';
$output .= '
';
$output .= '
';
if ( ! empty( $attachment_ids ) && count( $attachment_ids ) > 1 ) {
$uniqid = uniqid();
$output .= '
';
foreach ( $attachment_ids as $attachment_id ) {
$product_img = wp_get_attachment_image_src( $attachment_id, $image_size );
$output .= '
';
}
$output .= '
';
} else {
$product_img = wp_get_attachment_image_src( get_post_thumbnail_id( $ult_design_single03['product_id'] ), $image_size );
$output .= '
';
}
$output .= '
';
ob_start();
do_action( 'woocommerce_single_product_summary' );
$output .= ob_get_clean();
$output .= '
';
$output .= '
';
$output .= '
';
$output .= '
';
endwhile;
endif;
}
$output .= "\n\t" . '
';
$output .= "\n\t" . '