Linux 软件免费装
Banner图

Coupon Lock for WooCommerce

开发者 nihar007
更新时间 2026年11月23日 01:22
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce checkout coupons fraud abuse

下载

0.5.0 0.5.1 0.5.2

详情介绍:

Some shoppers create many accounts to claim your first-order discount again and again. Coupon Lock for WooCommerce links orders that share an email, phone number or address, even through other orders, and lets you stop the repeat coupon at checkout. Privacy Coupon Lock for WooCommerce stores one-way HMAC-SHA256 hashes of each order's billing email, phone, address and IP address in a table on your own site. The hashes cannot be reversed. Nothing is sent to any external server. Data is removed when an order is deleted or cancelled, through the WordPress personal data export and erase tools, and when the plugin is deleted. The plugin adds suggested text to your site's privacy policy page.

安装:

  1. Install and activate WooCommerce.
  2. Upload the plugin and activate it.
  3. Go to WooCommerce > Coupon Lock and click "Import past orders".
  4. Edit a coupon, open the Usage restriction tab and tick the Coupon Lock rules you want.

屏幕截图:

  • Overview with rings found, coupons guarded and the latest checkouts.
  • Linked accounts: every ring, filtered by what the orders share.
  • Ring detail: connection map and the shared details behind a ring.
  • Rules: choose which details each coupon checks.
  • Activity log of coupon checks and checkout decisions.
  • Settings: refuse the coupon, hold the order, or do nothing.

常见问题:

Does it send my customers' data anywhere?

No. Everything stays in your own database.

Can it block shoppers who use a different name?

Yes, if they reuse the same email (including Gmail aliases), phone number or street address plus postcode.

What does hold for review do?

Instead of refusing a "new customers only" coupon, the order is placed with the discount and set to On hold, even if a payment gateway reports it paid. Change the status to release it. Blocking and holding are alternatives: only one is active at a time.

Can I block by IP address?

Many honest customers share an IP address (offices, mobile networks), so IP matching is off by default. Add the IP rule to a coupon only if you accept that risk.

Can developers change its behavior?

Yes. Filters:

  • ts_coupon_lock_refuse_coupon ( $refuse, $order_ids, $coupon ): return false to let a repeat shopper's coupon through.
  • ts_coupon_lock_refusal_message ( $message, $coupon ): change the checkout error text.
  • ts_coupon_lock_hold_order ( $hold, $order, $order_ids ): return false to skip holding an order.
  • ts_coupon_lock_keep_held ( $keep, $order, $new_status ): return false to let another plugin (an auto-complete or fulfilment tool) move a held order out of on-hold.
  • ts_coupon_lock_track_order ( $track, $order ): return false to keep an order out of the index.
  • ts_coupon_lock_modules ( $modules ): add or remove plugin modules.
Actions:
  • ts_coupon_lock_coupon_blocked ( $code, $order_ids ): a coupon was refused at checkout.
  • ts_coupon_lock_order_held ( $order, $order_ids ): an order is about to be put on hold.
  • ts_coupon_lock_ring_detected ( $order, $order_ids ): an order was first linked to earlier orders. Also fires during the bulk import.
$order_ids are earlier orders that share email, phone or address with the shopper.

更新日志:

0.5.2 0.5.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0