[WordPress] 外掛分享: Unique Coupons

前言介紹

  • 這款 WordPress 外掛「Unique Coupons」是 2021-05-05 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2021-05-13,距離現在已有 1451 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.3 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.1 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

josefwittmann |

外掛標籤

coupon | unique | coupons |

內容簡介

讓您上傳一組優惠券代碼以分發給您的使用者。每個優惠券只被認為能夠使用一次。

您可以管理來自不同來源的多組優惠券集。

使用者下次訪問網站時,會顯示一個彈出窗口。他們只有在點擊按鈕後才能看到優惠券,以確保興趣。

使用方法

安裝完畢後,您會在管理區域底部找到一個名為「優惠券」的新菜單項目。所有管理都是在那裡進行的。

有優惠券和優惠券組。
每一個優惠券屬於唯一的一個組,並且有一個價值和到期日。
一個組包含多個優惠券,並定義了在彈出窗口中顯示給使用者的模板。默認情況下,只有已登錄的使用者才能取得優惠券。

首先創建一個新組。給它一個唯一的名稱並撰寫模板。
在編輯器中有四個按鈕,標記彈出視窗的特定區域。鼠標選中該文本,然後按下按鈕進行標記。

操作按鈕:當單擊此按鈕時,優惠券的價值將從後端獲取並顯示。
成功區域:此區域在從後端獲取優惠券之前隱藏。
優惠券價值:此區域將被更換為優惠券的價值。請務必不包含尾隨空格,否則可能會很醜陋。
到期日期:此區域將被替換為優惠券的到期日期。請務必不包含尾隨空格,否則可能會很醜陋。

保存組並添加一些優惠券。您可以添加多個到期日期相同的優惠券。只需確保每個優惠券都有自己的行(空行被忽略)。

現在您準備好了。但您可能想看一下默認設置。在那裡,您可以調整事件之間的延遲時間,以避免向使用者發送垃圾郵件。

自定義

大多數面向用戶的自定義都可以在群組編輯器中進行。如果您想更改能夠獲得優惠券的使用者,可以鉤入 unique_coupons_user_is_authorized_for_coupons 過濾器。目前,沒有辦法向匿名使用者分發優惠券(跟踪是在服務器端完成的)。因此,即使通過此過濾器允許此操作,也將無法使用。

缺點/錯誤

目前,該插件的數據刪除後將會保留。
您無法明確篩選不應顯示彈出視窗的時間。最佳解決方法是鉤入 unique_coupons_user_is_authorized_for_coupons。

貢獻

源代碼托管在 Josef37/unique-coupons 上。
如果您有問題或功能請求,或考慮提交拉取請求,請隨時創建新問題。
還有一個單獨的 開發者 README,可以幫助您設置開發環境。

如果此插件對您有幫助,我希望聽到您的反饋。

原文外掛簡介

Allows you to upload a set of coupon codes you want to distribute to your users. Each coupon is assumed to be used only once.
You can manage multiple sets of coupons from different sources.
Your users are shown a popup next time they visit the site. They have are only shown the coupon after clicking a button, to ensure interest.
Usage
After installing, you’ll find a new menu item in the admin area near the bottom called ‘Coupons’. All administration is done from there.
There are coupons and (coupon) groups.
Each coupon belongs to exactly one group and has a value and expiry date.
A group contains many coupons and defines the template that is shown to the users within a popup. By default, only logged in users can get coupons.
Start by creating a new group. Give it an unique name and write out the template.
There are four buttons in the editor, which mark the speical areas for the popup. Highlight the according text and press the button to mark it up.

Action button: When this button is clicked, the coupon’s value will be fetched from the backend and displayed.
Success area: This area is hidden until the coupon is fetched from the backend.
Coupon value: This area will be replaced with the coupon’s value. Make sure to not include trailing whitespace, otherwise it may look ugly.
Expiry date: This area will be replaced with the coupon’s expiry date. Make sure to not include trailing whitespace, otherwise it may look ugly.

Save the group and add some coupons. You can add multiple coupons with the same expiry date. Just make sure that every coupon gets its own line (empty lines are ignored).
Now you’re ready to go. But you may want to have a look at the default settings. There you can adjust delays between events to not spam your users.
Customization
Most of the user-facing customization can be done in the group editor. If you want to change the users which should be able to get coupons, you can hook into the unique_coupons_user_is_authorized_for_coupons filter. Currently, there is no way to distribute coupons to anonymous users (keeping track is done server-side). So even if you allow this through this filter, it will not work.
Shortcomings/Bugs

