Linux 软件免费装
Banner图

Codayman First Order Coupons for WooCommerce

开发者 saddam987020
更新时间 2026年7月20日 00:18
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

discount woocommerce coupon first order discount first order coupon new customer discount

下载

1.0.0

详情介绍:

Codayman First Order Coupons for WooCommerce lets store owners create coupon codes that can only be redeemed by customers placing their very first order. WooCommerce includes powerful coupon functionality, but it doesn't provide a built-in way to restrict coupons exclusively to first-time customers. This plugin fills that gap with a lightweight, native WooCommerce solution that integrates directly into the existing coupon editor. Simply edit any WooCommerce coupon, enable the First order coupon only option, and the plugin will automatically validate whether the customer has previously placed a qualifying order. The validation works for both logged-in customers and guest checkouts, ensuring that first-order promotions are applied fairly without requiring additional configuration. The plugin is lightweight, translation-ready, HPOS compatible, follows WordPress Coding Standards, and integrates seamlessly with WooCommerce. Features How it works Order statuses that don't represent a completed or genuine purchase attempt (pending payment, failed, cancelled, and trashed) are ignored when checking a customer's order history, so an abandoned or failed order will not block the customer from later using a first-order coupon. You can adjust which statuses are excluded with the focw_excluded_order_statuses filter.

安装:

  1. Upload the plugin files to the /wp-content/plugins/codayman-first-order-coupons-for-woocommerce directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Make sure WooCommerce is installed and active.
  4. Go to Marketing → Coupons (or WooCommerce → Coupons), create or edit a coupon, open the Usage restriction tab, and check First order only.

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this work for guest checkouts?

Yes. The plugin checks the billing email entered at checkout against past orders in the store, in addition to checking the logged-in customer's account and email when applicable.

Which order statuses count as a "previous order"?

Any status except Pending payment, Failed, Cancelled, and Trash. This can be customized with the focw_excluded_order_statuses PHP filter.

Does this create any new database tables?

No. The plugin stores a single piece of coupon meta data using WooCommerce's own coupon CRUD, and reads existing order data through wc_get_orders().

Is this compatible with High-Performance Order Storage (HPOS)?

Yes, the plugin declares compatibility and only queries orders through the WooCommerce CRUD/query APIs.

更新日志:

1.0.0