[WordPress] 外掛分享: Woo Earn Share

首頁外掛目錄 › Woo Earn Share
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
1264 天前
最後更新
問題解決
WordPress 3.5+ v2.0.0 上架:2018-11-11

內容簡介

讓您的使用者分享他們自己的代碼以獲得折扣!

當有人在您的商店購物時使用推薦代碼且訂單狀態為「已完成」時,代碼所有者將收到一定百分比的款項(在WordPress儀表板管理中設置),這將被添加到他們的餘額中。然後可以在下一次購物時使用餘額。

有關詳細信息,請參閱常見問題解答

特徵:
您可以啟用向使用其餘額但購買被退款、取消或失敗的用戶退款的功能。

短碼!
[wooes_user_balance]- 顯示當前使用者餘額
[wooes_user_code]- 顯示當前使用者代碼

篩選器!

wooes_user_balance

篩選使用者的餘額

$balance 浮點數使用者的餘額。
$user_id 整數使用者ID。

wooes_get_user_code

篩選使用者的代碼

$code 字符串從使用者擷取的代碼。
$user_id 整數使用者ID。
$format 布林值:代碼是否應該格式化。

wooes_get_user_by_code

篩選代碼中的使用者

$user \WP_User|false從代碼中擷取的使用者,如果沒有則為假。
$code 用於搜索使用者的代碼。

wooes_new_balance

篩選新使用者的餘額

$new_balance 浮點:新餘額值。
$money 浮點:被添加的金額。
$old_balance 浮点先前值。
$giving_back 布尔值:是否返还款项。

wooes_new_balance

篩選新使用者的餘額

$new_balance 浮點:新餘額值。
$money 浮點:被添加的金額。
$old_balance 浮点先前值。
$giving_back 浮点:是否返還金額。

wooes_generate_new_referral_code

篩選新生成的代碼

$code 字符串:隨機生成的代碼。
$length 整數:來自設置的代碼長度。
$alphanumeric 布林值:是否為字母數字代碼,來自設置。

wooes_format_code

篩選格式化的代碼

$code 字符串代碼。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Woo Earn Share」→ 直接安裝(推薦)

原文外掛簡介

Let your users share their own codes to earn discounts!
When someone uses a referral code when purchasing in your shop and the order is “Completed”, the code owner will receive a percentage (set in the dashboard admin of WordPress), which will be added to their balance. The balance can then be used on the next purchase.
See the FAQ for more details
Feature:
You can enable returning the money to a user who used their balance but had the purchase refunded, canceled, or failed.
Shortcodes!
[wooes_user_balance] – Shows the current user balance
[wooes_user_code] – Shows the current user code
Filters!
wooes_user_balance
Filters the user’s balance

$balance float The user’s balance.
$user_id integer The user ID.

wooes_get_user_code
Filters the user’s code

$code string The code fetched from the user.
$user_id integer The user ID.
$format boolean Whether or not the code should be formatted.

wooes_get_user_by_code
Filters the user by the code

$user \WP_User|false The fetched user of false if none.
$code string The code used to search the user.

wooes_new_balance
Filters the new user’s balance

$new_balance float The new balance value.
$money float The money being added.
$old_balance float The previous value.
$giving_back boolean Whether it’s giving the money back or not.

wooes_new_balance
Filters the new user’s balance

$new_balance float The new balance value.
$money float The money being added.
$old_balance float The previous value.
$giving_back float Whether it’s giving the money back or not.

wooes_generate_new_referral_code
Filters the newly generated code

$code string The randomly generated code.
$length integer The length of the code, from settings.
$alphanumeric boolean Whether it’s an alphanumeric code, from settings.

wooes_format_code
Filters the formatted code

$code string The code.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon