1+ @php
2+ /**
3+ * The Template for displaying product archives, including the main shop page which is a post type archive
4+ *
5+ * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
6+ *
7+ * HOWEVER, on occasion WooCommerce will need to update template files and you
8+ * (the theme developer) will need to copy the new files to your theme to
9+ * maintain compatibility. We try to do this as little as possible, but it does
10+ * happen. When this occurs the version of the template file will be bumped and
11+ * the readme will list any important changes.
12+ *
13+ * @see https://docs.woocommerce.com/document/template-structure/
14+ * @package WooCommerce\Templates
15+ * @version 3.4.0
16+ */
17+ @endphp
18+
19+ @extends (' layouts.app' )
20+
21+ @section (' content' )
22+
23+ <header class =" woocommerce-products-header" >
24+
25+ @if ( apply_filters ( ' woocommerce_show_page_title' , true ) )
26+
27+ <h1 class =" woocommerce-products-header__title page-title" >@php woocommerce_page_title (); @endphp </h1 >
28+
29+ @endif
30+
31+
32+ @php
33+ /**
34+ * Hook: woocommerce_archive_description.
35+ *
36+ * @hooked woocommerce_taxonomy_archive_description - 10
37+ * @hooked woocommerce_product_archive_description - 10
38+ */
39+ do_action ( ' woocommerce_archive_description' );
40+ @endphp
41+ </header >
42+
43+ @if ( woocommerce_product_loop () )
44+
45+ @php
46+ /**
47+ * Hook: woocommerce_before_shop_loop.
48+ *
49+ * @hooked woocommerce_output_all_notices - 10
50+ * @hooked woocommerce_result_count - 20
51+ * @hooked woocommerce_catalog_ordering - 30
52+ */
53+ do_action ( ' woocommerce_before_shop_loop' );
54+
55+ woocommerce_product_loop_start ();
56+ @endphp
57+
58+ @if ( wc_get_loop_prop ( ' total' ) )
59+ @while ( have_posts () )
60+ @php
61+ the_post ();
62+
63+ /**
64+ * Hook: woocommerce_shop_loop.
65+ */
66+ do_action ( ' woocommerce_shop_loop' );
67+
68+ wc_get_template_part ( ' content' , ' product' );
69+ @endphp
70+ @endwhile
71+ @endif
72+ @php
73+ woocommerce_product_loop_end ();
74+
75+ /**
76+ * Hook: woocommerce_after_shop_loop.
77+ *
78+ * @hooked woocommerce_pagination - 10
79+ */
80+ do_action ( ' woocommerce_after_shop_loop' );
81+ @endphp
82+ @else
83+
84+ @php
85+ /**
86+ * Hook: woocommerce_no_products_found.
87+ *
88+ * @hooked wc_no_products_found - 10
89+ */
90+ do_action ( ' woocommerce_no_products_found' );
91+ @endphp
92+
93+ @endif
94+
95+ @php
96+
97+ /**
98+ * Hook: woocommerce_after_main_content.
99+ *
100+ * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
101+ */
102+ do_action ( ' woocommerce_after_main_content' );
103+
104+ /**
105+ * Hook: woocommerce_sidebar.
106+ *
107+ * @hooked woocommerce_get_sidebar - 10
108+ */
109+ do_action ( ' woocommerce_sidebar' );
110+ @endphp
111+ @endsection
0 commit comments