template_url}{$slug}-{$name}.php" ) ); // Get default slug-name.php if ( !$template && $name && file_exists( $woocommerce->plugin_path() . "/templates/{$slug}-{$name}.php" ) ) $template = $woocommerce->plugin_path() . "/templates/{$slug}-{$name}.php"; // If template file doesn't exist, look in yourtheme/slug.php and yourtheme/woocommerce/slug.php if ( !$template ) $template = locate_template( array ( "{$slug}.php", "{$woocommerce->template_url}{$slug}.php" ) ); if ( $template ) load_template( $template, false ); } /** * Display shop items * * FOR BACKWARDS COMPATIBILITY with WooCommerce versions pre-1.6.0 * * Uses WooCommerce structure and contains all existing WooCommerce hooks * Note that this will also display any content created in the Shop Page itself * * Code based on WooCommerce 1.5.5 woocommerce_archive_product_content() * @see woocommerce/woocommerce-template.php * * * @since 0.9.4 * @updated 0.9.6 * @global string|int $shop_page_id The ID of the Shop WP Page */ function genesiswooc_product_archive() { global $shop_page_id; if ( !is_search() ) : $shop_page = get_post( $shop_page_id ); $shop_page_title = apply_filters( 'the_title', ( get_option( 'woocommerce_shop_page_title' ) ) ? get_option( 'woocommerce_shop_page_title' ) : $shop_page->post_title, $shop_page->ID ); $shop_page_content = $shop_page->post_content; else : $shop_page_title = __( 'Search Results:', 'woocommerce' ) . ' “' . get_search_query() . '”'; if ( get_query_var( 'paged' ) ) $shop_page_title .= ' — ' . __( 'Page', 'woocommerce' ) . ' ' . get_query_var( 'paged' ); $shop_page_content = ''; endif; do_action( 'woocommerce_before_main_content' ); ?>

'; woocommerce_page_title(); echo ''; } do_action( 'woocommerce_archive_description' ); if ( have_posts() ) { /** * Hook: woocommerce_before_shop_loop. * * @hooked wc_print_notices - 10 * @hooked woocommerce_result_count - 20 * @hooked woocommerce_catalog_ordering - 30 */ do_action( 'woocommerce_before_shop_loop' ); woocommerce_product_loop_start(); if ( wc_get_loop_prop( 'total' ) ) { while ( have_posts() ) { the_post(); /** * Hook: woocommerce_shop_loop. * * @hooked WC_Structured_Data::generate_product_data() - 10 */ do_action( 'woocommerce_shop_loop' ); wc_get_template_part( 'content', 'product' ); } } woocommerce_product_loop_end(); /** * Hook: woocommerce_after_shop_loop. * * @hooked woocommerce_pagination - 10 */ do_action( 'woocommerce_after_shop_loop' ); } else { /** * Hook: woocommerce_no_products_found. * * @hooked wc_no_products_found - 10 */ do_action( 'woocommerce_no_products_found' ); } /** * Hook: woocommerce_after_main_content. * * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) */ do_action( 'woocommerce_after_main_content' ); }