WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-customer-order-summary

WooCommerce Customer Order Summary

Display WooCommerce customer order count, paid total, and registration date on user profiles and customer-filtered admin order lists with HPOS support.

★ 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-customer-order-summary/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 a compact WooCommerce customer summary in WordPress admin, including total order count, total paid amount, and account registration date.

Features

  • Shows customer statistics on WordPress user profile/edit screens.
  • Shows the same summary below customer-filtered WooCommerce order lists.
  • Supports both legacy order storage and WooCommerce HPOS order screens.
  • Uses WooCommerce customer data APIs instead of loading every order into memory.
  • Limits output to authorized administrators and shop managers.
  • Translation-ready and compatible with WordPress admin conventions.

Requirements

  • WordPress 6.0+
  • PHP 7.4+
  • WooCommerce

Installation

  1. Upload the plugin folder to wp-content/plugins/ or install the ZIP from WordPress Admin.
  2. Activate WooCommerce Customer Order Summary.
  3. Open a user's profile, or filter WooCommerce orders by customer.

How It Works

The plugin uses WooCommerce's customer data store to retrieve:

  • Total WooCommerce order count for the registered customer.
  • Total amount spent across WooCommerce paid order statuses.
  • WordPress account registration date.

Unlike implementations that call wc_get_orders() with limit => -1, the plugin does not load every order object merely to calculate the summary.

Data Storage

This plugin does not create its own options, custom tables, post meta, order meta, or user meta.

WooCommerce itself may maintain cached customer statistics such as order count and money spent as part of its normal customer data handling.

Compatibility

  • WordPress 6.0+
  • PHP 7.4+
  • WooCommerce current stable versions
  • WooCommerce High-Performance Order Storage (HPOS)
  • Legacy WooCommerce order storage

License

GPL-3.0

Author

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


خلاصه سفارش‌های مشتری ووکامرس

این افزونه خلاصه‌ای از اطلاعات خرید مشتری را در مدیریت وردپرس نمایش می‌دهد؛ شامل تعداد سفارش‌ها، مجموع خریدهای پرداخت‌شده و تاریخ ثبت‌نام حساب کاربری.

قابلیت‌ها

  • نمایش اطلاعات مشتری در صفحه پروفایل و ویرایش کاربر.
  • نمایش همان اطلاعات در لیست سفارش‌های فیلترشده بر اساس مشتری.
  • پشتیبانی از صفحه سفارش‌های قدیمی و HPOS ووکامرس.
  • استفاده از API داده مشتری ووکامرس به‌جای بارگذاری تمام سفارش‌ها در حافظه.
  • محدود کردن نمایش اطلاعات به کاربران مدیریتی مجاز.
  • آماده ترجمه و هماهنگ با رابط مدیریت وردپرس.

نیازمندی‌ها

  • WordPress 6.0+
  • PHP 7.4+
  • WooCommerce

نصب

  1. پوشه افزونه را در wp-content/plugins/ قرار دهید یا فایل ZIP را از مدیریت وردپرس نصب کنید.
  2. افزونه WooCommerce Customer Order Summary را فعال کنید.
  3. صفحه ویرایش یک کاربر را باز کنید یا سفارش‌های ووکامرس را بر اساس مشتری فیلتر کنید.

نحوه عملکرد

افزونه از Data Store مشتری ووکامرس برای دریافت موارد زیر استفاده می‌کند:

  • تعداد کل سفارش‌های ثبت‌شده برای مشتری.
  • مجموع مبلغ خرید در وضعیت‌های پرداخت‌شده ووکامرس.
  • تاریخ ثبت‌نام حساب وردپرس.

برخلاف کد اولیه، برای محاسبه آمار از wc_get_orders() با limit => -1 استفاده نمی‌شود و تمام Order Objectها در حافظه بارگذاری نمی‌شوند.

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

این افزونه Option، جدول اختصاصی، Post Meta، Order Meta یا User Meta اختصاصی ایجاد نمی‌کند.

خود ووکامرس ممکن است آمار مشتری مانند تعداد سفارش‌ها و مجموع خرید را طبق سازوکار داخلی خود Cache کند.

سازگاری

  • WordPress 6.0+
  • PHP 7.4+
  • نسخه‌های پایدار فعلی WooCommerce
  • WooCommerce HPOS
  • ساختار Legacy سفارش‌های WooCommerce

مجوز

GPL-3.0

نویسنده

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