[WordPress] 外掛分享: Ultimate Downloadable Products for WooCommerce

首頁 › 外掛目錄 › Ultimate Downloadable Products for WooCommerce
WordPress 外掛 Ultimate Downloadable Products for WooCommerce 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(3 則評價)
4 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 8.1+ v4.3.0 上架:2022-07-13

內容簡介

Ultimate Downloadable Products for WooCommerce 外掛允許在商品頁面上顯示可下載的檔案。

此外掛非常適合出售數位商品,可以讓顧客在購買後清楚知道他們將會獲得什麼。

此外掛搭配 NFT WordPress Plugin Kit,是您 NFT 售賣商店不可或缺的利器!

免費功能

商品頁顯示下載標籤與可下載檔案列表
在商品頁面使用短碼顯示可下載的檔案(不能下載)
可為圖片檔案型態的可下載檔案顯示縮圖

付費功能

付費版本包含免費版本的所有功能,另外還有:

可指定圖片檔案型態可下載檔案的縮圖寬度
可為圖片檔案型態的可下載檔案顯示模糊縮圖
可指定圖片檔案型態可下載檔案的縮圖模糊程度
支援可變式的可下載商品
顯示檔案封存檔案內容
支援上傳 RAR 和 ISO 封存檔案類型

路線圖

以下功能將在未來版本中添加:

可聆聽音訊檔案樣本
可查看影像檔案樣本(模糊和縮小)
可為文件檔案型態的可下載檔案顯示 MIME 類型圖示
每個商品可設定是否顯示下載標籤
每個商品可設定模糊圖像預覽
每個可下載的檔案可設定模糊圖像預覽
可設定購買日期後多久才能下載檔案
可設定日期後多久才能下載檔案
與 WCFM 前端功能相容性
與 Dokan 前端功能相容性
與 WCVendors PRO 前端功能相容性

l10n

此外掛支援本地化。

目前支援以下語言:

英語
阿拉伯語(عرب)
捷克語(čeština)
丹麥語(Dansk)
德語(Deutsche)
希臘語(Ελληνικά)
西班牙語(Español)
波斯語(فارسی)
法語(Français)
希伯來語(עִברִית)
印地語(हिन्दी)
印尼語(Bahasa Indonesia)
義大利語(Italiano)
日語(日本語)
韓語(한국어)
馬來語(Melayu)
挪威語(Norsk)
荷蘭語(Nederlands)
波蘭語(Polski)
葡萄牙語(Português)
俄語(Русский)
斯洛伐克語(Slovenský)
芬蘭語(Suomalainen)
瑞典語(Svenska)
泰語(ไทย)
菲律賓語(Pilipinas)
土耳其語(Türk)
越南語(Tiếng Việt)
中文(中国人)

歡迎自由翻譯此外掛成您的語言。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Ultimate Downloadable Products shows the files inside a downloadable product before the buyer pays: the list of what is in the download, with the file type, the size and a count, on the product page itself.
It works on WooCommerce or Easy Digital Downloads. The name still says WooCommerce because that is where the plugin started and its wordpress.org history lives under this slug, but the platform is a runtime choice, not a requirement: activate the plugin on a shop running either of the two and the download list appears on its product pages. When both are active, WooCommerce is used.
The free build lists the files, draws the image thumbnails, adds the tab, the shortcode and the block, schedules an unlock and reports whether the uploads folder is really closed. A Professional licence adds the previews themselves — blur, audio, video, document and archive contents — the per-product and per-file overrides, a separate schedule per file, the marketplace vendor form and the preview analytics. Every claim that needs that licence ends with (Professional) in the list below.
Eleven promises have no picture of their own and are named here instead, because no frame can show them: an unlock email tells the customer when a scheduled file opens, switchable under WooCommerce → Settings → Emails; a REST route, GET /wc/v3/products/{id}/downloads, serves the public part of a product’s files to a headless storefront; with neither WooCommerce nor Easy Digital Downloads active the plugin still activates, does nothing on the front end, and prints one admin notice naming what to install; the shortcode’s product_id, show_size, columns, types and layout attributes reshape the list, and columns turns it into a real multi-column grid; one customer’s file can be unlocked from the order screen or with wp udp schedule unlock|status, without touching the product (Professional); a schedule can count from a subscription’s start, so a renewal never restarts it (Professional); wp udp stats and the one-line wp udp status print the preview counters without a browser, and the analytics screen itself is shown only to a user with manage_woocommerce (Professional); RAR uploads are accepted as well as ZIP and ISO (Professional); on Easy Digital Downloads a per-file preview setting is keyed to the file’s condition and the file itself, so reordering the files moves no setting to another file (Professional); the WCFM and WC Vendors vendor forms carry the same preview options as the seller’s own form in picture 22, for a vendor account with no admin access (Professional); and when the server cannot render a page, a PDF preview shows the document’s opening text instead (Professional).
Video walkthrough: https://youtu.be/QVs3kOco3SE
Features
Everything in this list is in the free build.

