add_action('wp_head', 'alzain_product_schema');
function alzain_product_schema() {
    if (!is_product()) return;
    global $product;
    $schema = [
        '@context'    => 'https://schema.org',
        '@type'       => 'Product',
        'name'        => get_the_title(),
        'description' => wp_strip_all_tags($product->get_description() ?: $product->get_short_description()),
        'url'         => get_permalink(),
        'image'       => wp_get_attachment_url($product->get_image_id()),
        'brand'       => ['@type' => 'Brand', 'name' => 'Al Zain Trading'],
        'sku'         => $product->get_sku(),
        'offers'      => [
            '@type'         => 'Offer',
            'priceCurrency' => 'AED',
            'price'         => $product->get_price(),
            'availability'  => $product->is_in_stock()
                                ? 'https://schema.org/InStock'
                                : 'https://schema.org/OutOfStock',
            'url'           => get_permalink(),
            'seller'        => ['@type' => 'Organization', 'name' => 'Al Zain Trading']
        ]
    ];
    echo '<script type="application/ld+json">' . wp_json_encode($schema) . '</script>';
}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//alzaintrading.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://alzaintrading.com/post-sitemap.xml</loc>
		<lastmod>2026-02-25T06:41:47+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://alzaintrading.com/page-sitemap.xml</loc>
		<lastmod>2026-02-24T11:28:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://alzaintrading.com/product-sitemap1.xml</loc>
		<lastmod>2026-04-14T04:42:22+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://alzaintrading.com/product-sitemap2.xml</loc>
		<lastmod>2026-04-06T12:15:43+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://alzaintrading.com/category-sitemap.xml</loc>
		<lastmod>2026-02-25T06:41:47+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://alzaintrading.com/product_cat-sitemap.xml</loc>
		<lastmod>2026-04-14T04:42:22+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->