403Webshell
Server IP : 104.171.130.249  /  Your IP : 216.73.216.146
Web Server : nginx/1.25.5
System : Linux 0dac65491b7e 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/matreshka/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/woocommerce/archive-product.php
<?php
/**
 * The Template for displaying product archives, including the main shop page which is a post type archive
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://woocommerce.com/document/template-structure/
 * @package WooCommerce\Templates
 * @version 8.6.0
 */

defined( 'ABSPATH' ) || exit;

get_header( 'shop' );

// Check if this is a search results page
$is_search = is_search();

// Check if this is a product category page
$is_product_category = is_product_category();
$current_category = $is_product_category ? get_queried_object() : null;

// Debug
error_log( 'Archive template - is_search: ' . ( $is_search ? 'YES' : 'NO' ) );
error_log( 'Archive template - is_category: ' . ( $is_product_category ? 'YES' : 'NO' ) );

if ( $is_search ) {
	// Use custom search template
	get_template_part( 'template-parts/woocommerce/search-results' );
} elseif ( $is_product_category && $current_category ) {
	// Use custom category template
	get_template_part( 'template-parts/woocommerce/category-page' );
} else {
	// Use custom shop template
	get_template_part( 'template-parts/woocommerce/shop-page' );
}

get_footer( 'shop' );

Youez - 2016 - github.com/yon3zu
LinuXploit