The Downloads tab on a product page lists what the buyer gets — every file with its thumbnail, its name and its size — before the buyer pays
The [ultimate-downloadable-list] shortcode prints the product’s download list inside a product description — the same files, thumbnails, names and sizes the Downloads tab shows
The free build shows the Professional preview settings too: visible, disabled and linked to the upgrade, so you see what a licence adds before buying it
The unlock delay is set on the product itself, in the Downloads block’s Unlock downloads after (days) field, with no separate screen to visit
Until a file unlocks, My Account shows Available in 7 days instead of a link, so nobody chases a download that is not there yet
A download asked for before its date is refused with a page that says when it unlocks and where to go next, and the refusal costs the customer no download
The protection screen answers whether the uploads folder is really closed: a red not protected badge with its reason, the rule file the plugin manages, and the server configuration to paste when your host does not run it
The Downloadable files (UDP) block renders the list in the site editor: a live preview of the product’s files on the canvas and its five settings in the sidebar, with no shortcode in the template
The same block prints a grid of cards on the front end — three to a row, each card carrying its thumbnail or its file-type icon, the name and the size
On Easy Digital Downloads a download with several price options shows one labelled group per option, with the files each option includes and their sizes measured on disk
On Easy Digital Downloads the receipt a buyer lands on after paying says Available in 5 days under a file that has not unlocked yet

PRO Features
A Professional licence adds these, on top of the free list above.

One settings screen decides what the product page shows: the tab, the image thumbnails, the audio and video samples, their lengths and the archive formats
Image thumbnails can be blurred, with a strength you set, so a buyer sees the shape of the artwork without seeing the artwork
A variable downloadable product lists the files of the variation the buyer picks: choose A2 and the list shows the three A2 files, each with its own size
Change the choice and the list changes with it: the A5 variation shows its own two files and its own total, never the parent’s set
A ZIP in the list opens in place, folder by folder, so the structure of the archive is readable before the purchase
An ISO disc image opens in the same list, so a product that ships on a disc is as readable as one that ships as an archive
Override the thumbnail width, the blur strength and the Downloads tab for one product, or for one file inside that product, without touching the global settings
An audio download plays a short sample in the list, cut from the product file itself, so a buyer can hear what they are buying
A video download shows a blurred poster in the list, so the row stays quiet until the buyer asks for the sample
The video sample opens in a modal window and closes without leaving the product page
A PDF download shows its first page as the thumbnail, so the document is recognisable at a glance
Each file row carries its own preview setting, and the screen counts the samples it managed to build (Samples ready: 3 of 3), so a sample that failed is visible before the shop goes live
A Server capabilities table tells you which previews this server can make and which tool is missing, before a customer finds out
A schedule per file: each file unlocks N days after the purchase or on its own date, while the product keeps its own schedule
The same preview options sit on a seller’s own product too — width, blur, strength, media preview, the Downloads tab and a row of settings per uploaded file — so the person who owns the product sets them
Download analytics counts every preview opened and every sample played, per product, for all time and over the last 30 days

Roadmap
The platform port and the release schedule on Easy Digital Downloads are shipped, so
the platform work is what this list now carries. Nothing below is committed by this
release:

FluentCart support — a maybe, not a plan, and only if that platform’s file model turns out to fit the same list
A conversion report — the plugin counts previews and sample plays; comparing them with the orders they produced, per product, is not built
Analytics for the Free build — the counters are Professional only
A block that edits the list in the editor rather than rendering it on the server (today’s block lists the files; the product screen still owns them)
Marketplaces beyond WCFM, WC Vendors and Dokan

