Description
* NEOGEN White Truffle Ampoule Drop Mist 80ml
[DESCRIPTION]
[HOW TO USE]
/** * Plugin Name: WooCommerce Telegram 배송완료 알림 (Multi-Site) * Description: empresskorea.com, stylemz.com, skinseoulshop.com 주문이 배송 완료되면 Telegram으로 Fulfilled 메시지를 전송합니다. * Version: 1.1 * Author: Empress Korea */ if (!defined('ABSPATH')) exit; add_action('woocommerce_order_status_completed', 'ek_send_fulfilled_telegram_message_multisite'); function ek_send_fulfilled_telegram_message_multisite($order_id) { $order = wc_get_order($order_id); if (!$order) return; // ✅ 사이트 도메인 분기 $host = $_SERVER['HTTP_HOST'] ?? ''; $site_map = [ 'empresskorea.com' => ['name' => '🌸 Empress Korea'], 'stylemz.com' => ['name' => '👗 StyleMZ'], 'skinseoulshop.com' => ['name' => '🧴 Skin Seoul Shop'], ]; if (!isset($site_map[$host])) return; $site_name = $site_map[$host]['name']; // ✅ 주문 정보 $customer_name = trim($order->get_billing_first_name() . ' ' . $order->get_billing_last_name()); $order_date = $order->get_date_created() ? $order->get_date_created()->date('Y-m-d') : date('Y-m-d'); $country = $order->get_shipping_country() ?: 'N/A'; $shipping_total = number_format($order->get_shipping_total(), 2); // ✅ 아이템 정보 $items = []; foreach ($order->get_items() as $item) { $items[] = '• ' . $item->get_name() . ' x' . $item->get_quantity() . ' = $' . number_format($item->get_total(), 2); } // ✅ 메시지 $message = "📦 {$site_name} Fulfilled 🧾 Order ID: {$order_id} 👤 Customer: {$customer_name} 📅 Date: {$order_date} 🌍 Country: {$country} 🚚 Shipping: {$shipping_total} USD 🛒 Items: " . implode("\n", $items); // ✅ 텔레그램 전송 $TELEGRAM_BOT_TOKEN = '7284506085:AAF2KUcnCiEWwU746OFiqOaZr2V60bQE9S8'; $TELEGRAM_CHAT_ID = '-1001776338940'; $telegram_url = "https://api.telegram.org/bot{$TELEGRAM_BOT_TOKEN}/sendMessage"; $response = wp_remote_post($telegram_url, [ 'headers' => ['Content-Type' => 'application/json; charset=utf-8'], 'body' => json_encode([ 'chat_id' => $TELEGRAM_CHAT_ID, 'text' => $message, // parse_mode 제거 → 이스케이프 불필요 ]), 'method' => 'POST', 'timeout' => 10, ]); if (is_wp_error($response)) { error_log('[Telegram Fulfilled] 전송 실패: ' . $response->get_error_message()); } }
in stock
Original price was: $ 37.03.$ 25.92Current price is: $ 25.92.30% OFF
Unlike others who buy outdated, bulk items from trade shows, we, as proud Koreans, source directly from Korean manufacturers. We are not a foreign-operated site or a platform for third-party sellers like Amazon or Coupang. Every product we offer is personally selected and supplied by us, ensuring freshness, quality, and authenticity.
For over 15 years, we have been committed to delivering unparalleled quality and trust, setting ourselves apart from discount stores or platforms offering uncertain products. As a directly managed business, we focus on providing excellence and craftsmanship, not low prices. Our mission is clear: to serve those who value luxury, authenticity, and reliability above all else.
We are fully committed to ensuring the authenticity of all our products. In the unlikely event that any product you receive is found to be non-authentic, we will offer a full refund with no questions asked, as part of our dedication to your satisfaction and trust.
Our team is proudly 100% Korean, and we personally stand behind the quality of every product we offer. Each item is a reflection of our dedication to excellence and our commitment to delivering only the best to our customers.
* NEOGEN White Truffle Ampoule Drop Mist 80ml
[DESCRIPTION]
[HOW TO USE]
Weight | 0.15 kg |
---|