Install
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-follow-up/archive/refs/heads/main.zipLet customers submit controlled follow-up requests for eligible WooCommerce orders from My Account.
Features
- Follow-up button in order list and order details
- 12-hour minimum order age
- Server-side rate limiting
- Off-hours scheduling to the next 08:01
- Private order notes with request count
- Ownership and nonce validation
- Classic orders and HPOS support
- Single-file plugin
Default Eligible Statuses
processing
on-hold
mohem
Add a custom status:
add_filter( 'wc_cofu_allowed_statuses', static function ( $statuses ) {
$statuses[] = 'custom-status';
return $statuses;
} );
How It Works
A follow-up becomes available after the order is at least 12 hours old.
During normal hours, the next request is allowed after 12 hours. Requests made from 23:00 to 07:59 are scheduled for the next local 08:01.
Accepted requests add a private order note and increment the follow-up counter.
Data Storage
_wc_cofu_next_allowed
_wc_cofu_count
No custom table is created.
Requirements
- PHP 7.4+
- WordPress 6.0+
- WooCommerce
Installation
- Download the repository as ZIP.
- Upload it from Plugins → Add New Plugin → Upload Plugin.
- Activate the plugin.
Filters
wc_cofu_allowed_statuses
wc_cofu_minimum_order_age
wc_cofu_follow_up_interval
Action
wc_cofu_follow_up_submitted
License
GPL-3.0
Author
Amirreza Shayesteh Far
- GitHub: https://github.com/amirrezashf
- Repository: https://github.com/amirrezashf/WooCommerce-Customer-Order-Follow-Up
پیگیری سفارش توسط مشتری در ووکامرس
ثبت درخواست پیگیری کنترلشده برای سفارشهای مجاز از بخش حساب کاربری.
قابلیتها
- دکمه پیگیری در لیست و جزئیات سفارش
- حداقل ۱۲ ساعت از ثبت سفارش
- محدودیت سمت سرور
- تنظیم نوبت بعدی روی ساعت ۰۸:۰۱ برای درخواست خارج ساعات کاری
- یادداشت خصوصی و شمارنده
- بررسی مالکیت و nonce
- سازگار با ساختار کلاسیک و HPOS
- افزونه تکفایلی
وضعیتهای پیشفرض
processing
on-hold
mohem
افزودن وضعیت سفارشی:
add_filter( 'wc_cofu_allowed_statuses', static function ( $statuses ) {
$statuses[] = 'custom-status';
return $statuses;
} );
نحوه عملکرد
دکمه پس از گذشت ۱۲ ساعت از ایجاد سفارش نمایش داده میشود.
در ساعات عادی، درخواست بعدی پس از ۱۲ ساعت مجاز است. درخواستهای ثبتشده بین ۲۳:۰۰ تا ۰۷:۵۹، برای ساعت ۰۸:۰۱ بعدی زمانبندی میشوند.
هر درخواست موفق یک یادداشت خصوصی روی سفارش ثبت میکند.
ذخیرهسازی
_wc_cofu_next_allowed
_wc_cofu_count
جدول جدیدی ساخته نمیشود.
نصب
- Repository را بهصورت ZIP دانلود کنید.
- از مسیر افزونهها ← افزودن افزونه تازه ← بارگذاری افزونه نصب کنید.
- افزونه را فعال کنید.
فیلترها
wc_cofu_allowed_statuses
wc_cofu_minimum_order_age
wc_cofu_follow_up_interval
اکشن
wc_cofu_follow_up_submitted
مجوز
GPL-3.0
نویسنده
Amirreza Shayesteh Far