Latest Sage 9, Blade, and WooCommerce

Hey,
I haven’t tried the latest version yet, but the logic which worked on the beta 2 was that woocommerce will load template (single-product.php or archive-product.php_) from your theme’s folder and then you would echo Sage’s get template function in it.

WooCommerce doesn’t recognize blade files so you would need to hack your way to them by calling echo App\Template('woocommerce'); function inside basic php file (in this case archive-product.php and single-product.php). This should work since the template function is one of the default function in Sage.

There shouldn’t be any problems in theory but as I said haven’t have time to try the new version of Sage yet :confused:

There was a mention about new filter in WooCommerce which you could use to get template file but I haven’t got time to figure that out yet. You can try if you can get this working by using that: https://github.com/roots/sage/issues/1807 (the last comment from QWp6t).