
內容簡介
WPGenie Product Subscriptions for WooCommerce 是一款為 WooCommerce 產品添加訂閱功能的外掛,讓商家能夠輕鬆管理訂閱產品的計畫、續訂和提醒,提升顧客的購物體驗。
【主要功能】
• 訂閱與續訂管理
• 自訂訂閱價格計畫
• 前端選擇器佈局選項
• 顧客帳戶中的訂閱管理
• 彈性到期提醒設定
• WooCommerce 郵件整合
外掛標籤
開發者團隊
② 後台搜尋「WPGenie Product Subscriptions for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
This plugin adds a subscription engine for WooCommerce products with the following features:
Subscriptions and Renewals: When a customer purchases a subscription product, a record is created under Subscriptions with start date, expiry date, status (active / expired), customer details, and original order.
Subscription Pricing Plans: Define one or more billing plans for a product, each with its own interval (e.g. every 1, 2, etc.), period (day, week, month, year), and custom price.
Frontend Selector Layout: Choose between displaying plans as a dropdown menu or radio buttons on the single product page.
My Account Subscriptions: Customers can view, manage, and manually renew their subscriptions from the “Subscriptions” page in My Account.
Flexible Expiry Reminders: Set a custom list of comma-separated days before expiration to send reminder emails (e.g., 30, 10, 3).
Subscription Notes: Tracks change logs (such as status changes and expiry date modifications) and allows custom notes to be saved for each subscription.
WooCommerce Emails: Integrates template-based customer emails for automated expiry reminders and expired alerts, customizable in WooCommerce settings.
Manual Renewal: Admin can trigger subscription renewal directly from the dashboard.
Important: this is a free lightweight subscription plugin for WooCommerce. It does not process automatic recurring payments or payment retries. Subscriber must manually renew / pay subscription on expiration.
Shortcodes
Restrict Content to Subscribers
[wpgps_content product_id="123"]Your protected content here...[/wpgps_content]
Displays the enclosed content only to logged-in users who have an active subscription for the specified product ID(s).
Attributes:
* product_id (or id): Single product ID or comma-separated list of product IDs (e.g. product_id="123,456").
* require_all: Set to true to require active subscriptions to all listed products, or false if having a subscription to any one of them is sufficient (default: false).
* status: Subscription status to check (default: active).
Developer API
Other plugins and themes can check subscription statuses using the following helper functions:
Check if a user has an active subscription
wpgps_has_active_subscription( $user_id, $product_id )
Returns true if the user has an active subscription for the specified product, otherwise false.
Retrieve user subscription IDs
wpgps_get_user_subscriptions( $user_id, $status )
Returns an array of subscription post IDs for the user, filtered by status (defaults to 'active'). Pass '' to retrieve all subscriptions regardless of status.
Manual Subscription Creation
To manually create a new subscription for a customer:
Navigate to WooCommerce > Orders and click Add order.
Select the customer you want to assign the subscription to.
Click Add item(s) and then click Add product(s). Search and add a subscription-enabled product.
(Optional) Click the Edit icon (pencil) next to the added product item. Under Subscription Settings, select a custom Interval and Period if needed (leave them empty to use the default product settings). Save the item.
Set the order status to Processing or Completed and save/update the order.
The plugin will automatically generate a new active subscription under Subscriptions linked to the customer and order.
