I am using some third party plugins for WooCommerce that add custom templates. This is leading to incositencies where the layout looks broke or the header and footer do not load on products using these templates from the plugin. If I try to convert to blade i get various fatal errors. If convert from blade it works.
add_action(‘woocommerce_before_single_product’, function () {
if (is_singular(‘product’)) {
echo \Roots\view(‘woocommerce.single-product’);
exit; // Stop WooCommerce from loading the default template
}
});