When I add WooCommerce shortcodes as follows in WordPress WYSIWYG editor pages or in blade templates:
[products columns=“4”]
{!! do_shortcode(’[products columns=“4”]’) !!}
<?php echo do_shortcode('[products columns="4"]'); ?>
@php echo do_shortcode(’[products columns=“4”]’); @endphp
My WordPress site breaks, removes the admin bar, and doesn’t display any products. I have Sage WooCommerce (https://github.com/roots/sage-woocommerce) installed and I can override the template pages just fine. The issue comes in when I try to use WooCommerce shortcodes and even template functions like “wc_get_template_part(‘content’, ‘product’);”. It even breaks product pages when I insert the WooCommerce shortcodes.