-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwoocommerce.php
More file actions
35 lines (23 loc) · 1.05 KB
/
woocommerce.php
File metadata and controls
35 lines (23 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php defined( 'ABSPATH' ) or die( header( 'HTTP/1.0 403 Forbidden' ) );
/**
* If your theme has `woocommerce.php`, you will be unable to override
* `woocommerce/archive-product.php` custom template in your theme, as
* `woocommerce.php` has priority over other template files. This is
* intended to prevent display issues.
*
* @source https://developer.woocommerce.com/docs/theming/theme-development/template-structure
*/
if ( have_posts() ) {
gThemeTemplate::wrapOpen( 'woocommerce' );
// gThemeNavigation::breadcrumb( [ 'home' => 'home' ] );
do_action( 'woocommerce_before_main_content' );
woocommerce_content(); // @REF: https://developer.woocommerce.com/docs/theming/theme-development/classic-theme-developer-handbook
do_action( 'woocommerce_after_main_content' );
// gThemeNavigation::content( 'woocommerce' );
gThemeTemplate::wrapClose( 'woocommerce' );
} else {
gThemeTemplate::wrapOpen( 'notfound' );
gThemeContent::notFound( 'woocommerce' );
gThemeTemplate::wrapClose( 'notfound' );
}
gThemeTemplate::sidebar( 'woocommerce' );