What to do when plugins or custom PHP scripts don't use Blade?

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.

Is there a work around to this?

To Answer my own quetsion, this worked for me:

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

1 Like

There is also a library for adding support to Sage theme:

1 Like