I’ve copied the template files from WooCommerce into the Sage directory under views/woocommerce/archive-product.php and added the WooCommerce theme support snippet to functions.php, but none of my changes to archive-product.php and content-single-product.php are showing up. Its my first time building a shop page. Am I missing something here?
What version of Sage are you using?
There are various WooCommerce Sage 9 and 10 packages you’ll need to install too via composer.
Sage 9
Sage 10
https://github.com/generoi/sage-woocommerce
I’ve not used version 10 but found it upon searching the forum too.
2 Likes
For simple PHP templates without sage-woocommerce they would go into <theme>/woocommerce/archive-product.php
, not ./views/
.
For Sage 10 WooCommerce integration you can use generoi/sage-woocommerce
(as Jordan posted) and put the WooCommerce templates as .blade.php
files into resources/views/woocommerce/
directory of Sage 10 theme.
1 Like
This worked like a charm!
Thank you so much I’ve been stuck for days
1 Like