| 开发者 | nihar007 |
|---|---|
| 更新时间 | 2026年11月23日 01:22 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
+tags are treated as the same address. Set rules from the Rules tab or from the coupon's Usage restriction tab.No. Everything stays in your own database.
Yes, if they reuse the same email (including Gmail aliases), phone number or street address plus postcode.
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.
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.
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.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.
Api::set_ring_state and Api::ring_state_for_order so add-ons can allow, block or clear a ring.Api::component, Api::edge_rows, a ring detail filter and generic map hubs for add-ons.