[WordPress] 外掛分享: Tagalong Gifts for WooCommerce

首頁 › 外掛目錄 › Tagalong Gifts for WooCommerce
WordPress 外掛 Tagalong Gifts for WooCommerce 的封面圖片
全新外掛
安裝啟用
—
尚無評分
16 天前
最後更新
—
問題解決
WordPress 6.5+ PHP 7.4+ v2.1.0 上架:2026-09-28

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Tagalong Gifts for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Run offers like “Use code FREEMUG and get a mug free” with the coupons you already use.
Choose a Free gift product on any coupon. When a customer applies that coupon, one of that product is added to their cart for free. The gift tags along with the coupon: remove the coupon and the gift goes too, and the other way round. The gift is clearly labelled on the order, so whoever packs it knows why it’s there.
Features

Adds the gift automatically when the coupon is applied.
Really free. The gift is priced at 0 in the cart total, not just labelled “Free”.
One gift per coupon. The customer can’t raise the gift’s quantity. If they also buy the same product, those units stay paid and appear as a separate line.
Coupon and gift stay together. Remove one and the other goes too, including when WooCommerce drops the coupon because its rules are no longer met (for example, minimum spend).
Refuses a coupon whose gift isn’t available (out of stock, deleted or not for sale), with a clear message.
Labelled everywhere: “Free gift: with coupon freemug” in the cart, checkout, order emails, My Account and the order screen, plus a private order note.
Works with the Cart and Checkout blocks and the classic cart and checkout.
Compatible with High-Performance Order Storage (HPOS).
Uses WooCommerce’s own coupon rules: expiry dates, minimum spend, usage limits and so on.
No settings page, no extra database tables, no scripts or styles loaded on your store.

For developers

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.

The source code and end-to-end tests are on GitHub.

延伸相關外掛

文章
Filter
Mastodon