For now, data from this plugin will stay around after deleting it.
You can’t explicitly filter when the popup shouldn’t be shown. The best workaround is to hook into unique_coupons_user_is_authorized_for_coupons.

Contributing
The source code is hosted on Josef37/unique-coupons.
Feel free to create a new issue, when you have questions or feature requests, or consider making a pull request.
There is a separate developer README, which helps you set up the development environment.
If this plugin helped you in any way, I’d like to hear your feedback.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Unique Coupons」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1.1 | 0.1.2 | 0.1.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Advanced Custom Fields: Unique ID Field 》建立一個獨特的 ID,這樣易於識別複製欄位中的每一行。該欄位在首次「儲存」文章時被填滿。, 相容性, 這個 ACF 欄位類型相容於:, , ACF 5, 。
  • Copyscape Premium 》 Copyscape Premium 外掛可讓您在發佈 WordPress 文章前,使用 Copyscape Premium API 檢查網路上是否有重複的內容,確保文章的原創性。, 這個外掛會在您的 W...。
  • Overwrite Uploads 》預設情況下,當您上傳同一個檔案到 WordPress 中相同的資料夾和檔案名稱,WordPress 不會覆蓋現有的檔案。相反地,它會在檔案名稱的末尾添加編號以使其唯一,...。
  • Unique Submissions for Elementor Forms 》總結:Elementor Unique Submissions 外掛確保使用者無法在 Elementor 表單中提交重複的內容,並提供專屬功能讓您指定檢查唯一性的欄位,有效且靈活地管理提...。
  • Unique Uploaded Media Name 》透過在檔名後加上一些隨機字串使每個上傳的媒體名稱變得獨特。, 預設情況下,WordPress 上傳檔案名稱使用slug。 如果有任何檔案名稱衝突,WordPress 會在slug...。
  • WP-Parsi Statistics 》此外掛提供您完整的網站統計資訊。您可以透過小工具和 37 個有用的佈景主題函數來顯示統計數字。, 此外掛具有 31 個強大的輸出類型功能。, 還有 6 個強大的特...。
  • Unique Comment Notify 》Unique Comment Notify外掛會在發送給部落客的通知郵件主旨中添加評論作者的名字,避免Gmail和其他以主題串聯電子郵件的客戶端將所有關於同一文章的通知郵件...。
  • Simple Google Map Generator 》這個外掛提供一個 Google 地圖的簡碼,你可以使用它在你網站的任何地方。 , 你只需要簡單地拖曳地圖,就可以選擇你的地址。 , 按下“建立”,你就能獲得代碼, ...。
  • Personal Library 》個人圖書館(Personal Library)允許您限制用戶只能查看自己上傳的媒體。此外掛透過對所有附加檔案的請求進行過濾來實現此功能。, , 管理員始終可以查看所有...。
  • Ninja Forms Unique Textbox 》Ninja Forms 是一個很棒的 WordPress 外掛,而此外掛讓它更加強大!, 若您使用 Ninja Forms 收集資料且需要一或多個文字方塊欄位是唯一的,那麼這個外掛非常...。
  • My Unique Content 》這是一個 SEO 工具,可以將您網站的內容轉換為獨特的內容。這個外掛將幫助您提高搜索引擎排名,因為您將擁有新鮮且獨特的網站內容。它有一個單詞樣本列表供您...。
  • Credible Names 》驗證用戶個人資料與名稱, 在 WordPress 網站中,用戶個人資料中有多個名稱,包括用戶登入名稱、顯示名稱和綽號。在多用戶網站中,通常需要確保它們具有唯一性...。
  • Unique Field Guard For ACF 》總結:Unique Field Guard For ACF 是一款針對 Advanced Custom Fields (ACF) 值確保唯一性的 WordPress 外掛。透過在文章保存時自動檢查重複值,有助於維護...。
  • Unique File 》, Rename by MD5:上傳檔案時使用 MD5 重新命名檔案, Store Only One:移除檔案名稱中的唯一編號, Without siteid:在上傳路徑中移除站點 ID, Disable yearmo...。
  • Stealthlead 》Stealthlead 可增加您在線商店的銷售額。, 如果您經營一個電子商務網站,則知道每個銷售額都非常重要。每一個失去的銷售額都代表了您支付的廣告費,以吸引那...。

文章
Filter
Apply Filters
Mastodon