[WordPress] 外掛分享: Coupon Shortcodes for WooCommerce

首頁外掛目錄 › Coupon Shortcodes for WooCommerce
WordPress 外掛 Coupon Shortcodes for WooCommerce 的封面圖片
1,000+
安裝啟用
★★★★
4.9/5 分(17 則評價)
33 天前
最後更新
問題解決
WordPress 6.5+ PHP 7.4+ v4.0.0 上架:2013-09-13

內容簡介

這個針對 WooCommerce 的擴充套件允許您呈現優惠券資訊並根據優惠券的有效期限顯示內容。

當購物車中的商品符合條件時,讓顧客使用特定的優惠券或在顧客額外購買商品時給予優惠券,可以激勵顧客繼續購物。

如果安裝了 WooCommerce Volume Discount Coupons,則會自動顯示適用於量減價的優惠券折扣詳細資訊。

此外,它也可與 WooCommerce Group Coupons 和 WooCommerce Coupons Countdown 搭配使用。

有條件的短碼

此擴充套件提供以下有條件的短碼,可用於包含當應用、有效或啟用某些優惠券時顯示的內容:

[coupon_is_active]
[coupon_is_not_active]
[coupon_is_applied]
[coupon_is_not_applied]
[coupon_is_valid]
[coupon_is_not_valid]

這些條件短碼可在任何優惠券應用、有效或啟用時顯示內容:

[coupon_has_valid]
[coupon_has_not_valid]
[coupon_has_active]
[coupon_has_not_active]
[coupon_has_applied]
[coupon_has_not_applied]

優惠券資訊短碼

此擴充套件也提供可呈現優惠券代碼、描述和自動折扣描述的短碼:

[coupon_code](大部分在條件短碼中使用較有意義)
[coupon_description]
[coupon_discount]
[coupon_show]

優惠券迭代器短碼讓使用一組優惠券變得更容易,該短碼按順序渲染每個優惠券的內容。可以在此短碼的內容中使用資訊短碼,以顯示關於每個優惠券代碼的詳細資訊。

[coupon_iterate]

例如:[coupon_iterate code="test,welcome,20off"][coupon_code] – [coupon_discount][/coupon_iterate]

優惠券枚舉短碼允許列出所有或一組優惠券,以顯示其代碼、描述或折扣資訊,也可使用 [coupon_show] 短碼的組合:

[coupon_enumerate]

文檔

詳細描述請參閱該外掛程式的 文檔頁面。

範例

顯示可使用優惠券時(啟用),顯示文字。這對於顯示促銷信息非常有用,而優惠券仍在使用期限內且未超過使用限制:

[coupon_is_active code="eastereggs"]
Happy Easter!
Use the coupon code [coupon_code] to hop away with a great discount : [coupon_discount]
[/coupon_is_active]

以下是促銷結束時所顯示的文字範例:

[coupon_is_not_active code="specialdiscount"]
Our special discount sale has ended. Come back often to see more!
[/coupon_is_not_active]

當購物車中的商品符合優惠券應用條件時,顯示優惠券:

[coupon_is_valid code="superdiscount"]
You qualify for a discount!
Use the coupon code [coupon_code] to take advantage of this great discount : [coupon_discount]
[/coupon_is_valid]

外掛標籤

開發者團隊

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

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

原文外掛簡介

Show coupon discount info using shortcodes. Allows to render coupon information and content conditionally, based on the validity of coupons.
Customers can be motivated to proceed with their purchase, offering them to use specific coupons when the contents in the cart qualify for it, or by offering them to purchase additional items so they can use a coupon.
This extension for WooCommerce is a useful addition that is easy to use.
Works great with these premium extensions: Volume Discount Coupons, Group Coupons and Coupons Countdown.
Conditional Shortcodes
It provides the following conditional shortcodes that allow to enclose content which is shown if certain coupons are applied, valid or active:
[coupon_is_active]
[coupon_is_not_active]
[coupon_is_applied]
[coupon_is_not_applied]
[coupon_is_valid]
[coupon_is_not_valid]

These conditional shortcodes allow to render content if any coupons are applied, valid or active:
[coupon_has_valid]
[coupon_has_not_valid]
[coupon_has_active]
[coupon_has_not_active]
[coupon_has_applied]
[coupon_has_not_applied]

Coupon Info Shortcodes
It also provides shortcodes that allow to render the coupon code, its description and an automatic description of the discount:
[coupon_code] (this one makes sense mostly when used inside one of the conditional shortcodes).
[coupon_description]
[coupon_discount]
[coupon_show]

A coupon iterator shortcode makes it easy to work with a set of coupons, the enclosed content is rendered for each coupon in sequence. The informational shortcodes can be used inside the content of this shortcode to display details about each coupon code.
[coupon_iterate]

For example: [coupon_iterate code="test,welcome,20off"][coupon_code] – [coupon_discount][/coupon_iterate]
A coupon enumerator shortcode allows to list all or a set of coupons, to show their code, description or discount information, or combinations of those using the [coupon_show] shortcode:
[coupon_enumerate]

Documentation
Please refer to the plugin’s documentation pages for detailed descriptions.
Examples
Show a text when a coupon can be used (active) – this is useful to show promotional info while coupons can be used, as active means that the coupon has not reached its expiration date nor exceeded its usage limits:
[coupon_is_active code="eastereggs"]
Happy Easter!
Use the coupon code [coupon_code] to hop away with a great discount : [coupon_discount]
[/coupon_is_active]

This is an example of a text shown when a promotion is over:
[coupon_is_not_active code="specialdiscount"]
Our special discount sale has ended. Come back often to see more!
[/coupon_is_not_active]

Showing a coupon when the cart contents qualify for a coupon to be applied:
[coupon_is_valid code="superdiscount"]
You qualify for a discount!
Use the coupon code [coupon_code] to take advantage of this great discount : [coupon_discount]
[/coupon_is_valid]

Showing a coupon that is not valid for the current cart and motivating to add items:
[coupon_is_not_valid code="25off"]
If you purchase 5 Widgets, you can use the coupon [coupon_code] to get 25% off your purchase!
[/coupon_is_not_valid]

Iterate over several coupons and show their discount info:
[coupon_iterate code="test,welcome,20off"]
Use the Coupon Code: [coupon_code] for [coupon_discount]
[/coupon_iterate]

Iterate over all coupons and show their discount info:
[coupon_iterate code="*"]
Use the Coupon Code: [coupon_code] for [coupon_discount]
[/coupon_iterate]

Show information about three random coupons, including the coupon code, its description and discount info together on each entry:
[coupon_enumerate code="*" orderby="rand" number="3"]
[coupon_show show="code,description,discount"]
[/coupon_enumerate]

Show a single random coupon code:
[coupon_enumerate code="*" orderby="rand" number="1"]
[coupon_code]
[/coupon_enumerate]

Documentation and Support
Full usage instructions and help is provided on these pages:

The Documentation pages provide detailed information.
Questions, feedback and suggestions can be posted on the Coupon Shortcodes page.
You can contact WooCommerce Support with your questions related to this extension.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon