
外掛標籤
開發者團隊
② 後台搜尋「BePlus Discounts for Contact Form 7」→ 直接安裝(推薦)
原文外掛簡介
BePlus Discounts for Contact Form 7 helps you add coupon and discount support to Contact Form 7 forms without turning Contact Form 7 into a payment processor.
It is designed for forms that already calculate or collect an original amount and need to apply a coupon before a payment addon reads the final amount.
What It Does
Validates coupon codes
Applies fixed or percentage discounts
Updates a final amount field inside the Contact Form 7 submission
Tracks coupon usage after successful submissions
Supports date windows, active/inactive status, quantity rules, and usage limits
Works with payment addons that can read a final amount field
Core Features
Fixed amount and percentage discounts
Start date and expiry date support
Active and inactive coupon states
Usage limit tracking
AJAX coupon validation
Server-side recalculation before submission completes
Custom [cf7_discount_apply] tag with tag generator support
Final amount field updates for payment addon compatibility
Before You Install
This plugin requires:
WordPress
Contact Form 7
A Contact Form 7 form that includes amount-related fields
This plugin does not process payments by itself. It prepares a validated final amount so your payment addon can use it.
Usage
1. Configure Field Names
Open CF7 Discounts > Settings and confirm the field names you want to use.
Default field names:
Coupon field: coupon_code
Quantity field: qty
Original amount field: amount
Final amount field: final_amount
Discount amount field: discount_amount
Discount message field: discount_message
2. Create A Coupon
Open CF7 Discounts > Coupons and add a coupon with the settings you need, such as:
Coupon code
Fixed or percentage discount
Active status
Start date
Expiry date
Usage limit
Minimum quantity
Minimum total
3. Add The Fields To Your Contact Form 7 Form
Example form markup using the default field names:
[text coupon_code]
[number qty min:1 "1"]
[hidden amount "100"]
[hidden final_amount "100"]
[hidden discount_amount "0"]
[hidden discount_message ""]
[cf7_discount_apply "Apply Discount"]
[submit "Pay Now"]
If your form does not use quantity-based coupon rules, you can omit the quantity field.
4. Connect Your Payment Addon
If you use a payment addon, point it to the final amount field, not the original amount field.
The plugin recalculates the final amount on the server before Contact Form 7 completes submission, which helps prevent tampering.
