  private function render_missing_locations_list() {
        global $wpdb;

        $stock = $wpdb->prefix . 'wh_stock';
        $items_table = $wpdb->prefix . 'wh_items';

        $html_items = [];

        // 1. Produse WooCommerce fără nicio locație salvată.
       $all_products = get_posts([
    'post_type' => ['product', 'product_variation'],
    'post_status' => ['publish', 'private'],
    'posts_per_page' => -1,
    'fields' => 'ids',
    'tax_query' => [
        [
            'taxonomy' => 'product_cat',
            'field' => 'name',
            'terms' => ['ECHIPAMENT'],
            'operator' => 'NOT IN',
        ]
    ]
]);

        foreach ($all_products as $product_id) {
            $exists = $wpdb->get_var($wpdb->prepare("
                SELECT COUNT(*)
                FROM $stock
                WHERE item_type = 'product'
                AND item_id = %d
            ", intval($product_id)));

            if (intval($exists) === 0) {
                $product = wc_get_product($product_id);

                if (!$product) {
                    continue;
                }

                $html_items[] = [
                    'type' => 'Produs WooCommerce',
                    'name' => $product->get_name(),
                    'sku' => $product->get_sku(),
                    'category' => $this->get_product_categories_label($product->get_id()),
                    'reason' => 'Nu are locație salvată',
                    'image' => $product->get_image('thumbnail'),
                ];
            }
        }<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//vtbfishing.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://vtbfishing.com/page-sitemap.xml</loc>
		<lastmod>2026-05-27T10:52:56+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://vtbfishing.com/product-sitemap.xml</loc>
		<lastmod>2026-05-27T11:31:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://vtbfishing.com/magazin-sitemap.xml</loc>
		<lastmod>2026-05-14T10:52:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://vtbfishing.com/product_cat-sitemap.xml</loc>
		<lastmod>2026-05-27T11:31:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://vtbfishing.com/product_tag-sitemap.xml</loc>
		<lastmod>2026-05-27T11:31:40+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->