Making work Woocommerce and Sage Roots 10

Hi all,

I’m struggling to make work correctly Woocommerce with Sage Roots 10 (10.8.2).

I have followed the install instructions of this page : GitHub - generoi/sage-woocommerce

Then added archive-product.blade.php and single-product.blade.php files to resources/views/woocommerce as I think I’m supposed to do.

But when I go to a product category page, the native woocomerce templates are used (those in plugins/woocommerce/templates) and not the custom ones.

I also tried to copy the content of /plugins/woocommerce/templates to a my-theme/woocommerce repository and added add_theme_support (‘woocommerce’); to the file app/setup.php and it seems I can start customizing the woocommerce templates from here.

But I want to use tailwind and blade …

I’m a little lost about how to make it all works correctly…

Hoz have you succeded in setting up woocommerce with sage roots 10 ?

Thanks

Check out my setup with Generosi, Sage 10 and WooCommerce where I added

Also using Tailwind as you can see in the files and others.

Thanks jasperfurmau,

I have downloaded your composer.json, package.json, app/setup.php and your resources/views/woocommerce/*.blade.php files and reinstalled everything (composer install, yarn install and the wp acorn commands mentioned in here : GitHub - generoi/sage-woocommerce) in order to have a similar setup as yours but without success…

Indeed, when going to a product category page I still get the default woocommerce template …

You can find my project here : https://github.com/alef07/ecom-theme

Should I change something in my wordpress configuration too ? It is the first time I try to make a custom woocommerce compatible theme, I might have forgotten something trivial.

Thanks in advance,

Guess you need to add taxonomy-product-cat.blade.php and customize it . That is based on woocommerce/plugins/woocommerce/templates/taxonomy-product-cat.php at b0284be31e6348a062ad66c5e0f966fa129a54a6 · woocommerce/woocommerce · GitHub