Hey guys,
I’m am attempting to Override my WooCommerce templates in order for Roots to integrate well with WooCommerce. This is all on an absolutely fresh install of:
- Wordpress 4.1
- Roots 7.0.3
- WooCommerce 2.3.1
Just to start, I want to say that I’ve tried everything on these pages.
- http://docs.woothemes.com/document/template-structure/
- http://roots.io/using-woocommerce-with-roots/ (which seems to be out-of-date)
- Editing All WooCommerce Templates
In fact, my Overrides are supposed to be ‘Working’.
WooCommerce Status shows that it recognizes my overrides - http://d.pr/i/oNLW/4FM0YNia
What I’m trying to do:
I’m trying to remove the header and the sidebar call from the template so that Roots can render the appropriate theme template parts from the wrapper.
Initially I used the <?php woocommerce_content(); ?>
technique but that didn’t work. Then I literally copied and pasted the exact templates from ../plugins/woocommerce/templates/
and modified from there, still nothing.
Unfortunately no matter how much I change the overriding WooCommerce template it won’t do anything. I’ve even tried a blank php with <?php echo "Hello World"; ?>
and nothing.
Things I’ve tried:
-
<?php woocommerce_content(); ?>
within both templates, using thewoocommerce
directory technique and directly within the root of the Roots theme technique. -
woocommerce.php
within the root of the Roots theme. (roots/woocommerce.php
) -
archive-product.php
within the root of the Roots theme. (roots/archive-product.php
) -
single-product.php
within the root of the Roots theme. (roots/single-product.php
) -
archive-product.php
within the root of thewoocommerce
directory, which is within root of the Roots theme. (roots/woocommerce/archive-product.php
) -
single-product.php
within the root of thewoocommerce
directory, which is within root of the Roots theme. (roots/woocommerce/single-product.php
) -
add_theme_support( 'woocommerce' );
inextras.php
has no effect other than removing the unsupported theme notification (as expected) -
Checked template permissions. Nothing out of the ordinary.
-
add_filter('woocommerce_show_page_title', '__return_false');
+remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_title', 5);
Doesn’t seem to have any effect other than removing the Title within the content. (as expected)
Yet for some reason, WooCommerce sees my overrides and is ignoring them for some reason? This leads me to believe that the Roots wrapper is somehow affecting this but I’m still unsure.
Anybody else have this issue?