[WordPress] 外掛分享: Easy Digital Downloads – Additional Shortcodes

首頁外掛目錄 › Easy Digital Downloads – Additional Shortcodes
WordPress 外掛 Easy Digital Downloads – Additional Shortcodes 的封面圖片
400+
安裝啟用
★★★★
4.5/5 分(2 則評價)
1232 天前
最後更新
問題解決
WordPress 4.9+ PHP 5.3+ v1.4.2 上架:2014-02-24

內容簡介

Easy Digital Downloads 額外短碼外掛為使用 WordPress 建立的電子商務商店增強了有力的條件頁面邏輯。

如何使用 Easy Digital Downloads 額外短碼

所有包含的短碼均需要開始標籤和結束標籤:

如果購物車不為空,則顯示內容。

[edd_cart_has_contents] 這裡放內容 [/edd_cart_has_contents]

如果購物車為空,則顯示內容。

[edd_cart_is_empty] 這裡放內容 [/edd_cart_is_empty]

如果購物車包含特定產品(支援任何、所有和變型產品),則顯示內容。

[edd_items_in_cart ids="20"] 這裡放內容 [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1"] 這裡放內容 [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1" match="all"] 這裡放內容 [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1" match="any"] 這裡放內容 [/edd_items_in_cart]

如果購物車不包含特定產品(支援任何、所有和變型產品),則顯示內容。

[edd_items_not_in_cart ids=”20″]這裡放內容[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″]這裡放內容[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″ match=”all”]這裡放內容[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″ match=”any”]這裡放內容[/edd_items_not_in_cart]

如果使用者曾經購買過(如果登出則永遠會被隱藏),則顯示內容。

[edd_user_has_purchases] 這裡放內容 [/edd_user_has_purchases]

僅顯示在使用者沒有購買時。包括"loggedout"參數,以指定是否可讓登出的使用者看到內容(預設為 true)

[edd_user_has_no_purchases loggedout="true"] 這裡放內容 [/edd_user_has_no_purchases]

只向已登入的使用者顯示內容。

[edd_is_user_logged_in] 這裡放內容 [/edd_is_user_logged_in]

只向未登入的使用者顯示內容。

[edd_is_user_logged_out] 這裡放內容 [/edd_is_user_logged_out]

只有在使用者購買了指定下載 ID 中的任何一個時,才顯示內容。
支援多個 ID。如果下載採用可變定價,您可以傳遞所有選項的僅 ID,或傳遞<download id>:<price id>以選擇特定的可變定價選項。

[edd_user_has_purchased ids="20,34,25:1"] 這裡放內容 [/edd_user_has_purchased]

軟體授權支援:

僅顯示內容,如果使用者有活動許可證。

[edd_has_active_licenses] 這裡放內容 [/edd_has_active_licenses]

僅顯示內容,如果使用者的許可證已過期。

[edd_has_expired_licenses]這裡放內容[/edd_has_expired_licenses]

僅顯示內容,如果使用者所有許可證都已過期。

[edd_has_all_expired_licenses]這裡放內容[/edd_has_all_expired_licenses]

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Easy Digital Downloads – Additional Shortcodes」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Additional Shortcoddes for Easy Digital Downloads adds powerful condional page logic for your WordPress powered ecommerce store.
How to use Additional Shortcodes
The shortcodes included all need opening and closing tags:
Show content if shopping cart is not empty.
[edd_cart_has_contents] Content Here [/edd_cart_has_contents]

Show content if the shopping cart is empty.
[edd_cart_is_empty] Content Here [/edd_cart_is_empty]

Show the content if the cart contains specific products (supports any, all, and variations)
[edd_items_in_cart ids="20"] Content Here [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1"] Content Here [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1" match="all"] Content Here [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1" match="any"] Content Here [/edd_items_in_cart]

Show the content if the cart does not contain specific products (supports any, all, and variations)
[edd_items_not_in_cart ids=”20″]Content here[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″]Content Here[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″ match=”all”]Content Here[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″ match=”any”]Content Here[/edd_items_not_in_cart]
Show the content if the user has made previous purchases (will always be hidden if logged out)
[edd_user_has_purchases] Content Here [/edd_user_has_purchases]

Show the content only if the user has no purchases. Includes the ‘loggedout’ parameter to specify if logged out users
should be included in seeing the content. (Default true)
[edd_user_has_no_purchases loggedout="true"] Content Here [/edd_user_has_no_purchases]

Show the content to logged in users
[edd_is_user_logged_in] Content Here [/edd_is_user_logged_in]

Show the content only to logged out users
[edd_is_user_logged_out] Content Here [/edd_is_user_logged_out]

Show content only if a user has purchased any of the specified download ids.
Supports multiple IDs. If a download has variable pricing, you can pass just the ID for all options, or : for a specific variable pricing option.
[edd_user_has_purchased ids="20,34,25:1"] Content Here [/edd_user_has_purchased]

Software Licensing Support:
Show content only if a user has active licenses
[edd_has_active_licenses] Content Here [/edd_has_active_licenses]

Show content only if user has expired licenses
[edd_has_expired_licenses]Content Here[/edd_has_expired_licenses]

Show content only if user has all expired licenses
[edd_has_all_expired_licenses]Content Here[/edd_has_all_expired_licenses]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon