| 开发者 | moodithegamer |
|---|---|
| 更新时间 | 2026年9月30日 13:40 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | MIT |
| 版权网址: | 版权信息 |
tagalong_gift_coupon_map: map coupon codes to product or variation IDs in code.tagalong_gift_product_id: decide the gift for a coupon at runtime.tagalong_remove_coupon_with_gift: return false to keep the coupon when the gift is removed.tagalong_free_price_html: change the "Free" label in the classic cart.A simple product, or one exact variation such as "Hoodie – Medium". Variable products can't be chosen, because the customer would need to pick options. The product needs a price and must be in stock. The customer never pays that price.
Edit the gift product and set Catalog visibility to Hidden. It can still be given as a gift.
Yes. Set the coupon's discount type and amount as usual, then also choose a free gift product.
New customers can't apply the coupon. They see "Sorry, the free gift for this coupon is out of stock right now." A customer who already has the gift in their cart gets WooCommerce's usual out-of-stock message at checkout, as with any product.
Not at the moment. Each coupon gives one specific product.
The coupon is applied, but the gift isn't added automatically. Add the gift product to the order by hand.
It stores the chosen gift on each coupon, a hidden marker on gift order lines, and a flag on orders that got a gift note. Deleting the plugin removes the coupon setting. Past orders keep their gift details.
gcl_ to tagalong_. If you installed 2.0.0 from GitHub, choose the gift on your coupons again after updating.