Showing 1–16 of 281 resultsSorted by latest
MOTO TORQUE KTM DUKE 250/390 GEN3 REAR MASTER CYLINDER GUARD:SILVER
₹570.01| Weight | 0.0 kg |
|---|---|
| KTM |
// 1. TRIGGER: On Status Change add_action('woocommerce_order_status_processing', 'throttlerz_run_automation', 10, 1); // 2. TRIGGER: On Manual Update (For testing existing orders) add_action('woocommerce_process_shop_order_meta', 'throttlerz_manual_test_trigger', 10, 1); function throttlerz_manual_test_trigger($order_id) { $order = wc_get_order($order_id); if ($order->get_status() === 'processing') { throttlerz_run_automation($order_id); } } function throttlerz_run_automation($order_id) { $order = wc_get_order($order_id); // Get Product Details $items = $order->get_items(); $p_name = 'Items'; $p_qty = 0; foreach ($items as $item) { $p_name = $item->get_name(); $p_qty += $item->get_quantity(); break; // Just get the first item } $city = $order->get_billing_city() ? $order->get_billing_city() : 'Address'; throttlerz_do_send( $order->get_billing_phone(), get_option('cm_temp_final'), $order->get_billing_first_name(), // {{1}} $p_name, // {{2}} (string)$p_qty, // {{3}} (string)$order->get_order_number(),// {{4}} $city, // {{5}} '4-5 Working Days', // {{6}} $p_name, // {{7}} get_bloginfo('name') // {{8}} ); } // ... Keep the throttlerz_do_send function and UI code from version 6.2 exactly as is ...
Showing 1–16 of 281 resultsSorted by latest
| Weight | 0.0 kg |
|---|---|
| KTM |