| 开发者 |
afileasy
uellpalma |
|---|---|
| 更新时间 | 2026年11月3日 22:03 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
?ref=...) in a cookie.<script> loaded from the Afileasy servers to every public page of your store. That script reads the referral parameter from the URL (?ref=...) and stores it in the afileasy_ref cookie in the visitor's browser, so the sale can be credited to the right affiliate. When the affiliate has a coupon, Afileasy also returns it and the script stores it in the afileasy_coupon cookie, which is what lets this plugin apply the coupon to the cart. Loading the script tells Afileasy the address of the page being visited and the visitor's IP address, as with any HTTP request.
2. Leads (when a referred visitor creates an account)
When a visitor who arrived through an affiliate link creates a customer account — from My Account or from checkout — the plugin sends their email address and name to Afileasy, along with the referral identifier stored in the cookie, so the affiliate is credited with the lead. Accounts created without a referral send nothing.
Developers can disable this with the afileasy_capture_leads filter:
add_filter( 'afileasy_capture_leads', '__return_false' );
3. Order events (when an order is paid or refunded)
On those two events, and only on those, the plugin sends the following to Afileasy:
Yes. The plugin is a client for the Afileasy service and needs a connection key generated in the Afileasy dashboard.
When a visitor arrives through an affiliate link and creates a customer account, either from My Account or by opting to create an account at checkout. Guest checkouts are not leads — those orders are attributed directly. Other forms (newsletter, contact) can be captured by adding data-afileasy-lead to the form in your theme.
Yes. The referral is read server-side when the order is created, so both the classic checkout and the block (Store API) checkout are supported. Coupon autofill runs when the cart totals are calculated, which covers both checkouts as well.
The coupon has to exist in this store: coupons created in Afileasy before you connected the integration are only published here after you sync them (Afileasy → Coupons → select → "Sincronizar com as integrações"). Autofill is also skipped when the shopper already applied a coupon of their own, when they removed the affiliate's coupon, or when the cart does not meet the coupon's own rules.
Yes. The plugin declares compatibility with WooCommerce custom order tables.
afileasy_capture_leads filter.