Nothing above is promised or dated.
l10n
This plugin is localization ready.
Languages this plugin is available now:

English
Arabic (عرب)
Czech (čeština)
Danish (Dansk)
German (Deutsche)
Greek (Ελληνικά)
Spanish (Español)
Persian (فارسی)
French (Français)
Hebrew (עִברִית)
Hindi (हिन्दी)
Indonesian (Bahasa Indonesia)
Italian (Italiano)
Japanese (日本)
Korean (한국인)
Malay (Melayu)
Norwegian (Norsk)
Netherlandish (Nederlands)
Polish (Polski)
Portuguese (Português)
Russian (Русский)
Slovak (Slovenský)
Finnish (Suomalainen)
Swedish (Svenska)
Thai (ไทย)
Philippine (Pilipinas)
Turkish (Türk)
Vietnamese (Tiếng Việt)
Chinese (中国人)

Feel free to translate this plugin to your language.
Shortcode
[ultimate-downloadable-list] prints the downloadable files of a product. With no attribute it prints the product being displayed, exactly as it did in 3.2.1 — the shortcode is backward compatible in both directions.

Attribute
Default
What it does
product_id
0 — the product being displayed
Prints the list of another product, so the shortcode works outside the loop, in a page or a widget
show_size
true
show_size="0" drops every file size and the byte total from the summary line; the file count stays
columns
1
1–6; values outside the range are clamped. Above 1 the list becomes a real CSS grid (--udp-columns), not a table
types
empty — all files
A comma-separated subset of image,audio,video,archive,document,other. Files of another type are removed before counting, so the summary matches what is shown
layout
list
list or grid; grid adds the card styling. Anything else falls back to list
[ultimate-downloadable-list product_id="42" columns="3" layout="grid" show_size="0" types="audio,video"] prints the audio and video files of product 42 in three cards, without sizes.

The other shortcodes an Easy Digital Downloads store carries – [downloads], [download_cart], [download_checkout], [download_history], [download_discounts], [edd_downloads], [purchase_link], [purchase_history] and [purchase_collection] – belong to Easy Digital Downloads itself, not to this plugin: they work whether this plugin is active or not, and this list appears inside the download they print.
Block
The block is called Downloadable files (UDP) and its name is ultimate-downloadable-products/downloadable-list. It renders the same list as the shortcode — same markup, same CSS — for the product a single-product template is showing, so a block theme needs no shortcode at all.
Its inspector panel carries the same five options as the shortcode attributes above (product id, show size, columns, types, layout), and the editor shows the server-rendered list as a live preview. apiVersion is 2, so the block works on WordPress 6.0 as well as on the current release. The block is in both the Free and the PRO build.
REST API
Headless storefronts get one public route:
GET /wp-json/wc/v3/products/{id}/downloads

`

curl https://example.com/wp-json/wc/v3/products/42/downloads
`
The route lives inside wc/v3 on purpose: that is the only namespace where a WooCommerce consumer key authenticates, so a storefront authenticates the same way it does for the rest of the store. No capability is needed to read it — everything it returns is already on the product page.
Each file carries five public fields and nothing more:

id — the download id
name — the file name as the shop shows it
type — image, audio, video, archive, document or other
mime — the detected MIME type, or null
size — bytes, or null when the file is remote or its size is unknown

Two fields are about what the route withholds. download_url is null, with locked: true, for any file a release schedule has not unlocked yet — unless the caller has manage_woocommerce, who always sees the file. unlock_at is the instant of a fixed-date schedule, and it is published to that caller only: for everybody else it is null, because a delay schedule counts from a purchase this route knows nothing about. No order id, user id, email, IP, download key or counter is read on this route at all.
An unknown product and a product that is not downloadable both answer 404 (udp_product_not_found, udp_product_not_downloadable); a downloadable product with no files answers 200 with an empty downloads array. The response is Cache-Control: private, no-store — it is per-caller data and must not be cached by a proxy.
The full note — every field, every refusal, the redaction table and the reason wc/v3 is borrowed — is docs/work/rest-downloads.md in the plugin repository.

延伸相關外掛

文章
Filter
Mastodon