get_queried_object(); $rawtpl = \HQLib\get_term_meta($wterm->term_id, 'archive_template'); if (!empty($rawtpl) && $rawtpl != 'default') { $tpl = $rawtpl; $templateLoaded = 1; } } if (!$templateLoaded) { // Load archive if other are empty $rawtpl = get_theme_mod('hq_product_archive_layout'); if (!empty($rawtpl) && $rawtpl != 'default') { $tpl = $rawtpl; } } if ($tpl != 'noeltmp') { display_elementor_template($tpl); } else { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo \Marmot\set_elementor_template_message('archive', 'product'); } get_footer('shop'); } else { // No templates version wc_get_template('archive-product.php', null, WC()->plugin_path() . '/templates/'); }