	<script>
	jQuery(function($) {

		var srPendingAddToCart = null;

		/*
		 * Capture information when WooCommerce begins
		 * an AJAX add-to-cart operation.
		 */
		$(document.body).on('adding_to_cart', function(event, $button, data) {

			var productId  = null;
			var variationId = null;
			var quantity   = 1;
			var productName = '';

			if ($button && $button.length) {

				productId = $button.attr('data-product_id') || null;

				quantity = parseFloat(
					$button.attr('data-quantity') || 1
				);

				/*
				 * On variable product pages, try to get
				 * the selected variation.
				 */
				var $form = $button.closest('form.cart');

				if ($form.length) {

					var selectedVariation = $form.find(
						'input[name="variation_id"]'
					).val();

					if (selectedVariation && selectedVariation !== '0') {
						variationId = selectedVariation;
					}

					var formQuantity = $form.find(
						'input.qty'
					).val();

					if (formQuantity) {
						quantity = parseFloat(formQuantity);
					}

					var $title = $('.product_title').first();

					if ($title.length) {
						productName = $.trim($title.text());
					}
				}
			}

			/*
			 * Also inspect WooCommerce's data object.
			 */
			if (data) {

				if (data.product_id) {
					productId = data.product_id;
				}

				if (data.variation_id) {
					variationId = data.variation_id;
				}

				if (data.quantity) {
					quantity = parseFloat(data.quantity);
				}
			}

			srPendingAddToCart = {
				product_id: productId,
				variation_id: variationId,
				quantity: quantity || 1,
				product_name: productName
			};
		});


		/*
		 * WooCommerce classic AJAX success event.
		 */
		$(document.body).on(
			'added_to_cart',
			function(event, fragments, cartHash, $button) {

				if (!srPendingAddToCart) {
					return;
				}

				var data = srPendingAddToCart;

				var itemId = data.variation_id
					? String(data.variation_id)
					: String(data.product_id || '');

				if (!itemId) {
					return;
				}

				var item = {
					item_id: itemId,
					item_name: data.product_name || itemId,
					quantity: data.quantity || 1
				};

				window.dataLayer = window.dataLayer || [];

				/*
				 * Clear any previous ecommerce object.
				 */
				window.dataLayer.push({
					ecommerce: null
				});

				window.dataLayer.push({
					event: 'add_to_cart',
					ecommerce: {
						currency: 'INR',
						items: [item]
					}
				});

				srPendingAddToCart = null;
			}
		);


		/*
		 * WooCommerce Blocks success event.
		 */
		document.addEventListener(
			'wc-blocks_added_to_cart',
			function() {

				/*
				 * If classic WooCommerce already processed
				 * the event, don't send it again.
				 */
				if (!srPendingAddToCart) {
					return;
				}

				var data = srPendingAddToCart;

				var itemId = data.variation_id
					? String(data.variation_id)
					: String(data.product_id || '');

				if (!itemId) {
					return;
				}

				window.dataLayer = window.dataLayer || [];

				window.dataLayer.push({
					ecommerce: null
				});

				window.dataLayer.push({
					event: 'add_to_cart',
					ecommerce: {
						currency: 'INR',
						items: [{
							item_id: itemId,
							item_name: data.product_name || itemId,
							quantity: data.quantity || 1
						}]
					}
				});

				srPendingAddToCart = null;
			}
		);

	});
	</script>
	<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//sockrepublic.in/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://sockrepublic.in/post-sitemap.xml</loc>
		<lastmod>2026-04-15T12:07:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sockrepublic.in/page-sitemap.xml</loc>
		<lastmod>2026-08-10T18:27:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sockrepublic.in/product-sitemap.xml</loc>
		<lastmod>2026-08-10T17:58:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sockrepublic.in/category-sitemap.xml</loc>
		<lastmod>2026-04-15T12:07:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sockrepublic.in/post_tag-sitemap.xml</loc>
		<lastmod>2026-04-15T12:07:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sockrepublic.in/product_cat-sitemap.xml</loc>
		<lastmod>2026-08-10T17:58:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sockrepublic.in/product_tag-sitemap.xml</loc>
		<lastmod>2026-08-10T17:58:27+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->