Site icon Hip-Hop Website Design and Development

How can I make this php shop only for variable products?

How can I make this php shop only for variable products? Other types like simple must show noting or just an empty place

add_action( 'woocommerce_after_shop_loop_item', 'show_meer_varianten_loop', 5 );
 
function show_meer_varianten_loop() {
   echo '<p class="shop-badge">Meer varianten</p>'; 
}