// 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 ...
SUZUKI – Page 3 – Performance Bikes
Showing 33–48 of 101 resultsSorted by latest
Sort:
Show:
₹780.00 In Stock
| Weight |
0.0 kg |
| COLOR |
BLACK, BLUE, Red, ORANGE
|
| BAJAJ |
DOMINAR 250, DOMINAR 400
|
| KTM |
ADV 250, ADV 390, DUKE 125, DUKE 200, DUKE 250, DUKE 250 BS6, DUKE 390
|
| BENELLI |
TNT 250, TNT 300, TNT 600, TRK 250, TRK 502
|
| BMW |
G310GS
|
| SUZUKI |
V STORM 250
|
| YEZDI |
ADVENTURE, ROADSTAR, YEZDI SCRAMBLER
|
| HARLY DAVIDSON |
XX440
|
| JAWA |
JAEA PERAK, JAWA 42, JAWA STANDARD
|
| TRIUMPH |
SCRAM 400, SPEED 400X
|
₹1,250.00 In Stock
| Weight |
0.0 kg |
| COLOR |
RED, BLUE, gold, BLACK, ORANGE
|
| BAJAJ |
DOMINAR 250, DOMINAR 400
|
| KTM |
ADV 250, ADV 390, DUKE 125, DUKE 200, DUKE 250, DUKE 250 BS6, DUKE 390
|
| BENELLI |
TNT 250, TNT 300, TNT 600, TRK 250, TRK 502
|
| BMW |
G310GS
|
| SUZUKI |
V STORM 250
|
| YEZDI |
ADVENTURE, ROADSTAR, YEZDI SCRAMBLER
|
| HARLY DAVIDSON |
XX440
|
| JAWA |
JAEA PERAK, JAWA 42, JAWA STANDARD
|
| TRIUMPH |
SCRAM 400, SPEED 400X
|
₹1,950.01 In Stock
| Weight |
0.0 kg |
| COLOR |
RED, WHITE, yellow, BLACK, ORANGE
|
| BAJAJ |
DOMINAR 250, DOMINAR 400
|
| KTM |
ADV 250, ADV 390, DUKE 125, DUKE 200, DUKE 250, DUKE 250 BS6, DUKE 390
|
| Royal Enfield |
BULLET, CLASSIC 350, HIMALAYAN, HIMALAYAN 450, HUNTER 350, METEOR 350, REBORN, SUPER METEOR 350
|
| BENELLI |
TNT 250, TNT 300, TNT 600, TRK 250, TRK 502
|
| BMW |
G310GS
|
| HONDA |
CB 200X, CB UNICORN, HONDA HNES CB350, HORNET 2.0
|
| SUZUKI |
V STORM 250
|
| HERO |
IMPULSE, XPULSE 160, XPULSE 200, XPULSE 200 4V, XPULSE RALLY
|
| YEZDI |
ADVENTURE, ROADSTAR, YEZDI SCRAMBLER
|
| HARLY DAVIDSON |
XX440
|
| JAWA |
JAEA PERAK, JAWA 42, JAWA STANDARD
|
| TRIUMPH |
SCRAM 400, SPEED 400X
|