After some testing, found out that template overrides do not work with this method. You are advised to use Genesis Connect for WooCommerce instead of this method.
The code below is a modification of Josh Mallard’s by Stéphane Bergeron.
There is Genesis Connect for WooCommerce plugin but I prefer this method personally.
1) Add the following in child theme’s functions.php:
// Declare WooCommerce support for your theme | |
add_theme_support( 'woocommerce' ); |
2) Create a file named woocommerce.php in the child theme directory having the following code:
<?php | |
/** | |
* WooCommerce Template | |
* | |
* Template used for all WooCommerce views in order to avoid using Genesis Connect | |
* | |
*/ | |
//* Add WooCommerce content output | |
if ( function_exists( 'woocommerce_content' ) ) { | |
// Remove standard post content output | |
remove_action( 'genesis_loop', 'genesis_do_loop'); | |
// Replace the default Genesis loop with WooCommerce's | |
add_action( 'genesis_loop', 'woocommerce_content' ); | |
} | |
genesis(); |