<?php
if( $product->is_type( 'composite' ) ){
wc_get_template_part( 'template-builder' );
}else{
wc_get_template_part( 'default-product' );
}
// If you need a Product object for the above:
$product = new WC_Product( get_the_ID() );
?>
if($post->ID == '103'){
wc_get_template_part( 'single-product-product1' );
}else{
wc_get_template_part( 'single-product-default' );
}
<?php
if( $product->is_type( 'composite' ) ){
wc_get_template_part( 'template-builder' );
}else{
wc_get_template_part( 'default-product' );
}
// If you need a Product object for the above:
$product = new WC_Product( get_the_ID() );
?>