Snippets: Override WooCommerce Single Products with a WPBakery Template

This code snippet will allow you to override all WooCommerce single product content with a Templatera template.

add_filter( 'wc_get_template_part', function( $template, $slug, $name ) {

	if ( 'content-single-product' ) {

		echo do_shortcode( '[templatera id="YOUR_TEMPLATE_ID"]' );

		return;

	}

	return $template;

}, 10, 3 );
All PHP snippets should be added via a child theme's functions.php file.