Get linked products of current grouped product in WooCommerce

<?php $groupedProduct = wc_get_product(get_the_ID()); ?>
		<th>Linked Products</th>
	<?php foreach($groupedProduct->children as $linkedProduct) { ?>
		<td><a href="<?php echo get_the_permalink($linkedProduct); ?>"><?php echo get_the_title($linkedProduct); ?></td>
<?php }	?>
Need a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us