Genesis Connect for WooCommerce
This plugin replaces WooCommerce’s built-in shop templates with its own Genesis-ready versions, specifically the single-product.php , archive-product.php and taxonomy.php templates needed to display the single product page, the main shop page, and Product Category and Product Tag archive pages. To a
This plugin replaces WooCommerce’s built-in shop templates with its own Genesis-ready versions, specifically the single-product.php , archive-product.php and taxonomy.php templates needed to display the single product page, the main shop page, and Product Category and Product Tag archive pages.
To allow easy customization of these templates, and ensure that you do not lose your customizations when the plugin is updated, you can place your own copies of these templates in your child theme’s ‘woocommerce’ folder and customize these copies as much as you like. You can also create your own taxonomy-{taxonomy}.php and taxonomy-{taxonomy}-{term}.php templates in the same location and this plugin will find them and use them to display your shop’s Product Category and Product Tag archives. See the Template Hierarchy to learn more about naming requirements for taxonomy templates.
Additionally, the plugin makes Genesis Simple Sidebars and Genesis Simple Menus compatible with WooCommerce.
This version is compatible with WooCommerce 3.3+
Technical Info
For more technically minded users, this is what the plugin does:
- Unhooks the WooCommerce template loader function
- Adds its own template loader function to control the templates used by the single product, archive product and Product Category and Product Tag (taxonomy) archive pages.
- Adds Genesis Layouts and SEO support to the WooCommerce Product custom post type
- Provides three Genesis-ready templates to display the shop pages, located in the plugin’s templates folder: single-product.php
- archive-product.php
- taxonomy.php
These templates use WooCommerce core functions to display the shop loops which:
- unhook WooCommerce’s built-in breadcrumbs
- unhook the Genesis Loop and replace it with the relevant WooCommerce shop loop
- remove WooCommerce’s #container and #content divs, which are not required or wanted by Genesis
The shop loop function in each template is heavily based on its WooCommerce counterpart, but has been modified to accommodate certain Genesis features such as the Taxonomy term headings and descriptions feature. The templates contain the genesis(); function and therefore are fully customisable using Genesis hooks and filters. The template loader allows users to use their own templates in the child theme’s ‘woocommerce’ folder. These user templates, if they exist in the child theme’s `woocommerce’ folder, will be loaded in place of the supplied Genesis Connect for WooCommerce templates Using appropriate filters, modifies the Genesis breadcrumbs output to mimic the breadcrumb structure provided by WooCommerce’s built-in breadcrumbs.