<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
// Get current category slug
global $wp_query;
$cat_slug = $wp_query->query_vars['product_cat'];
// Call template conditionally
if($cat_slug == 'zakaznaya-produktsiya') {
wc_get_template( 'archive-custom.php' );
} else {
wc_get_template( 'archive-product.php' );
}
?>