WP Manifestindependent plugin directory
manifest / ecommerce / r2-wc-product-notify

R2 WC Product Notify WP Registry grade D+. High-severity findings · 2 findingsWP RegistryHigh-severity findings · 2 findingsOpen the reportD+

自動根據下單商品的課程日期進行 email 通知,適用於課程、門票等與時間有關的可變商品

★ 2stars
27release downloads
v1.1.30latest · 2 years ago

Install

Download r2-wc-product-notify.zip From the v1.1.30 release on GitHub, May 31, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/s0985514623/r2-wc-product-notify/releases/download/v1.1.30/r2-wc-product-notify.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

一句話說明:自動根據下單商品的課程日期進行 email 通知,適用於課程、門票等與時間有關的商品

使用方法

  • 啟用外掛之後會自動新增一個類型為日期的課程日期的商品屬性

  • 網站的時區記得要設定台北,不然 cron 的時間會有問題

  • 左側選單會有"課前提醒通知設定"頁籤,預設提前 1 天的 10 點發信,如果小於當天的時間會馬上發信

  • 於商品屬性點擊新增日期採用 DatePicker 方便選擇,選擇完畢自動帶入到商品屬性中

  • 可變商品增加4個自訂欄位:表單連結、表單備註、時間、地點,會自動帶入到 email 內容中

  • 除可變商品屬性以外也可針對商品進行全局設定

課前提醒郵件範例


可以提前多少天以及在什麼幾點進行發送,比如一門課有 8/25 號 8/29 號兩個時段,客戶下單了 29 號這個時段的課程商品,後台設定了提前 2 天並且在 10 點進行發送,那麼客戶就會在 8/27 的早上 10 點收到通知信

電子郵件模板來源:Email Customizer for WooCommerce (Pro)套件

於該外掛調整好版型以後輸出PHP檔案,再將檔案放置於本外掛指定目錄/templates/email

未來可能開發功能

  1. 自動帶入Email模板

參考

  • 1.React腳手架來源 J7
  • 2.外掛開發參考 J7

Releases

7 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.1.30 latest
May 31, 2024 2 years ago
r2-wc-product-notify.zip
7
May 30, 2024 2 years ago
r2-wc-product-notify.zip
2
May 30, 2024 2 years ago
r2-wc-product-notify.zip
3
May 30, 2024 2 years ago
r2-wc-product-notify.zip
3
May 22, 2024 2 years ago
r2-wc-product-notify.zip
1
Aug 25, 2023 3 years ago
r2-wc-product-notify.zip
7
Aug 25, 2023 3 years ago
r2-wc-product-notify.zip
4
D+ grade

Security

R2 WC Product Notify 1.1.30 · audited by WP Registry

High-severity findings.

1 high 1 low
Audited release
1.1.30
Findings
2
Worst severity
high
Content hash
b2a862344a17b1f9207c4399…

Findings

  • high Preview mail AJAX missing capability (and registered for nopriv)

    missing_capability

    send_preview_mail is hooked to both wp_ajax_ and wp_ajax_nopriv_. The callback only calls check_ajax_referer('r2_wc_ajax_nonce') then builds and cron-schedules an email to the operator. No current_user_can check. The nonce is localized on every admin page via admin_enqueue_scripts without a capability/screen restriction, so low-privilege users who can access wp-admin obtain a valid nonce and can trigger operator notification emails.

    inc/admin/class-ajax.php:21-169

    Recommendation

    Require manage_woocommerce or edit_products; remove nopriv registration; only enqueue/localize the nonce on product edit screens for authorized roles.

  • low AJAX error/success responses echo raw $_POST

    information_disclosure

    JSON responses include the full $_POST array under data, which can leak request parameters in logs/proxies and aid further attacks.

    inc/admin/class-ajax.php:59-66

    Recommendation

    Do not return raw $_POST in JSON responses.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.