WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-order-information-panel

WooCommerce Order Information Panel

Adds a detailed order information panel to the WooCommerce admin, including customer activity, order timing, device and browser details, payment method, IP address, and cart-to-checkout duration.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/amirrezashf/woocommerce-order-information-panel/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Display operational order, customer, payment, device, and timing information in a dedicated WooCommerce admin order meta box.

Features

  • Order creation date and time
  • Overnight-order indicator for orders created from 23:30 through 06:59
  • Time elapsed since the order was created
  • Warning for orders older than one year
  • Customer order count
  • Customer registration date
  • Guest-order indicator
  • Customer note presence indicator
  • Order total with order currency
  • Payment method
  • Customer IP address
  • Customer user agent
  • Basic browser detection
  • Basic device and operating-system detection
  • Optional cart-to-order duration when _first_added_to_cart_time and _custom_order_finalized_time exist
  • WooCommerce HPOS compatibility
  • No custom database table or settings page

Intentionally Removed

The plugin intentionally does not include the following logic from the original snippet:

  • customer birth date
  • official invoice request
  • physical/stamped official invoice request
  • high-priority/urgent order flag
  • gift-order flag
  • identity-verification warning

The associated custom meta keys are not read or displayed by this plugin.

Requirements

  • WordPress 6.0+
  • PHP 7.4+
  • WooCommerce

Installation

  1. Upload WooCommerce-Order-Information-Panel to /wp-content/plugins/.
  2. Activate WooCommerce Order Information Panel.
  3. Open a WooCommerce order in the admin panel.
  4. Review the Additional Order Information meta box.

WooCommerce / HPOS

The plugin declares HPOS compatibility and uses WC_Order getters for core order data.

Examples include:

  • get_customer_ip_address()
  • get_customer_user_agent()
  • get_payment_method_title()
  • get_total()
  • get_date_created()
  • get_customer_note()

The meta box is registered against WooCommerce's current order-editor screen ID.

Customer Order Count

The plugin uses wc_get_customer_order_count() instead of loading all of the customer's order objects or IDs into memory.

Cart-to-Order Duration

If another part of the site stores these order meta values:

  • _first_added_to_cart_time
  • _custom_order_finalized_time

the plugin displays the elapsed time between them.

The plugin does not create these values itself.

Privacy

This admin panel can display customer IP addresses and user-agent strings. These are potentially sensitive operational data and should only be accessible to authorized WooCommerce administrators.

Browser / Device Detection

Browser and device detection is intentionally lightweight and based on the stored User-Agent string. It should be treated as informative rather than authoritative, because User-Agent values can be absent, reduced, or spoofed.

Data Storage

This plugin does not create its own persistent data.

License

GPL-3.0

Author

Amirreza Shayesteh Far
https://github.com/amirrezashf


پنل اطلاعات سفارش ووکامرس

این افزونه اطلاعات تکمیلی و عملیاتی سفارش را در یک Meta Box مستقل در صفحه مدیریت سفارش WooCommerce نمایش می‌دهد.

قابلیت‌ها

  • زمان دقیق ثبت سفارش
  • تشخیص ثبت سفارش در بازه ۲۳:۳۰ تا ۰۶:۵۹
  • مدت زمان سپری‌شده از ثبت سفارش
  • هشدار سفارش‌های قدیمی‌تر از یک سال
  • تعداد سفارش‌های ثبت‌شده مشتری
  • تاریخ ثبت‌نام مشتری
  • مشخص کردن سفارش مهمان
  • مشخص کردن وجود یادداشت مشتری
  • مبلغ کل سفارش
  • روش پرداخت
  • IP مشتری
  • User Agent
  • تشخیص ساده مرورگر
  • تشخیص ساده دستگاه و سیستم‌عامل
  • نمایش زمان افزودن به سبد تا ثبت نهایی در صورت وجود Metaهای مربوطه
  • سازگاری با HPOS
  • بدون Custom Table و صفحه تنظیمات

موارد حذف‌شده

طبق نیاز این نسخه، تمام منطق‌های زیر از افزونه حذف شده‌اند:

  • تاریخ تولد
  • درخواست فاکتور رسمی
  • درخواست فاکتور رسمی فیزیکی یا مهرشده
  • سفارش با اولویت بالا / فوری
  • سفارش هدیه
  • بررسی یا هشدار احراز هویت

Metaهای مرتبط با این قابلیت‌ها نیز توسط افزونه خوانده یا نمایش داده نمی‌شوند.

HPOS

اطلاعات اصلی سفارش با Getterهای WC_Order خوانده می‌شوند و افزونه سازگاری HPOS را Declare می‌کند.

تعداد سفارش‌های مشتری

برای محاسبه تعداد سفارش‌ها از wc_get_customer_order_count() استفاده می‌شود و تمام Orderها در حافظه Load نمی‌شوند.

مدت زمان سبد تا سفارش

اگر بخش دیگری از سایت Metaهای زیر را ذخیره کرده باشد:

  • _first_added_to_cart_time
  • _custom_order_finalized_time

مدت زمان بین آن‌ها نمایش داده می‌شود.

خود افزونه این Metaها را ایجاد نمی‌کند.

حریم خصوصی

IP و User Agent می‌توانند داده عملیاتی حساس محسوب شوند. Meta Box فقط برای کاربران دارای Capability manage_woocommerce نمایش داده می‌شود.

ذخیره‌سازی داده

این افزونه هیچ داده اختصاصی جدیدی ذخیره نمی‌کند.

مجوز

GPL-3.0

نویسنده

Amirreza Shayesteh Far
https://github.com/amirrezashf