Woocommerce archive-product.php overwrite hack not working

I’ve tried this hack from a previous thread:

Replace woocommerce_content() in woocommerce.php with:

Read More
if ( is_singular( 'product' ) ) {
    woocommerce_content();
} else {
    //For ANY product archive.
    //Product taxonomy, product search or /shop landing
    woocommerce_get_template( 'archive-product.php' );
}

This now loads the archive-product.php from the /plugin folder which is a step forward, but it should really load the archive-product.php from the /myTheme folder. I don’t want to mess around in the plugin folder for obvious reasons…

Has anyone found a workaround for this?

Related posts

Leave a Reply

1 comment

  1. Your archive-product.php file should be in your theme folder, within a /woocommerce directory. So: /wp-content/themes/your-theme/woocommerce/archive-product.php. It’s a bit confusing, because the actual WooCommerce templates are within an additional /templates directory, in the plugin itself.

    Read more about overriding WooCommerce templates in their documentation: http://docs.woothemes.com/document/template-structure/