Linux 软件免费装
Banner图

WebStyle Personal Coupons for WooCommerce

开发者 cnwebstyle
更新时间 2026年11月10日 05:54
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

newsletter woocommerce coupons discount codes unique coupons

下载

1.0.0 1.1.0

详情介绍:

WebStyle Personal Coupons lets you run coupon campaigns. A campaign gives every customer their own code, or one shared code with limits, and groups into categories so you can see what each campaign brought in. Personal codes Shared codes For every campaign Campaign screen Under Marketing → Discount codes the overview shows the codes issued and redeemed, what customers saved and the revenue for the last week, month, 3 months or any interval, per category and campaign, with a chart and a CSV export. A short guide walks you through a new campaign in four steps and sums up the rules in plain words before you save. Every product, category, tag, attribute value and country can be picked from a list you can browse and search, and a new category can be created right where you choose it. The discount step shows how WooCommerce calculates shipping in your shop with the code: your free-shipping thresholds per zone, whether they are measured before or after the discount, and an example with the discount you entered. Each campaign has its own page with the codes issued and used, what customers saved and the revenue from orders with a code. Paste e-mail addresses or upload a CSV file to issue personal codes, and download all codes as CSV. The discount step mentions three of our paid plugins where they answer the question at hand: WebStyle Accounting Sync under the discount (bookkeeping), Checkout Optimizer Pro under shipping (free shipping with a code) and WebStyle Mail under sending personal codes. Each mention can be closed for good and is not shown when that plugin is active. Codes are kept in the plugin's own database tables instead of as WooCommerce coupon posts, so thousands of personal codes do not slow down your shop. Sending codes Other plugins can issue codes through a filter. WebStyle Mail uses it to put a personal code in each newsletter. For developers Issue or fetch a recipient's personal code in a campaign: $code = apply_filters( 'cnwscoupons_issue_code', '', array( 'campaign' => 'spring-offer', 'email' => 'customer@example.com', 'source' => 'my-plugin' ) ); The filter returns an empty string when the campaign does not exist, has ended, has issued all its codes, has a shared code, or the e-mail address is invalid. List active campaigns with personal codes (slug => name): $campaigns = apply_filters( 'cnwscoupons_active_campaigns', array() ); List active campaigns with one shared code (slug => name and code): $shared = apply_filters( 'cnwscoupons_shared_campaigns', array() ); Add-ons can change the WooCommerce coupon a code produces with the cnwscoupons_coupon_data filter, store their own settings on a campaign (cnwscoupons_extension_sanitizers), add fields to the campaign guide with the JavaScript filter cnwscoupons.guide.shipping, and look up a code's campaign with cnwscoupons_campaign_for_code. WP-CLI: wp webstyle-coupons create-campaign, list-campaigns, issue and codes.

安装:

  1. Install and activate WooCommerce.
  2. Install the plugin from Plugins → Add New, or upload the ZIP file, and activate it.
  3. Go to Marketing → Coupon campaigns and click Create campaign.
  4. For personal codes, open the campaign and paste e-mail addresses or upload a CSV file. A shared code is ready as soon as the campaign is saved.

屏幕截图:

  • The discount step: the discount, and how WooCommerce calculates shipping in your shop when the code is used.
  • Decide which products, categories, tags, attribute values and countries the code covers, picked from lists you can browse and search.
  • Before you save, the guide sums up the campaign's rules in plain words.
  • A campaign page with its figures, rules and the personal codes issued so far.
  • All campaigns with their discount, period, issued and used codes and savings.

升级注意事项:

1.1.0 Adds a filter for newsletter plugins to list shared codes. No changes to campaigns or codes. 1.0.0 First public release.

常见问题:

Do the codes appear under Marketing → Coupons?

No. They are served to WooCommerce on the fly from the plugin's own tables, so they do not appear in WooCommerce's coupon list. The plugin shows them per campaign instead.

What happens to a code when an order is cancelled?

The code is released and can be used again until it expires.

Does the plugin contact any external service?

No. Everything stays in your shop's database, and the admin screen loads no external scripts or fonts.

What personal data does the plugin store?

The e-mail address of each recipient of a personal code, and for each use the order number, e-mail address, country, discount and order total. The codes and uses of an e-mail address can be exported and erased with WordPress' own tools under Tools → Export Personal Data and Erase Personal Data, and the plugin adds a suggested text to your privacy policy.

What happens to my data if I delete the plugin?

Campaigns, codes and their history are kept, so you do not lose your figures by mistake. To remove them when the plugin is deleted, set the option cnwscoupons_delete_data_on_uninstall to yes first, for example with wp option update cnwscoupons_delete_data_on_uninstall yes.

Can a code give free shipping?

The free plugin never changes shipping: the discount is taken off the products, and the guide shows how WooCommerce calculates shipping in your shop when the code is used. Free shipping with a code, a discount on shipping and a free-shipping threshold measured before the discount come with Checkout Optimizer Pro, which adds these settings to the campaign guide.

更新日志:

1.1.0 1.0.0