wc-coupon-dynamic

Installation
SKILL.md

WooCommerce virtual coupons

WooCommerce calls these virtual coupons. “Pseudo coupon” is an informal description, not the core term. Use one when a code is generated or resolved from another authoritative store and creating a shop_coupon post per code would cause unnecessary synchronization.

Choose the right model

Need Model
Merchant edits the code; core reporting, holds, and usage limits should work Persisted WC_Coupon; use wc-coupon-types-rules
A namespaced code maps to an external entitlement Virtual coupon from this skill
A new discount formula appears in the coupon type selector Register a complete custom type with wc-coupon-types-rules; it may also be used by a virtual coupon
A surcharge or positive adjustment WooCommerce fee API, not a negative coupon

A virtual coupon is not automatically safer or faster. Its resolver and usage ledger replace storage and concurrency behavior that core normally supplies.

Understand the resolution contract

WC_Coupon::__construct() filters the unresolved value before database lookup:

Installs
1
GitHub Stars
22
First Seen
1 day ago
wc-coupon-dynamic — lonsdale201/wp-agent-skills