Hey guys! I’m looking through the old Google Groups forums, and some stuff on SO, and I can’t seem to find a definitive answer on how to use WooCommerce with Roots.
I am unable to edit archive-product.php or other WooCommerce related files.
Yes, I’ve followed the instructions to the T. Or so I thought. I look forward to that blog post. When I say I’m unable to edit the files, I mean that I could completely comment out every line in archive-product.php or content-product-cat.php; and the code from the plugin directory itself will show instead of the code I have in the theme folder.
I’m possibly missing something, been on IRC with Woo, and they said they don’t support Roots out of the box because we use a different theme wrapper than they support.
I had that issue when working on a site but I don’t have the source with me right now. I can check it later after I’m done at the office and hopefully get back to you with a solution. Getting ready to head out of town tomorrow so I might not have a chance, but it’s definitely possible to have a good integration with WooCommerce + Roots.
I appreciate it. I’ll look forward to your response. Fingers crossed it’s for today, as I’m flying out of town tomorrow as well. Any chance you’re going to Ohio?
Just tested this on a fresh install of Roots/Woocommerce. Copying the archive-product.php file from the WooCommerce plugin folder to the Roots folder (and making changes) works fine for me.
Make sure that you are editing the correct file for the view that you are testing, maybe start with something more simple like single-product.php.
So, trying out a fresh install. It really is as simple as installing Roots, installing WooCommerce, then copying files over to roots directory. I had to go in and remove WooCommerce’s call for their footer, header and their sidebar as it wasn’t needed in my project.
Everything seems to work well though. I was over thinking it. Thanks!
I’m going to be developing a site using Roots and WooCommerce in a few weeks so a tutorial would be awesome. I did make it work a few months back for a test website but I can’t remember how I did it! There were certainly a few tweaks I had to make!