function shippo_tracking_ajax_handler() { // Basic tracking by order number only (for now) $order_number = isset($_POST['order_number']) ? sanitize_text_field($_POST['order_number']) : ''; if (empty($order_number)) { echo '
Please enter a valid order number.
'; wp_die(); } // Get order by number or ID $order_id = wc_get_order_id_by_order_number($order_number); if (!$order_id) { $order_id = absint($order_number); } $order = wc_get_order($order_id); if (!$order) { echo '
'; echo '
🔍
'; echo '

Order Not Found

'; echo '

We couldn\'t find an order matching the number you provided. Please check your order number and try again.

'; echo '
'; wp_die(); } // Display basic order info echo '
'; echo '

Order #' . esc_html($order->get_order_number()) . '

'; echo '
'; echo '
'; echo '
Date
'; echo '
' . esc_html($order->get_date_created()->date_i18n('F j, Y')) . '
'; echo '
'; echo '
'; echo '
Status
'; echo '
' . esc_html(wc_get_order_status_name($order->get_status())) . '
'; echo '
'; echo '
'; echo '
Total
'; echo '
' . wp_kses_post($order->get_formatted_order_total()) . '
'; echo '
'; echo '
'; echo '
'; // Get tracking info from standard WooCommerce $tracking_items = get_post_meta($order_id, '_wc_shipment_tracking_items', true); if (!empty($tracking_items) && is_array($tracking_items)) { echo '
'; foreach ($tracking_items as $index => $item) { $carrier = isset($item['tracking_provider']) ? $item['tracking_provider'] : 'Carrier'; $tracking_number = isset($item['tracking_number']) ? $item['tracking_number'] : ''; $tracking_url = isset($item['tracking_url']) ? $item['tracking_url'] : ''; echo '
'; echo '
'; echo '

Package ' . ($index + 1) . '

'; echo 'Shipped'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
Tracking Number
'; echo '
' . esc_html($tracking_number) . '
'; echo '
'; echo '
'; echo '
Carrier
'; echo '
' . esc_html($carrier) . '
'; echo '
'; echo '
'; if (!empty($tracking_url)) { echo '
'; echo 'Track on Carrier Website'; echo '
'; } echo '
'; echo '
'; } echo '
'; } else { echo '
'; echo '

No tracking information is available for this order yet. If your order was recently placed, please check back later.

'; echo '
'; } wp_die(); } // Make sure both hooks are in place add_action('wp_ajax_shippo_track_order', 'shippo_tracking_ajax_handler'); add_action('wp_ajax_nopriv_shippo_track_order', 'shippo_tracking_ajax_handler'); Sprinkler & Lighting News

fx 342 evo collection photolibrary

Illuminate Your Outdoors with the New FX Luminaire Evo Collection – High Performance Low Voltage Lighting on a Budget

Outdoor lighting is more than just functional—it’s an essential part of creating ambiance, enhancing safety, and highlighting the beauty of your landscape. If you’re looking for high-performance outdoor lighting that doesn’t break the bank, the FX Luminaire Evo™ Collection is here to deliver. Launched on February 17, 2025, this innovative lineup combines affordability, durability, and eco-conscious design, making […]

Hunter ICC2 I2CF 800 PL 8 Station Up to 38 Controller with Flow Plastic I2CF800PL

Transform Your Irrigation Management with the New Hunter ICC2 Flow Controller

Transform Your Irrigation Management with the New Hunter ICC2 Flow Controller In today’s landscape management world, efficiency isn’t just a buzzword—it’s a necessity. That’s why Hunter’s latest ICC2 Controller with built-in flow monitoring is creating waves in the irrigation industry. Whether you’re a contractor looking to upgrade your offerings or a property manager seeking better […]

002 Projects Releases Blog Cover TAPE BT blue

Alliance Outdoor Lighting All-New Strip Lighting Solutions

Enhance your outdoor living spaces with our innovative LED tape lighting solutions, designed to provide both functionality and aesthetic appeal. Ideal for illuminating stairs, railings, patios, seating areas, and outdoor kitchens, our tape lights offer a concealed, glare-free lighting experience that elevates the ambiance of any setting. Key Features: Slim Design: With a sleek half-inch […]

FX Luminaire Pinnacle PP 36 Path Light

Introducing FX Luminaire Pinnacle PP-36 Directional Path Light: A Must-Have for Contractors and Homeowners Alike

When it comes to landscape lighting, achieving the perfect balance of functionality and aesthetics is key. Whether you’re a landscape contractor or a homeowner with a passion for outdoor design, the new Pinnacle PP-36 Directional Path Light is an ideal addition to any project. Engineered for maximum adjustability and built to withstand the elements, this […]

WAC Lighting Colorscaping Collection

Illuminate Your Landscape with WAC Colorscaping Lights

If you’re a homeowner looking to enhance your outdoor spaces or a contractor aiming to deliver stunning landscape lighting solutions, WAC Lighting Colorscaping offers innovative and customizable lighting options that transform any outdoor environment. What Is Colorscaping? Colorscaping is WAC Lighting’s cutting-edge technology, designed to bring customizable color experiences to your landscape. Whether you want […]

New Hunter MP Rotator MP 820 Nozzles

Expand Your Irrigation Options with the New MP Rotator MP-820 Nozzle from Hunter Industries

As a contractor, having the right tools in your arsenal is key to delivering efficient irrigation solutions. The MP Rotator Nozzle product line, already a leader in the industry, just got even better with the introduction of the MP-820 Nozzle, offering enhanced coverage and flexibility. Designed to optimize water usage for various landscape needs, the […]

rain bird bat bt ESP BAT BT1 F58571 scaled

ESP-BAT-BT Bluetooth Irrigation Controller Review: A Rain Bird Replacement for Hunter NODE and Toro DDCWP

If you’re a contractor or homeowner looking to simplify and enhance your irrigation system, the ESP-BAT-BT Bluetooth Battery-Operated Controllers from Rain Bird are the ultimate solution. With a powerful blend of advanced features and long-lasting battery life, these controllers make it easier than ever to manage water efficiently and remotely. Available in four models—ESP-BAT-BT1, ESP-BAT-BT2, […]

pp 36 ab 101 rt

FX Luminaire Launches New Modern, Runa, and Pinnacle Landscape Path and Accent Lights

As you step into your backyard, imagine a landscape transformed by the perfect blend of beauty and functionality. The gentle glow of path lights guides your way, while accent lights highlight the unique features of your garden. The trees seem to come alive in the evening, casting intricate shadows as their branches sway. With the […]

ddcwp 2 3

What to Do When the Toro DDCWP Battery Controller is Discontinued? Explore Top Alternatives Now!

If you’ve been relying on the Toro DDCWP Battery Controller for remote wireless irrigation management, you may have noticed it’s no longer made by The Toro Company. But don’t worry—there are great alternatives that offer advanced features and improved reliability. The Toro DDC WP provides wireless, battery-powered control over your irrigation system, making it ideal […]

FX Luminaire PX Lighting Transformer PX 150 SS

Enhancing the PX Line: Introducing the New High-Quality, 150W Low-Wattage Potenzax PX Transformer from FX Luminaire | PX-150-SS

The popular PX Transformer from FX Luminaire now comes in a 150 W model. Featuring a high-quality, 304 stainless steel cabinet, the new PX-150-SS is the industry’s only commercial-grade, low-wattage transformer with UL-1838 and UL-379 certification. This makes it possible to safely operate the transformer near pools, spas, and fountains. Power and Performance That’s Just […]