// Remove ALL private/system notes BEFORE Lightspeed syncs
add_filter('woocommerce_new_order_note_data', function($data) {

    // Kill WooPayments / fee / stock / system notes
    $blocked_keywords = [
        'Fee details',
        'Base fee',
        'Net payout',
        'WooPayments',
        'Stock levels reduced',
        'payment was successfully charged',
        'Payment via Card',
        'Stock hold'
    ];

    foreach ($blocked_keywords as $keyword) {
        if (stripos($data['comment_content'], $keyword) !== false) {
            return false; // STOP note from being created
        }
    }

    return $data;

}, 1);
// Add CLEAN delivery info note (what Lightspeed WILL import)
add_action('woocommerce_checkout_update_order_meta', function($order_id) {

    $date = get_post_meta($order_id, '_delivery_date', true);
    $time = get_post_meta($order_id, '_time_slot', true);

    if ($date || $time) {
        $note = "DELIVERY INFO:\n";

        if ($date) {
            $note .= "Date: " . $date . "\n";
        }

        if ($time) {
            $note .= "Time: " . $time;
        }

        $order = wc_get_order($order_id);
        $order->add_order_note($note, false); // FALSE = customer-visible note (important!)
    }

}, 5);<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//garciaswarehouse.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://garciaswarehouse.com/post-sitemap.xml</loc>
		<lastmod>2025-09-29T14:00:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/page-sitemap.xml</loc>
		<lastmod>2026-04-08T19:01:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/product-sitemap.xml</loc>
		<lastmod>2026-04-10T22:48:15+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/bppiv-image-viewer-sitemap.xml</loc>
		<lastmod>2025-06-09T16:38:34+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/category-sitemap.xml</loc>
		<lastmod>2025-09-29T14:00:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/post_tag-sitemap.xml</loc>
		<lastmod>2025-09-29T14:00:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/product_cat-sitemap.xml</loc>
		<lastmod>2026-04-10T22:48:15+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/product_tag-sitemap.xml</loc>
		<lastmod>2026-04-10T22:48:15+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://garciaswarehouse.com/author-sitemap.xml</loc>
		<lastmod>2025-09-23T15:17:07+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->